Question: 1 Write a program that prompt the user to enter product unit price and quantity purchased. The program will then calculate the sale tax as
1
Write a program that prompt the user to enter product unit price and quantity purchased. The program will then calculate the sale tax as 5% of the sale amount. When you prompt for the unit price, do not let the user proceed until a number between 1 and 1,000 has been entered. When you prompt for quantity purchased, do not proceed until the user has entered a non-negative value. After a valid purchase is entered then the program will display a purchases details (unit price, quantity purchased, sale tax, and total cost). Use loop to continue prompting you for your purchase information and calculate/display purchase details until you enter a n or N when prompted.
2
Write a multiplication table program that accepts a multiplication base number as well as the low and high values for the range of multipliers. It then constructs a multiplication table for the base number from the low number to the high number. If the base number is 5, the low number is 3, and the high number is 15, for example, the multiplication table would display all multiples of 5 from 3 x 5 up to 15 x 5.
Output should look like
Multiplication Table for 5:
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
..
5 x 12 = 60
You can upload your solution as a zipped folder containing the source code .cpp file and the screen shot pasted into a word document.
Compose your work in a .doc or .docx file type using a word processor (such as Microsoft Word, etc.) and save it frequently to your computer. For those assignments that are not written essays and require uploading images or PowerPoint slides, please follow uploading guidelines provided by your instructor.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
