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.
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: Write a program that prompts the user to enter four integersand then displays all possible ways of…
A: Since, here no programming language is specified. So, we are providing the solution in Java. The…
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 that reads the following information and prints a payroll statement: Employee’s name…
A: 1. Input All values 2. Calculate gross=hour_pay_rate*10 deduction=gross*0.20 state=gross*0.09…
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.
A: #include<iostream>#include<string.h>using namespace std;int main(){char nameAll[5][20],…
Q: Write a program that asks the user for the number of miles driven and the gallons of used. It should…
A: The formula to calculate the miles per gallon of the vehicle is as follows Miles per gallon,…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT GIVEN, I HAVE USED PYTHON FOR THE SOLUTION Define…
Q: Write a program that displays the differences between the first and last, the second and next to…
A: Program description: n is the user input integer variable that stores the number of elements in the…
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 an uppercase letter and converts it to a lowercase…
A: Program plan: Take input in uppercase add 32 to in ( ascii code) print character
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: Note: since the programming language is not the question is implemented using C++.
Q: Write a program that prompts the user to enter the year and the first three letters of a month name…
A: CODE TO COPY:- month_lst = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',…
Q: Write a program that prompts the user to enter an integer between1 and 12 and then displays the name…
A: Program approach: Input an integer between 1 and 12. Displays the name of the month that…
Q: Write a program that asks the user to enter a three-digit number, then prints the sum of its digits
A: Code snippet:
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 to get a random number between 1 and 100, use the button to check whether the given…
A: write a program to get random number between 1 and 100......
Q: Write a program to convert a measurement given in feet to the equivalent number of (a) yards, (b)…
A: Program requirements: The c++ program prompts the user to enter the value for feet and then…
Q: Write a program that prompts the user to enter a letter grade A/a, B/b, C/c, D/d, or F/f and…
A: PYTHON Program:- grade=input('Enter a letter grade:') # Take input grade # Check all grades with…
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 10 names. each with a minimum of 30 characters.…
A: Program: //include the essential header files #include<iostream> using namespace std;…
Q: 9) Write a program that reads a temperature value and the letter C for Celsius or F for Fahrenheit.…
A: According to the question below the solution: Output:
Q: Write a program that prompts the user to enter the three points (x1, y1), (x2, y2), and (x3, y3) of…
A: Python Code: # Enter three points for a trianglex1, y1, x2, y2, x3, y3 = eval(input( "Enter three…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: - We need to complete the code in C++. - We are dealing with averages.
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. output…
A: Program: #include<iostream>using namespace std; int main(){string input[10];for(int i = 0; i…
Q: Write a program that will count the number of votes for each candidate, show the total number of…
A: Use an array to store the votes for each candidate and keep on voting till user wish to quit
Q: Write a program that prompts the user to enter a letter and displays its correspond- ing number.
A: The code for converting any mobile keypad characters into their respective numbers is written below.…
Q: • Write a program that computes the average of 5 students grades which are entered by the user.
A: According to the guidelines we are supposed to answer only 1 question. So I am solving the first…
Q: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total.…
A: GIVEN: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: #include <iostream>using namespace std; int main(){ int dollars, cents;…
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. Output…
A: The program defines an array called name of type string which have size 10. A for loop is used to…
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 takes your full name as input and displays the abbreviations of the first and…
A: Note: Programming Language not specified using C++ to implement code: //include the necessary…
Q: Write a program that prompt the user to enter the number of students and each student's score, and…
A: #include <iostream>using namespace std; struct student{ char name[50]; float marks;}…
Q: Write a program that prompts the user to enter 10 integers, and normalizes the integers to be in the…
A: we get- 10 user-inputted integers. we have to normalize the numbers by dividing each number by the…
Q: Write a program that prompts the user to enter the month and year and displays the number of days in…
A: February has 28 days in non-leap years and has 29 days in leap years
Q: Exercise : Make a program that takes 5 test scores from the user, calculate the average Score and…
A: According to the Question below the Solution: Output:
Q: Write a program that shows the numbers up to the entered number that are divisible by 6 but not…
A: Here I have first of all asked the user to enter a number and stored it into a variable num. Now I…
Q: Write a program that reads the 10 student grades () from keyboard and calculates the class average.
A: Code in python programming language #Program to read grades of 10 students from teh keyboard and…
Q: Write a program that asks the user to enter two numbers, obtains the two numbers from the user and…
A: Given: Write a program that asks the user to enter two numbers, obtains the two numbers from the…
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. Output…
A: Program Algorithm – Include the important header files. Define the main function. Declare the…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Step 1:- Program Approach:- 1.Include the header files 2.Declare variables, an array of data type…
Q: Write a program that will ask the user to enter the name of the course they're taking (should be…
A: Since you have not mentioned the name of the programming language. i will use python: code:…
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 =…
Q: Write a program that calculates the attendance percentage for students, there are total 120 working…
A: Note: In this question the coding language is not specified then we are doing this question in the…
Q: Write a program that prompts the user to enter the number of students and each student’s score, and…
A: Given:- Write a program that prompts the user to enter the number of students and each student’s…
Write a
of students and each student’s name and score, and finally displays the names of the
students with the lowest and second-lowest scores.
Step by step
Solved in 2 steps with 1 images
- Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, the 405 services the 5, and the 290 services the 90. Your program will prompt the user to type a highway number ("Please enter a highway number, Ex: 65: "), read in the number typed by the user, and print out whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also your program must indicate if the (primary) highway runs north/south or east/west, that it is an invalid number if not between 0 and 999. Ex: If the input is: 90 the output is: The 90 is primary, going east/west. Ex: If the input is: 290 the output is: The 290 is auxiliary, serving the 90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number. #include <iostream>using…Exercise II Write a program that finds the positive integer solutions of the following equation ax³ + bx² + cx' + d = 0. The user enters the values of coefficients a, b, c and d. The program should test each integer starting from -50 to 50, and each time the equation is equal to zero, it prints its value as well as "is a solution". At the end, it displays the total number of positive integers found. Note that if the equation has more than one solution, the plural word “solutions" is used in the output. Sample run 1: Enter the coefficient of a, b, c, d: 1 -8.5 21 -13.5 1 is a solution 3 is a solution The equation has 2 integers as solutions Sample run 2: Enter the coefficient of a, b, c, d: 6 48 103.5 67.5 The equation has no integer solutions Sample run 3: Enter the coefficient of a, b, c, d: 1 -1 -12 0 4 is a solution The equation has 1 integer solution
- In Python Write a program that allows the user to type in a phrase and then outputs the acronym for that phrase. Note: The acronym should be all uppercase, even if the words in the phrase are not capitalized.Many financial experts advise property owners to insure their homes or buildings forat least 80 percent of the amount it would cost to replace the structure. Write a programthat asks the user to enter the replacement cost of a building and then displays theminimum amount of insurance that should be purchased for the property .The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that ask the user to enter a month in numeric format, a day and a two-digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is Magic. Otherwise, it should display a message saying the date is not Magic. Output should look as shown below. Create test data and place in a file. Name the code file Last Name + First Initial + "-MagicDates.s", for example "SmithJ- MagicDates.s". Name the test data file in a similar manner. Upload the program and test data files to the Dropbox. 6/10/60 is Magic! 6/10/70 is not Magic. 2/11/22 is Magic!
- Task 1: Find the even multiples of any number chosen by the user in a given range - the user should specify the multiples of which number they want to print and a minimum and maximum value. The multiples printed should be within the [minimum, maximum] range. For example, if the user chooses the number 7 and would like to print all even multiples in the [15, 60] range, the program should print all the even multiples that are bigger than or equal to 15 (minimum), but smaller than or equal to 60 (maximum). The program should keep a count of how many numbers were printed and should output that count, as well as the numbers. The output then, for the example given, should be 28, 42, 56, and the count should be 3. Shell scriptingThe cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Questions 1. Write a program which asks the user to enter a six-digit number and print a new number by subtracting 1 to each of its digits. For example, if the number entered is 393201, the output should be displayed as 282190. Information on the console should be displayed similar to the Sample Run shown below. Sample Run: Enter a 6 digit number: 393201 Modified number is: 28219d
- 1. Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an integer and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.ShowCurrentTime.py, gives a program that displays the current time in GMT. Revise the program so that it prompts the user to enter the time zone in hours away from (offset to) GMT and displays the time in the specified time zone.The monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining principal). The principal paid for the month is therefore the monthly payment minus the monthly interest. Write a program that lets the user enter the loan amount, a number of years and interest rate then displays the amortization schedule for the loan. A sample run is shown below. Welcome to PE5.22 Loan Amortization Program by Mrs. Jackson