Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using dev c++ but complied into .c files RR Bakery just started the business with three types of bread: Cinnamon rolls, Sausage bread and Butter

image text in transcribedUsing dev c++ but complied into .c files
RR Bakery just started the business with three types of bread: Cinnamon rolls, Sausage bread and Butter bread. The bakery needs to display total price and total purchase for each type of bread by each customer. Based on the output given, draw a flowchart and write a C progranm with the following requirements: Ask the user to enter the type of bread to buy from the three choices: Cor S or B If the choice is invalid, your program should display "Invalid choice" and ask the user to . enter the choice again. Then the user needs to enter quantity of bread to buy based on the chosen type. Assign the correct price and name for the chosen bread, calculate and display the total price. The program will stop when user decides to stop buying. The user must enter X or to stop the program At the end, display the total purchases. However, if the user does not buy anything, displayed only "Thank you. Have a nice day

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions