Ok, I hope this is not too complicated.
In C# using visual studio 2008.
Using Methods, Write a program that simulates calculation of building cost. This program will ask the user for a number of inputs that you will have to determine based on the problem statement. Your program will then calculate the cost of a building based on these inputs.
A company would like you to design a program that will generate a building cost that is based on the square feet of the building times the number of floors. The square foot building cost is 100/sqft.
Also computed into the cost is the number of windows requested and the number of doors. When a user enters the number of windows or doors you must also determine the type of window or door that they want to get the cost.
- Flat- 100/door
- 3 panel- 150/door
- 5 panel - 200/door
- Aluminum -200/window
- Wood - 250/window
- Vinyl - 350/window
You will define a menu method that will allow the user to choose what cost they want to add, and if they want to continue.
You will define a window cost method that will take as an argument the number of windows they want, inside the method you will identify what type of window they want and then calculate the cost.
This method will return the total cost of all windows.
You will define a door cost method that will take in the number of doors that they want. Inside the method you will determine the type of door and the total cost of all doors. This method will return the total cost of all doors.
You will define a method that calculates the square footage price of the building. This method will take in length and width and the number of floors. (square foot is defined as length * width)
This method will return the total cost of the buildings square foot price.
The last method is the total cost method. This method will take the window, door and square foot cost as parameters it will return the total cost of the building.
Also include a flow chart and pseudo code and make sure your code includes comments.
I have two hours to do this so the quick the better. And a bigger bonus.
Here is the table format
You must have a test data table that will show your test data.
Total cost of building
25 100 1 5 2 8 3 $253,550.00