1.1 The decorator needs to enter the height of the room (between 2 and 6 metres), then the length of all four walls (minimum 1 metre; maximum 25 metres).
1.2 The program should then calculate the total area of the room.
1.3 The program should allow a choice of three paints:
Luxury quality which cost £1.75 per square metre
Standard quality which costs £1.00 per square metre.
Economy quality which costs £0.45 per square meter.
1.4 The decorator should also be able to choose to use undercoat paint if required, which costs an additional £0.50 per square metre.
1.5 The program should display the area of the room and the chosen choice of paint and whether undercoat was chosen or not.
1.6 The program should display an itemised bill with a total with and without VAT included.
1.7 The program should allow the user the choice to exit or re-enter new room height and length and calculate new cost estimate.
1.8 The program should include on-screen help for the user.
1.9 The program should include a main menu (switchboard) with the following options (Note: It is advised to use procedures for each menu option) :
Estimate Paint Cost
View Estimate Total
Help and FAQ
Dim rHeight, wall1, wall2, wall3, wall4 As Integer Dim areaofroom As Integer Console.Write("Please enter the height of the room between 2 and 6 metres:") rHeight = Console.ReadLine Console.WriteLine("please enter the length of the first wall of the room") wall1 = Console.ReadLine Console.WriteLine("please enter the length of the second wall of the room") wall2 = Console.ReadLine Console.WriteLine("please enter the length of the third wall of the room") wall3 = Console.ReadLine Console.WriteLine("please enter the length of the fourth wall of the room") wall4 = Console.ReadLine Console.ReadLine() areaofroom = (wall1 + wall2 + wall3 + wall4) * rHeight
This is my coding so far. There is a problem with my coding regarding the calculation part as when the console is run it does not calculate it.
This post has been edited by modi123_1: 19 January 2014 - 09:02 AM
Reason for edit:: please use code tags