Question
Please code in basic C! (NOT C++) Program A flower by any other name would smell as sweet! Were going to build a program for
Please code in basic C! (NOT C++)
Program
A flower by any other name would smell as sweet!
Were going to build a program for managing flower orders.
The program should behave as follows: Well be getting the customers number of flowers and well also be getting the price for each flower. Then well get the color of the flower, which should be one of the following characters: R, O, Y, G, B, I, or V (the colors of the rainbow). Well do that for all three flowers.
The program should then display the flower orders back to the user, including the total price for their flowers! It should display each of the items in a table that the program creates. Please refer to the provided screenshots for an example of the tables format. Use the formatting techniques learned for conversion specifiers and formatted IO. Your programs table should be exactly the same as the table in the provided program.
Input Requirements
The user should enter all three values on one line, separated by spaces. The user should then be prompted for the remaining three reservations. For example (the highlighted part is what the program displays and the italicized part is the user input): Roses (#flowers price color): 3 .99 Y
Example Program Execution:
This is just one example of how the program should run. Your program should be able to handle any input that is entered in the correct format.
Hints:
The vertical line is called a pipe. It's on your keyboard, if you use the Shift + \ key (above the Enter key).
The double lines are equals (=) and the single lines are dashes (-).
Make sure you try out different test cases!
Play close attention to using scanf with variables, especially blank spaces and endlines.
Make sure you control the formatting of any floating-point output.
THANK YOU IN ADVANCE!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started