CS 1400 Assignment 2
Conditions
Due Thurs., June 21
10 points
Write, compile, and execute C++ programs for problems a) and b) below.
a) Concrete Costs: Revisit the concrete costing program of assignment #1: The company has decided to add a $75 delivery charge to customers who order less than 25 yards of concrete. Modify your program to add this charge.
b) Phone Bill: The GrassHopper Wireless company charges $0.09 per minute and every fraction thereof. In other words, your total minutes of cell phone use are rounded up to the next whole number; 103.1 minutes of use would be billed for a full 104 minutes. In addition, a base charge is applied: Customers who use less than 100 minutes are charged $25, customers who use 100 to 200 minutes are charged $30, and customers who use more than 200 minutes are charged $35. Write a program to input the number of minutes used and then calculate the appropriate cell phone bill
On Eagle, this assignment shows up as two assignments. When complete, submit a .cpp file for each program to Eagle. Each program is worth 5 points for a total of 10 points.
1
HW3.doc