Question: for C programming 6 Specifications 1. The program will read an integer value representing a request. The possible request values are: a. 0: Quit the
6 Specifications 1. The program will read an integer value representing a request. The possible request values are: a. 0: Quit the program b. 1: Draw a rectangle given a character, width, and length. c. 2: Draw a triangle given a character and size. d. 3: Other figure. e. Any other value is considered invalid and the message "Invalid choice." will be printed. 2. The program will keep reading requests until 0 is provided. 3. The program will generate the message "Invalid data provided." if: a. O or a negative value is provided for width, length, or size b. The only valid characters are *, %, and #. 4. The program will print the message "Bye Bye." before finishing. 5. Reading characters in C can be tricky as the newline character (enter) is considered a character. Use a space in the scanf format string to indicate that spaces must be skipped
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
