Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Language is C# URGENT Task We will be creating a program which will keep track of a chain of bakeries, each bakery sells the exact
Language is C#
URGENT
Task We will be creating a program which will keep track of a chain of bakeries, each bakery sells the exact same three baked goods. For the first phase you will write the Class which will be used to represent a bakery. Each bakery Object must be able to store the bakery address and quantity of sales for the three baked goods which the bakeries sell. Think of unique bakery items which your bakery chain will be selling. Requirements Comment with your name and purpose of the Class. Non-static members representing the address and quantity of the three baked goods. A static class member representing the name of the bakery chain. The constructor for this class will initialize all non-static class members using values passed into it. . Purpose of the Program This program will keep track of a chain of bakeries and how many units of each baked good has been sold by each store. You must complete phase #1 before starting this final phase. Step #1 Assign the static Class Member which represents the name of bakery chain a value. Have your own name included in the Bakery chain name. You may use a literal value here or get user input. Step #2 Write a program that will contain at least two Bakery objects using the Bakery Class from Phase #1. Use literal values to initialize the non-static class members (You should have 3 different non- static Class Members for representing the quantity of baked goods sold and one representing the address). Use your student Id in the address of the first Object. Step #3 The number of units sold for one of the baked goods at one of the stores has changed. Prompt the user to enter a new value and change the quantity of that baked good at that particular store. Step #4 Modify the Bakery Class created in Phase #1 so that the address member will now have private visibility. Create a Getter and Setter to be able to access this member from outside of the class. Step #5 Modify the Bakery Class created in Phase #1 so that each Object will now have a function called GetTotalSold. The function will have no values passed into it and will return the sum of all baked goods sold by that store. The program then will then display information about all bakery stores and their quantity sold to the console. Output should match what is displayed below: Bakery Chain Name Bakery One Address - Bagels - 500 Cinnamon Buns - 25 French Toast - 65 Bakery Two Address - Bagels - 300 Cinnamon Buns - 25 French Toast -65 Step #7 Determine which store has sold the most baked goods and display this to the ConsoleStep 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