Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Function to take input: This function takes input for height of the room and width of the two walls. You need to use reference parameters in this function and it will be a void function.
void input (int & feet_wall, int & inches_wall, int & lenght)
Function to calculate number of one-foot and 3-inches panels required for the room: As this function calculates more than one value, you need to implement this function using reference parameters.
void NumberOfPannels (int feet_wall, int inches_wall, int length, int & numberofOne_footPanel, int & numberof3-inchesPanel )
Function to calculate the total cost. This function also needs reference parameters, as the cost of two types of are required to be calculated separately, which are later required in other function.
void Cost (int numberofOne_footPanel, int numberof3-inchesPanel, int length, int & costOfOneFootPanel, int & costOf3-inchesPanel )
Function to print the Bill. This will be a void function which needs not to return any value. The function should print the bill in following format.
BILL: Height of wall: Width of wall: Feet: Inches: No of one-foot panels required: No of 3-inches panels requires: Length of panels: Cost of one-foot panels: Cost of 3-inches panels: Total Cost:
8 feet 12 feet 8 inches 12 panels 2 panels 8 feet 960 Rs. 80 Rs. 1040 Rs.
The main function should not contain any functionality. It should consist of series of function calls. Instructions: o Deadline to submit the assignment is 20th May till midnight. o No late submission will be accepted. o Email the assignment at cprog13@gmail.com. Do not email in any other id, it will not be considered then. File name must be your name and email subject must be Assignment_5 (Your name). [Guidelines must be followed strictly] o Plagiarism and copy will be dealt strictly.
======================= Best of Luck