The program will display (its outputs) the following: 1. The complete list of students along with their grades in a descending order of the grades. 2. The average and range of the students' grades. 3. The name of the student with the maximum grade and displays this grade. 4. The name of the student with the minimum grade and displays this grade.
Q: An estate agency stores the sizes and prices of apartments for sale. The first line of the standard…
A: C++ code for the problem is: #include<bits/stdc++.h> using namespace std; int main() { int…
Q: Write a program that calculates the average word length in a sentence entered by a user.
A: please do upvote for mt efforts thanks! answer: if __name__ == '__main__': s = input("Enter the…
Q: Which of the following outputs data in a program A The assignment statement B The print…
A: output statements helps in displaying output to screen.
Q: Write the server program that receives a number from a user and calculates the square root of the…
A: Program: import java.util.Scanner; public class KboatRoots{ public static void main(String…
Q: Create a program in C-Language that will accept and display information about the user of your…
A: Code to display Name, Address, course and section #include<stdio.h> int main() { char…
Q: Create a program in Python where you help one of your professor’s summarize test scores. The test…
A: In the given below python program has exception handling included in it.
Q: Which statement(s) creates the following tuple? ('P', 'y', 't', 'h', 'o', 'n', 'p', 'r', 'o', 'g',…
A: tuple is used to store data and this cannot be edited tuple() taking a string will split it and each…
Q: A program is required by a company to read an employee‘s number, pay rate and the number of hours…
A: Validation Process: Assume that the company follows below rules, The maximum number of hours an…
Q: Run the following Program 12.5 and answer the following questions. [Laksanakan Program 12.5 berikut…
A: Required:
Q: 2. Write a program that generates a two-column table showing Fahrenheit temperatures from -40F to…
A: The given program is in java.
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.…
A: The C++ code for this question is given below. The snapshot of the code and output is attached.
Q: Question 1 Write a program that finds the new salary of an employee after several years of work…
A: Note: Programming language not mentioned in the question. C++ is chosen for implementation.…
Q: Write a C++ program that displays a table of conversions from feet to meters. The program needs to…
A: C++ program that displays a table of conversions from feet to meters. Algorithm: Start prompt…
Q: write a program c++ A General: Service company hired you to write a program to compute the total…
A: The program will take the user input of material service and hours to compute the total charge for…
Q: use c++ Write a program that prompts the user to enter the number of seconds, displays a message at…
A: The complete C++ code is given below with code and output screenshots Thread is used here...
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: USING PYTHON, Write a program that calculates the amount of money a person would earn over a period…
A: The given problem is to be solved using Python programming which will calculate the salary of a…
Q: function area = calculateArea (x, y) % Function to calculate an area given two lengths (x, y) area =…
A: **I am using an online simulator, but the answer will be the same as Matlab compiler. octave:1>…
Q: Write a program that reads from the user the registration fees, number of credits required for a…
A: Given: To write a program to calculate the payment to be paid by user each year and satisfying the…
Q: Create a program that accepts input from the user and outputs information about the test scores:
A: #include <stdio.h> int main(){ int marks[5], total=0, hscore=0; double avg;…
Q: Problem 1 Write a program that removes all the punctuation marks except spaces from a given sentence…
A: C program is given below for removing all the punctuation marks except spaces from a given…
Q: Test it in the main function Create e musicplayer with 3 songs. Play the current song. Play the next…
A: Solution:…
Q: Write a program that reads two excel sheets. One of these sheets contains a list of items names. The…
A: CODE: # Import library to read excel fileimport openpyxl # Reading the sheets in the…
Q: Method used in writing and designing of a program is termed as a. bottom-up method b. top-down…
A: There are several approaches which are followed to complete a program or a software. These…
Q: The equation given below represents the relation between the altitude (h) and air pressure (p):…
A:
Q: Write a program that reads from the user the registration fees, number of credits required for a…
A: Given: To write a Java program that reads from the user the registration fees and other requirements…
Q: Write a program that prompts the user for the current US population, and the names and population of…
A:
Q: Write a program to get a number as an input from user and outputs that either a number is odd or…
A: EXPLANATION - In this program the task is - To get a number as an input from user . And , then…
Q: Exercise #1: Write a program that prompts the user to input the total number of students that plan…
A: Your C++ program is given below with an output.
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: pseudocode :
Q: 4. Write a program that resembles a phone book, which stores and displays the names, the addresses…
A: In the code we take the students of number 20. We declare the name , address and telephone number…
Q: Objects.bxt x 3.50 0.09 3.38 0.04 26.52 0.23 2571.35 1.75 96.95 0.09 An object will float if its…
A: Things to do in the program: Open file in reading mode Read the numbers from file and store it in…
Q: Write a program accepts numerical value x from 0 to 100 as input and computes and displays the…
A: if(x>=90){ cout<<"A"<<endl;}else if(x >=80 && x<=89){…
Q: Write a program to calculate and display the average, the lowest and the highest marks of a class of…
A: Q: Code the given problem
Q: Please write a program to find the greatestcommon divisor of three number.
A: Create an array of 3 integers and find the common number which is divisible by all the numbers
Q: Write a program that calculates the amount of money a person would earn over a period of time I f…
A: According to the information given:- We have to follow the instruction in order to get the desired…
Q: Play Yahtzee specs For this game, you will need no user input at all. Declare integer variables that…
A: how to find random number between 1-6. rand() returns a random number in range of 0 to a constant…
Q: Q1/ Write a program that reads from the user the number of students in the class and their grades i…
A: Code:Specific language is not mentioned so i am giving the code in c++ langauge: #include…
Q: Write a program that performs a survey on beverages. The program should prompt for the next person…
A: Required: Write a program that performs a survey on beverages. The program should prompt for the…
Q: game #4 player 1 : rock player 2 : rock playerl = 1, player2 = 1 Notice this game scores didn't cha…
A: #include<iostream> #include<cstdlib> #include<ctime> int main(){ unsigned…
Q: Create a C++ program that takes a course score (a value between 0 and 100) and determines a…
A: ALGORITHM:- 1. Call both the methods. 2. Display the result. 3. Finish.
Q: Instructions Ch9_Ex2Data.txt Ch9_Ex2Out.txt ma 1 Duckey Donald 85 2 Goof Goofy 89 Instructions 3…
A: Introduction : Here we have to write a program that reads students’ names from a file followed by…
Q: Write a program that takes in the user’s name and age. Then displays his/her name’s initial letter…
A: Algorithm: Start Var name, age Accept name from user Accept age from user Display(name[0]) Display…
Q: You develop a Python application for your company. You need to accept input from the user and print…
A: Answer: Syntax for userInput: print("Enter your name:") y = input() #taking user Inputprint("Hello,…
Q: Write a program that calculates the amount of money a person would earn over a period of time if his…
A: Here,write a program that calculates the amount of money a person would earn over a period of time…
Q: Write a C++ program that prompts the user to enter values until the value 0 is entered. The program…
A: Here is the c++ program of above problem: See below steps:
Q: Write a console program, that will calculate the pocket money saved over a period, with one cent at…
A: We need to write a console program for mentioned functionality. The language used is JAVA.
Q: 21. Write a program main.go that gives the output as given below. Assignment-1 Assignment-2…
A: Write a program main.go that gives the output as given in the question.
Q: PROBLEM: Write a program that will let the user to input year level and status base on table below.…
A:
Step by step
Solved in 2 steps
- 1.15 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.051) / 12. End the last output with a newline. Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $850.0. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming. import java.util.Scanner; public class HouseRealEstateSummary { public static void main(String[] args) { int currentPrice = 200000; int lastMonthsPrice = 210000; int = scnr.nextInt(); int estimated Monthly…1.15 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.051) / 12. End the last output with a newline. Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $850.0. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming. 1.15.1: LAB: Input and formatted output: House real estate summaryA company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee's weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the following functions—a function to read the data from the file…
- Write a program to take input name, ID and marks of 4 Courses (Physics111,Math120, English102 & CSE162) obtained by you and your group members.Display the Name, ID, grade in each of the courses and also the result of totalmarks and percentage obtained with his/her rank in the class.Write a program that converts U.S. dollars to Canadian dollars, German marks, and British pounds, as shown in Figure 36.18. The user enters the U.S. dollar amount and the conversion rate, and clicks the Convert button to display the converted amount.Instructions for both assignments can be found in the picture linked to this post. The programs must be written in c++ and requires that the random number generator be seeded like this program: Program 3.25 // This program demonstrates random numbers. #include <iostream> #include <cstdlib> // For rand and srand #include <ctime> // For the time function using namespace std; int main() { // Get the system time. unsigned seed = time(0); // Seed the random number generator. srand(seed); // Display three random numbers. cout << rand() << endl; cout << rand() << endl; cout << rand() << endl; return 0; }
- Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format: firstName middleName lastName (in one line) and outputs the person's name in the following format: lastName, firstInitial.middleInitial. Ex: If the input is: Pat Silly Doe the output is: Doe, P.S. If the input has the following format: firstName lastName (in one line) the output is: lastName, firstInitial. Ex: If the input is: Julia Clark the output is: Clark, J.Write a program that calculates the amount of money a person would earn over a period of time I f his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.Write a console program, that will calculate the pocket money saved over a period, with one cent at the start of account setup, will double every day. For example, if the opening balance is one cent the first day, it will be two cents the second day, and continues to double each day. The console program you will write, should ask the user for the number of days, and display a table showing what the saving was for each day, and then show the total savings at the end of the period. The output should be displayed in a dollar amount, not the number of cents.
- C++ A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employ- ee’s weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the follow- ing functions—a function to read the data from…Computer Science IN C++ Test it in the main function Create e musicplayer with 3 songs. Play the current song. Play the next song. Play the next song. Play the next song. Play the previous song. Print the list of the songs using bool parameter true. Print the list of the songs using bool parameter falseC++ A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee's weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the following functions—a function to read the data from the…