i need to write a program that takes info from a txt file and prints out the info in a chart form with the roomname, numadults, numchild, roomtype, roomcost, mealcost, discount, amount. And then it displays the totals of each at the bottom. i have no idea where to start. any help will be accounted for.
but this program is not supposed to use functions. it is just supposed to use for and while loops. basically the txt file has H
and this is in the form of room name, # adults, # kids, and if it is a standard room or deluxe. the program is supposed to take the info from that and put it in a table. the room cost is a constant from the type of room chosen. and then the program calculates the cost for the meal, the discount (less than $500 - 1%, atleast $500 but less than $1000 - 2%, at least $1000 but less than $1500- 4% and $1500 or more - 5%) then fine the total amount, then below the table it calculates the total adults, child, room costs, meal costs, discount total and total amount.