Write a program that asks the user to type in a time in seconds and display it in the standard format hours:minutes:seconds (where 1 hour= 3600 seconds and 1 minute = 60 seconds). Your output should look similar to this: Time in seconds: 3725 Time is. .. 1:2:5 Press any key to continue
Q: Create a program that converts a temperature in degrees Fahrenheit to the corresponding temperatures…
A: NOTE: Since the programming, langauge is not mentioned therefore answering the question in python…
Q: Write a program called celsius_to_fahrenheit which prompts the user for a Celsius temperature,…
A: Algorithm / Steps: User input for celsius temperature Converting celsius temp to Fahrenheit temp…
Q: Write a program that prompts the user to enter two positive integers less than 1,000,000,000 and the…
A: Program code: //include the required header files #include <iostream> using namespace std;…
Q: Write a program that will ask the user to enter an integer number and display the message ‘ Prime ‘…
A: Programming language is missing in the question. So we will answer this program in C++. If you want…
Q: Write a program that prompts the user to enter the number of students and each student’s name and…
A: Since the coding language is not given, I have done the code in Python. Algorithm : Step 1 : ask for…
Q: Write a program that prompts the user to enter a three-digit integer and determines whether it is a…
A: JAVA CODE IS GIVEN BELOW:
Q: Write a program that requests the user to enter the total purchase in dollars and cents ( for…
A: As there is no langhuage mentioned I am solving this using c. Algorithm: 1. read the amount amt 2.…
Q: Write a program that simulates car racing, as shown in Figure 9.29b–d. The car moves from left to…
A: Racing car: Write a program that simulates racing* The automobile moves from left to right. once it…
Q: Write a program that prompts the user to enter the students’ names and their scores on one line, and…
A: Output:
Q: Write a program that asks the user to guess a random number between 1 and 10. If they guess right,…
A: Program: # initialize the score to 0 score = 0; # the number to guess is 5 number = 5; # run the…
Q: Write a program that prompts the user to enterthe month and year and displays the number of days in…
A: Program: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that asks the user to enter a month (1 for January, 2 for February, etc.) and then…
A: Code: #include <iostream> using namespace std;//here is the main functionint main(){ //here…
Q: Write a program that prompts the user to enter the month and first day of the month, and displays…
A: /*program that prompts the user to enter the month and first day of the month, and displays all the…
Q: Write a program which prompts the user for a number and prints the numbers from 1 up to that number,…
A: ALGORITHM:- 1. Take the value of n as input from user. 2. Generate the numbers from 1 to the input…
Q: Write a program that converts U.S. dollars toCanadian dollars, German marks, and British pounds, as…
A: Program: import java.text.NumberFormat; import java.util.Locale; import…
Q: Write a program that prompts the user to enter the year and first day of the year, and displays the…
A: PROGRAM CODE: import java.util.*;public class Main { public static void main(String[] strings)…
Q: Write a program named FahrenheitToCelsius that accepts a temperature in Fahrenheit from a user and…
A: using System; namespace Celsius{ class Program { static void Main(string[] args)…
Q: Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within…
A: NOTE: - The following solution is implemented in java. EXPLANATION: - To know if the point lies…
Q: Write a program that prompts the user to enter a time in seconds over 500 and then displays that…
A: you did not mention any programming language so i am solving this in java 1 first we have to take…
Q: Write a program that prompts the user to enter the weight of a person in kilograms and outputs the…
A: To solve the given problem, first we need to read weight in kilogram, then use the relation: 1…
Q: Write a program that keep asking for a number until you enter a negative number. At the end, print…
A: I give the code in Python because you have not specified any language along with output and code…
Q: write a program that prompts the user to enter 10 names. each with a minimum of 30 characters.…
A: Program: //include the essential header files #include<iostream> using namespace std;…
Q: Write a program that prompts the user to enter a sequence of numbers until a -999 is entered. It…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a program that plays a guessing game with the user. The program should generate a random…
A: Required code for the Java program is given in the next step using a while loop for continuous…
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 accepts a number and determines whether the number is positive, negative or a…
A: Given:
Q: Write a code that asks the user to enter several numbers that are a multiple of 5. If the user…
A: I give the code in Python because no language is mentioned along with output and code screenshot
Q: Write a program that asks the user for his name and salutes him using it. The prompt must be "What…
A: Given:
Q: Write a program that promotes the user to enter the number of students and each student's name and…
A: The java program and the approach that prompts the user to enter the names and the scores of the…
Q: Write a program that asks the user to type in a time in seconds and display it in the standard…
A: sec = int(input('Time in seconds: '))if(sec>60): min = int(sec/60) sec = sec%60if(min…
Q: Write a program that begins by reading a temperature from the user in degrees Celsius. Then your…
A: Given: To Write a program that begins by reading a temperature from the user in degrees Celsius.…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: Hello student Here is your answer
Q: Write a program that prompts the user to enter the numberof students and each student’s name and…
A: Program: import java.util.*; public class Main { static void LowestScores(String name[], float…
Q: Write a program that prompts the user to enter apoint (x, y) and checks whether the point is within…
A: Program Approach: Importing necessary packages to get standard input and output. Defining a class…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Note: As programming language is not mentioned. So used Python to complete the task. Program: #…
Q: Write a program that prompts the user to enter the number of seconds, displays a message at every…
A: Program Code in Python seconds = int(input("Enter the number of seconds: "))while seconds > 2:…
Q: Write a program that allows the user to enter timein seconds in the text field and press the Enter…
A: Program: /*Import necessary packages into program*/ import java.io.File; import…
Q: Write a program that prompts the user to input three positive angle values in degrees to determine…
A: - We need to code for the triangle program.
Q: Write a program named TypingGrades that allows a user to enter a student's number of words typed.…
A: Conditional statement: The conditional statement is used to control the flow of execution based on…
Q: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as…
A: import java.util.*;import java.lang.*;import java.io.*; class Codechef{ public static void main…
Q: Write a program that prompts the user to enter the year and first day of the year, then displays the…
A: Given, we get- year from the user, first day of the year from user. based on the above data, we…
Q: Write a program that creates a login name for a user, given the user's first name, last name, and a…
A:
Q: Write a program that asks the user his/her name(first letter), semester, mlarks, and age and then…
A: Code : import java.util.*;class input{ public static void main(String[] args){ Scanner input = new…
Q: Write a program that prompts the user to enter the total time in seconds and displays the hours,…
A: GIVEN:
Q: Write a program that will ask the user to continuously enter a number until such time that the…
A: I have given c++ code below.
Q: Write a program that prompts the user to enter two integer numbers A and B. The program must check…
A: Using if else and for loops we can solve this problem.
Q: write a program that prompts the user to enter the number of students and each student name and…
A: The java program and the approach that prompts the user to enter the names and the scores of the…
Q: Write a program that ask the user to enter his/her letter grade and then respond with an appropriate…
A: grade = input("Enter your grade : ") #taking user inputif(grade == 'a' or grade == 'A'):…
Q: CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZEN IF YES, THEN GIVE 20% OFF IF…
A: As no programming language is mentioned here, we are writing this program in python price =…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Write a program that prompts the user to enter the numberof students and each student’s name and score, and finally displays the names of thestudents with the lowest and second-lowest scores.Write a program that prompts the user to enter a time in seconds over 500 and then displays that time in minutes and seconds?Write a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average
- This is the question - Write a program that inserts parentheses, a space, and a dash into a string of 10 user-entered numbers to format it as a phone number. For example, 5153458912 becomes (515) 345-8912. If the user does not enter exactly 10 digits, display an error message. Continue to accept user input until the user enters 999. This is the code I have - However it isn't seeming to accept my output. It doesn't like what I have for some reason - import java.util.*; public class PhoneNumberFormat { public static void main(String[] args) { // Write your code here //Create an instance of Scanner class Scanner keyboard=new Scanner(System.in); //declare string data type variables String phoneNumber= ""; String formattedPhoneNumber=""; /*Run the loop infinitely until user enters 999 to exit from program*/ while(true) { System.out.println("Enter phone number: "); phoneNumber=keyboard.nextLine(); //exit…Write a program that asks the user to type in a time in seconds and display it in the standard format hours:minutes: seconds (where 1 hour = 3600 seconds and 1 minute = 60seconds). Your output should look similar to this: output: Time in seconds: 3725 time is : 1:2:5Write a program which prompts the user for a number and prints the numbers from 1 up to that number, one per line, and then prints out "That's all!". Some of the code has been provided for you. For example, if the user enters 3 the program should print:
- Write a program that prompts the user toenter the year and first day of the year, then displays the first day of each month inthe year. For example, if the user entered the year 2013, and 2 for Tuesday, January1, 2013, your program should display the following output: January 1, 2013 is Tuesday...December 1, 2013 is SundayWrite a program that prompts the user to enter the year and first day of the year, then displays the first day of each month in the year. For example, if the user entered the year 2013, and 2 for Tuesday, January 1, 2013, your program should display the following output: January 1, 2013 is Tuesday ... December 1, 2013 is SundaWrite a program that prompts the user to enterthe month and year and displays the number of days in the month. For example, ifthe user entered month 2 and year 2012, the program should display that February2012 has 29 days. If the user entered month 3 and year 2015, the program shoulddisplay that March 2015 has 31 days.
- Write a program that allows the user to enter timein seconds in the text field and press the Enter key to count down the seconds,as shown in Figure d . The remaining seconds are redisplayedevery second.When the seconds are expired, the program starts to play musiccontinuously.Write a program that prompts the user to enter the number of seconds, displays a message at every second, and terminates when the time expires. Here is a sample run:what is the output of the following code fragment? int x =10; if (x > 15) x =0; System.out.println(x);elseSystem.out.println(x+5);