Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical.
Q: Write a program in phyton that takes in an integer in the range 11-100 as input. The output is a…
A: The asked python program has been coded by using a while loop for printing the countdown numbers and…
Q: Write a program whose inputs are three integers, and whose output is the smallest of the three…
A: Java is one of the most extensively used language, and In most of the back end development projects,…
Q: Write a program in kotlin to add two given numbers and print the results.
A: Required:- Write a program in kotlin to add two given numbers and print the results. approach:-…
Q: Write a program that keeps on taking numbers from the user, until the user enters any input that it…
A: Answer: Java Source Code: import java.util.*;import java.lang.*;public class Main { public static…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: The answer is
Q: Write a program that reads in hours, minutes, and seconds as input, and outputs the time in seconds…
A: h=int(input("Enter hours: "))m=int(input("Enter Minutes: "))s=int(input("Enter Seconds: "))sec=…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: Use an if-else to check whether the denomination is singular or plural and based on that print the…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Answer: This is simple program we have written code in next page also i have inserted screenshot of…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: phyton code described below
Q: Write a program that reads in hours, minutes, as input, and outputs the time in minutes only.
A: The language i used is C++. I explained the program in comments of the code and also attached the…
Q: Write a program that takes a date as input and outputs the date's season. The input is a string to…
A: The Answer is in Below Steps
Q: Write a program that reads in an integer and breaks it into a sequence of individual digits. For…
A: We will be solving the question in Python for easy understanding. We will be taking our input in a…
Q: Write a program which reads two integer numbers from users and then display all prime numbers within…
A: According to the Question below the Complete Program: Program Output:
Q: ask3.c 4. Task 3: Using a.. 1 Your code goes here... Collapse 4. Task 3: Using a nested loop Write a…
A: Since you are not specify any language for implementation I am doing in C language. Program…
Q: Write a program that takes a bank account balance and an interest rate as an input. And then outputs…
A: Given: Write a program that takes a bank account balance and an interest rate as an input. And then…
Q: Write a program that reads an arbitrary number of integers that are in the range 0 to 50 inclusive…
A: ## As no programming language mentioned, the code is written in Python. f_dict = {}…
Q: umber of seconds, displays a message at every
A: Since the programming language is not mentioned, I have done the code using Java.
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: Introduction of Program In this C++ program, the change will be calculated as given below 1 dollar =…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: Below is the code in C++ as language not specified and sample output:
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: Find the required code in python given as below and output :
Q: .Write a program that reads the integers between 1 and 50 and counts the occurrences of each. Assume…
A: .Write a program that reads the integers between 1 and 50 and counts the occurrences of each. Assume…
Q: Write a program whose inputs are three integers, and whose output is the smallest of the three…
A: Given: Three integers given as input from user. Requirement: Write a program in python language to…
Q: Write a program that prompts the user to enter a telephone number expressed in letters and outputs…
A: #include<iostream> using namespace std; int main (){ string inputString, outputString;…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Below i have given program:
Q: Write a program that inputs two positive integers of, at most, 20 digits and outputs the sum of the…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program on eclipse that reads an unspecified number of scores and determines how many scores…
A: NOTE : Since programming language is not mentioned.Therefore answering question in Java language.…
Q: Write a program whose input is two integers. Output the first integer and subsequent increments of 5…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: Thank you for your question. As you have not mentioned any specific programming language for the…
Q: Write a program whose input is a character and a string, and whose output indicates the number of…
A: import java.util.Scanner;public class Library{ public static int calcNumCharacters(String…
Q: Write a program that takes a date as input and outputs the date's season in the northern hemisphere.…
A: Step 1 : Start Step 2 : Input The String from the user as Month and Day using the scanner class.…
Q: Write a program that reads in a series of integer numbers, and determines how many positive odd…
A: Since the programming language is not mentioned, so we'll do it in python. The programming…
Q: Write a program that prompts the user to enter 10 inputs, each containing a number showing the…
A: Dear Student, As no language is mentioned I am assuming it to be python , program code is given…
Q: Write a program that takes a date as input and outputs the date's season. The input is a string to…
A: Use a dictionary to store the months and number of days in each month Check the month whether in…
Q: Write a program, which takes an input from the user, if the number is between 90 100, Print A Grade,…
A: Since no programming language is mentioned, I am using python Algorithm: 1. Start 2. Take input…
Q: Write a program whose inputs are three integers, and whose output is the smallest of the three…
A: Below is the code in python and output of the question:
Q: Write a program that inputs a line of text from the user and counts; the total numbers of…
A: take user input of a line of text vowelCount ← 0 : variable for calculation and show output vowel…
Q: Write a program that prompts and takes an input from a user with values ranging from 4 to 10 and…
A: We need to write a program in python language that display the diamond pattern given in the…
Q: Write a program whose input is two integers, and whose output is the first integer and subsequent…
A: NOTE: - The code is implemented in C language, as programming language is not mentioned. PROGRAM…
Q: Write a program whose input is two integers, and whose output is the first integer and subsequent…
A: import java.util.*;public class Main { public static void main(String[] args) { Scanner scan…
Q: Write a program that takes in an integer in the range 11-100 as input. The output is a countdown…
A: Hi. There is a very small change required in the provided code. Let's fix it in the next step.
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Code in java is below- import java.util.Scanner; // importing the util package public class…
Q: Write a program with total change amount as an integer input that outputs the change using the…
A: We need to define a function, exact_change that returns the number of dollars, quarters, dimes,…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: Programs: Programs are used to provide general instruction to the computer system. It is used to…
Q: Write a program whose input is two integers. Output the first integer and subsequent increments of 5…
A: The code for the above-given question is given below:
Q: Write a program whose input is two integers. Output the first integer and subsequent increments of 5…
A: Note: I am using python to solve the above problem. Code run successfully as above problem describe.…
Q: Write a program that takes a date as input and outputs the date's season in the northern hemisphere.…
A: month = input ("Input the month (e.g. January, February etc.): ")#Declaration of monthName day = int…
Q: Write a program using integers user_num and x as input, and output user_num divided by x three…
A: Step 1: Prompt and accept the values of two integers. Step 2: Divide the first integer by the second…
Q: Write a program using integers userNum and x as input, and output userNum divided by x three times.
A: #include<stdio.h> int main() { int userNum, x; scanf("%d",…
Q: Write a program that takes in an integer in the range 11-100 as input. The output is a countdown…
A: Program Explanation: Import the class for scanner Define a class for countdown Declare and define…
Q: Write a program that takes in an integer in the range 20-98 as input. The output is a countdown…
A: Since the Programming language is not mentioned in the question, we will answer this question in C…
The language is Java
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Coral Help Write a program that takes a date as input and outputs the date's season. The input is an integer to represent the month and an integer to represent the day. Ex: If the input is: 4 11 the output is: spring In addition, check if both integers are valid (an actual month and day). Ex: If the input is: 14 65 the output is: invalid The dates for each season are:spring: March 20 - June 20summer: June 21 - September 21autumn: September 22 - December 20winter: December 21 - March 19In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the tripWrite a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the trip.
- Use python The speeding ticket fine policy in Wonderland-Bemidji is $50 plus $5 for each mph over the limit, plus an additional penalty of $200 for any speeds over 90mph. Write a program that accepts a speed limit (<= 90) and a clocked speed, and either outputs a message indicating the speed was legal, or prints the amount of the fine if the speed is illegal.Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderWrite a program that reads student scores, gets the best score, andthen assigns grades based on the following scheme:Grade is A if score is ≥ best -5Grade is B if score is ≥best -10;Grade is C if score is ≥best -15;Grade is D if score is ≥best -20;Grade is F otherwise.The program prompts the user to enter the total number of students, and thenprompts the user to enter all of the scores, and concludes by displaying the grades.Here is a sample run: Enter the number of students: 4 ↵EnterEnter 4 scores: 40 55 70 58 ↵EnterStudent 0 score is 40 and grade is FStudent 1 score is 55 and grade is CStudent 2 score is 70 and grade is AStudent 3 score is 58 and grade is C
- Given the sample code below in generating a random number. Create a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 1. When the program begins, a random number in the range of 1 through 3 is generated.If the number is 1, then the computer has chosen rock. If the number is 2, then thecomputer has chosen paper. If the number is 3, then the computer has chosen scissors.(Don’t display the computer’s choice yet.)2. The user enters his or her choice of “rock”, “paper”, or “scissors” at the keyboard.(You can use a menu if you prefer.)3. The computer’s choice is displayed.4. A winner is selected according to the following rules:a. If one player chooses rock and the other player chooses scissors, then rock wins.(The rock smashes the scissors.)b. If one player chooses scissors and the other player chooses paper, then scissorwins. (Scissors cuts paper.)c. If one player chooses paper and the other player chooses rock, then…A parking garage charges a $20.00 minimum fee to park for up to three hours. The garage charges an additional $5.00 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24- hour period is $50.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and printsthe parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format: Car Hours Charge1 1.5 20.002 4.0…Write a program that reads the employee's name and base salary and then calculates the tax and net amount Salary where: Net salary = Basic salary If the basic salary is less than 500 (no tax) Net salary = basic salary - tax value So that the tax amount is 5% of the basic salary Then it prints the employee's name and net salary %3D 2:40 PM /
- A supermarket is doing a sales promotion for soft drinks. If one day you buy soft drinks and bring the empty bottles the next day, they exchange each set of K empty bottles for a full one. A customer wants to make the most of this offer and therefore bought several bottles on the first day of the promotion. Now he wants to know how many bottles he will have at the end of the second day of the promotion if he use it to the fullest. Make a program to calculate this. Input The first input line contains integer T (1 ≤ T ≤ 10000), which indicates the number of test cases. In each of the following T lines come two integers N and K (1 ≤ K, N ≤ 10000), respectively the number of soft drinks bought and the number of empty bottles to gain a full. Output For each test case print the number of bottles that the customer will have on the second day, if he makes the most of the offer.A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format Sample output Enter the hours parked for 3 cars: 1.5 4.0 24.0 Car Hours Charge 1 1.5 2.00 2 4.0 2.50 3 24.0 10.00 TOTAL 29.5 14.50Write a program that accepts a number corresponding to a plane figure: Right Triangle Rectangle Circle The program will then ask for the following: base and height – if the previous input is 1 (right triangle) width and length – if the previous input is 2 (rectangle) radius – if the previous input is 3 (circle)SPECIFICATIONS: - The program will then display the perimeter (circumference of the circle) and area of the chosen figure. You’re free to format the input/output display. The numeric output should be computed and NOT HARD-CODED. - The program will display “invalid input” if the initial input is not 1,2 or 3. After this, the program will terminate.- The next input (dimension/s of the chosen figure) will be stored on a float data type. The program will automatically terminate if the input is not a number.- Observe proper code indention - All lines should have a comment- Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp)TEST CASES: If the user inputs…