1) Write a program that uses a for statement to calculate and print the product of the odd integers from 1 to 15. 2) A mail order house sells five different products whose product numbers and retail...

C++ simple loop technique
1) Write a program that uses a for statement to calculate and print the product of the odd<br>integers from 1 to 15.<br>2) A mail order house sells five different products whose product numbers and retail prices are:<br>product 1- $2.98, product 2 - $4.50, product 3 - $9.98, product 4 - $4.49, product 5 - $6.87.<br>a) Write a program that reads a series of pairs of numbers (from user). That is, each time it<br>reads the pairs of values as follows:<br>D product number<br>1i) quantity of that product sold<br>b) Your program should use a switch statement to determine the retail price for each<br>product.<br>c) Your program should calculate and display the total retail value of all products sold.<br>d) Use a sentinel-controlled while loop so user can indicate when the program should stop<br>looping and display the final results.<br>

Extracted text: 1) Write a program that uses a for statement to calculate and print the product of the odd integers from 1 to 15. 2) A mail order house sells five different products whose product numbers and retail prices are: product 1- $2.98, product 2 - $4.50, product 3 - $9.98, product 4 - $4.49, product 5 - $6.87. a) Write a program that reads a series of pairs of numbers (from user). That is, each time it reads the pairs of values as follows: D product number 1i) quantity of that product sold b) Your program should use a switch statement to determine the retail price for each product. c) Your program should calculate and display the total retail value of all products sold. d) Use a sentinel-controlled while loop so user can indicate when the program should stop looping and display the final results.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here