- 1
How to make house using C# with windows and door with ==,- and + symbol
int getValidData(int low, int high, char type); This function continuously asks the user to enter a whole number value from low to high inclusive and once a correct value is supplied, returns that value. If the parameter 'type' is 'w', then this function asks the user to enter information for the number of windows on each floor. If the parameter 'type' is 'f', then this function asks the user to enter information for the number of floors. In order to display the floors, you will need to complete the follwng
2 Respuestas
0
int getValidData(int low, int high, char type); This function continuously asks the user to enter a whole number value from low to high inclusive and once a correct value is supplied, returns that value. If the parameter 'type' is 'w', then this function asks the user to enter information for the number of windows on each floor. If the parameter 'type' is 'f', then this function asks the user to enter information for the number of floors. In order to display the floors, you will need to complete the following functions: void drawUpperFloors(int numOfWindows); Given the number of windows, this function draws any main floor of the building. The number of windows drawn is determined by the value of the parameter 'numOfWindows'. Please take note of the following details: a). Each window is exactly 3 characters wide and 3 rows high. b). The first window (on the left) is exactly 2 columns away from the left | border of the building's wall. c). The top AND bottom of the window is drawn using the = character. d). The side of each window is drawn using the | character. e). The top of the building is drawn using the - character and the top of the window is drawn starting on the 3rd row. f). The left and right sides of the building are drawn using the | character and the right side of the building is 2 columns away from the rightmost window. g). Each window is separated from other windows using a single space (column). h). The bottom of the floor is left blank with one extra row below the bottom of the windows. i). The upper right and left corners of the floors are drawn using + character.
0
construction of house in c++