A mail order house sells five different products whose retail prices are as follows: * product 1: $2.98 * product 2: $4.50 * product 3: $9.98 * product 4: $4.49 * product 5: $6.87 Write a program that prompts the user to enter the product number and the quantity sold and keeps the running total of products sold until the user inputs -1 for product number. At the end, the program will display the total retail value of all products sold. C++ please.
Q: Program IV: The Tuition Part Write a program that prompts the user to enter the number of courses…
A: C++ used to answer this question
Q: O Looking At College Apartments | It's Gett.. G Grok | Calculate rok Code Gym 1a academy Calculator…
A: I've used the input() function in this example. To collect data from the user. To subtract the…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Answer :
Q: The company discounted used cars pays their employees according to this chart: 250$ per months plus…
A: given: salary is according to this: 250$ per months plus 50$ per car sold if sales> 10, bonus 5%…
Q: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: Q4: Write a program to ask the user for an integer then displays an "hour glass figure" as…
A: Given:
Q: there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B…
A: In the above code, it has been asked to print the how many tickets for each class of seats were sold…
Q: Positions on a chess board are identified by a letter and a number. The letter identifies the…
A: The chessboard is a game board where two players move the pawns on the board of size 8x8. The…
Q: Write a program that: • Prompts the user to enter from the keyboard a month number (integer from 1…
A: Dear Student, As no programming language is mentioned I am doing it using c++.
Q: Write a program that repeatedly asks the user to enter integer numbers (validation is not…
A: please mention programming language name, whenever you post question. this is done in c.…
Q: 6. Positions on a chess board are identified by a letter and a number. The letter identifies the…
A: The program is implemented in C++ with object oriented approach. In the program we have first taken…
Q: Homework 1. Write a program to have the user guess a number stored in the program. If he guesses…
A: According to the question below the complete program: Programming language is not mention so i am…
Q: a. In case the value entered by the user has less or more than 4 digits the program must outpu have…
A: Java program: import java.util.Scanner; //Creat Classpublic class Main { //main method public…
Q: Summary During winter when it is very cold, typically, everyone would like to know the windchill…
A: Program code: //include required header files #include <iostream> #include <cmath>…
Q: (1) Prompt the user to input a food item name, price, and quantity. Output an temized lecep Note…
A: Python used to answer this question
Q: 4.19 (Calculating Sales) An online retailer sells five different products whose retail prices are…
A: Programming instruction: Include the necessary header file. Declare the required variables. Use…
Q: Write a program that prompts the user to input any digit then swap the position of the first and the…
A: Include the header file. Inside the main function take the input of the element. Take the first…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Algorithm: 1. Input unit sold 2. Check if quantity is not negative. 3. Check the condition for…
Q: 3. A company sells five different products with prices shown in the following table Product Number…
A: The problem is based on finding the total amount when the product number and quantity is taken as…
Q: A mail order shop sells ten different products whose retail prices are shown in the following table:…
A: As no programming language is mentioned I will be using C++ to code.
Q: For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the…
A: Program: //include the header file #include<iostream> using namespace std; //definition of…
Q: No function in your program is allowed to be longer than 10 statements. • Be sure to include the…
A: The python code
Q: (Summing Integers) Write a program that uses a for statement to sum a sequence of integers. Assume…
A: As the programming language is not mentioned so I am writing a code in C++ language. Program…
Q: Write a program that prompts the user to enter a number within the range of 1 through 10. The…
A: Required: Write a program that prompts the user to enter a number within the range of 1 to 10. The…
Q: Java Script Questions from number 2 to number 4
A: (2) Complete program: <! DOCTYPE html> <html> <body> <p>Question…
Q: A mail order house sells 5 different products whose retail prices are shown in the following table:…
A: C used to answer this question
Q: (Calculating Total Sales) A mail order house sells five different products whose retail prices are:…
A: C++ used to answer this question
Q: A mail order house sells five different products whose product numbers and retail prices are:…
A: C++ used to answer this question
Q: A hotel computes the room price as following: Taxed price = total price x ( 1 + tax rate) • Total…
A: Using scanner class to read input from user.
Q: Write a program that prompts the user to enter the number of courses taken by a student. The program…
A: C++ used to answer this question
Q: The average cost of a college textbook is $125. There is a premium of 20% on hardcover text and a…
A: conditions :- In case of hardcover text if n>4 total=n*avg_cost+ (premium*(n*avg_cost)/100)…
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: Java program to display the three number in ascending order. Create the object of the Scanner class…
Q: 8. Total Purchase A customer in a store is purchasing five items. The prices of the five items are…
A: Create five variables to store the prices of the five items. Display each item's prices Calculate…
Q: The BITI Students Club is offering a new travelling package or membership. People can choose either…
A: Program Plan: Create a main() int ch,total,mon; Print menu and input the user's choice…
Q: 1. Write a program that prompt the user to enter product unit price and quantity purchased. The…
A: The given problems are to be solved in C++ programming language where required inputs will be taken…
Q: The Guessing Game Specification: 1- User specifies a range (from 0 to an upper band) for the game.…
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner s=new…
Q: The credit plan at TidBit Computer Store specifies a 10% The amount of principal for a month is…
A: Given: The month number (beginning with 1) The current total balance owed The interest owed for…
Q: Car sales commission problem - For each used car a salesperson sells, the commission paid is as…
A: As per our policy, we can answer only one question if want an answer for the second question you can…
Q: Q.3-Write a program prompts the user for the current year and month, the user's current age in years…
A: #include<stdio.h> int main(){ int…
Q: Write a pseudo code in which you ask the user to will enter a number and then enter 5 more numbers…
A: A pseudocode is a sequence of codes written in a natural language such as English. It is a…
Q: The value for # can be determined by the series equation: ==4x{1- 1 1 11 7 9 1 1 *13 Write a program…
A: Program description: n is the user input integer variable that stores the number of iterations. math…
Q: A county collects property taxes on the assessment value of property, which is 60 percent of the…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read actual value…
Q: (Summing Integers) Write a program that uses a for statement to sum a sequence of integers. Assume…
A: Note: Here you didn't mention any programming language so we are writing the program in the C++…
Q: (Find future dates) Write a program that prompts the user to enter an integer for today’s day of…
A: Actually, integers are like whole numbers, also included negative numbers.. but not allows floating…
Q: Program IV: The Tuition Part Write a program that prompts the user to enter the number of courses…
A: ****Note: As programing language is not mentioned in the question, using C++ language to solve…
Q: enger. The user inputs the ticket type (business/economy), as well as the of the passenger…
A: Q.6 Form1.html <html><body> <form action="calculate.php" method="POST"> Tiket…
Q: program that applies bonus scores to given scores in the range [1.9]. The program eads a digit as an…
A: Question-> Construct a Flowchart Diagram, Pseudocode and write a C++ program that applies bonus…
Q: One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to enter…
A: Note: In this question, the coding language is not specified then we are doing this question in the…
Q: Suppose you shop for rice in two different packages. You would like to write a program to compare…
A: import java.util.Scanner; public class Exercise_1{ public static void main(String[] args)…
A mail order house sells five different products whose retail prices are
as follows:
* product 1: $2.98
* product 2: $4.50
* product 3: $9.98
* product 4: $4.49
* product 5: $6.87
Write a
quantity sold and keeps the running total of products sold until the user
inputs -1 for product number. At the end, the program will display the total
retail value of all products sold.
C++ please.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered is greater than 12 or less than 1, display an error message; otherwise, display the valid month with a message such as 3 is a valid month. b. Write a program named CheckM0nth2 that prompts a user to enter a birth month and day. Display an error message if the month is invalid (not I through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between I and 29 for February). If the month and day are valid, display them with a message.The monthly payment for a givenloan pays the principal and the interest. The monthly interest is computed by multiplyingthe monthly interest rate and the balance (the remaining principal). The principalpaid for the month is therefore the monthly payment minus the monthly interest.Write a program that lets the user enter the loan amount, number of years, and interestrate then displays the amortization schedule for the loan. Here is a sample run: Loan Amount: 10000 ↵EnterNumber of Years: 1 ↵EnterAnnual Interest Rate: 7 ↵EnterMonthly Payment: 865.26Total Payment: 10383.21Payment# Interest Principal Balance1 58.33 806.93 9193.072 53.62 811.64 8381.43...11 10.00 855.26 860.2712 5.01 860.25 0.01InstructionsLet n be a nonnegative integer. The factorial of n, written n!, is defined by 0! = 1, n! = 1·2·3· · ·n if n ≥ 1. For example, 4! = 1·2·3·4 = 24. Write a program that prompts the user to enter a nonnegative integer and outputs the factorial of the number.
- A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10Rosa's Roses are $1.69 each but discounts are available for larger numbers.1 dozen roses or more @ $1.392 dozen roses or more @ $1.193 dozen roses or more @ $0.89Write a program that prompts for an exact number of roses and then prints the bill. There is no tax
- The factorial of n is the product of all the nonnegative integers from 1 to n. for 8! = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 = 40, 320 Write a program that prompts the user to input a nonnegative integer (if yc negative integer, the program should prompt you to re-enter until you nonnegative integer) and calculate the factorial of that number. Your result should look like below: Enter a nonnegative integer: 8 The factorial of 8 is 40320.using java3)Write a program which prompts the user for their age. If they are 19 or younger inform them that qualify for student discounts. If they are between 20 and 65 inform them that they qualify for no age discounts. If they are 65 or over inform them that they can receive senior discounts. (solution will be Pyhton code,thank you)4)Write a program from decimal to any base, ask the user for a decimal number and convert entered base by user. (Your program should support bases between 2 and 16 .) (solution will be Pyhton code,thank you)An employee is paid at a rate of $16.78 per hour for regular hours worked in a week. Any hours that are paid at the overtime rate of one and one half times that. From the worker’s gross pay 6% is withheld for social security system tax, 14% is withheld for federal income tax, 5% is withheld for state incofor union dues. If thfor health insurance beyond what the employers pays. Write a program that will read 25 employees the number of hours worked in a week and the number of dependents as input, and will then output the worker’s gross pay, each withholding amount and the net take home pay for the week.
- 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…A mobile phone service provider has three different subscription packages for its customers: Package A: For $39.99 per month, 450 minutes are provided. Additional minutes are $0.45 per minute. Package B: For $59.99 per month, 900 minutes are provided. Additional minutes are $0.40 per minute. Package C: For $69.99 per month, unlimited minutes are provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of minutes that were used. The program should display the total charges.Fox International sells pre-paid calling card with the following features: Calls to USo 1.2 cents per minute plus a 49 cent connection fee per call Calls to Europeo 2.3 cents per minute plus a 49 cent connection fee per call Calls to Australiao 6.4 cents per minutes plus a 49 cent connection fee per callWrite a program that work out the charges for the month. The program should accept the followinginformation: Account holders name Card number Starting Balance on card For US callso Total number of minutes of all callso Total number of calls made For European callso Total number of minutes of all callso Total number of calls made For Australian callso Total number of minutes of all callso Total number of calls madeYou are NOT expected to error check your inputs for this assignment. (e.g. checking for negative values,etc.). There is NO GST charged on the calls as the GST was paid when the card was purchased.Format of output:Review the test plan to see how the user would like the…