ANALYSIS Our problem is designed to take values from a predefined file and place turn them into a billing statement for the Murfreesboro Hotel Inc. We are given 6 input values. Those values are: 1. The customer's name. 2. The customer's room number. 3. The cost of the room per night. 4. The number of nights they're staying. 5. Telephone costs. 6. Extra costs, such as meals. From this information, we are required to calculate total costs, doing so by using mathematics to add various costs together, and tax others. TOP-LEVEL ALGORITHM a. Include files needed for our project. Libraries needed are: 1. iostream cin and cout 2. fstream File manipulation. 3. iomanip I/O formatting. 4. string To keep track of our customer's name. b. Declare our variables: 1. name string Customer's name. 2. roomNumber int Room number. 3. roomRate float Cost of room per night. 4. nights int Number of nights stayed. 5. phoneCost float Costs on telephone bill. 6. extraCost float Extra costs to add to bill. 7. roomCost float Total cost of room for total stay. 8. roomTax float Tax charged on room. 9. subTotal float Room's cost with tax. 10. grandTotal float Subtotal, telephone, and extra costs. 11. tax float Constant for the tax rate of 9.25% c. Prompt user for the path of a file to open. d. Open the file, making sure to use the c_str() function to open the file they specified. e. Scan the file for our 6 input values, in the order of: 1. name 2. roomNumber 3. roomRate 4. nights 5. phoneCost 6. extraCost and store their values in memory, in their appropriate variables. f. Close the file, as all the information is loaded into memory. Here, closing our file buffer prevents possible damage to the file. g. Calculate other costs behind-the-scenes, such as: 1. roomCost roomRate * nights 2. roomTax roomCost * tax 3. subTotal roomCost + roomTax 4. grandTotal subTotal + phoneCost + extraCost h. Display our billing statement. It will consist of: 1. Heading 2. Guest's name 3. Room Number 4. Room cost per night (rate) 5. Number of nights stayed 6. Cost of room for nights stayed and room rate 7. Tax charged on room, including percentile rate. 8. Subtotal, before other costs 9. Telephone costs 10. Extra costs 11. Grand total, with all costs wrapped up 12. Complimentary closing VERIFICATION As the similar algorithm was applied to the previous assignment, the only new thing to verify is our file operations. As we have prompted for our file, opened our file, scanned for our variables, and closed the file, our algorithm should be similar.