Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is C# Part 1 Part 2 undefined We will be creating a program which will keep track of a chain of bakeries, each bakery

Language is C#

Part 1

image text in transcribed

Part 2

image text in transcribedimage text in transcribedundefined

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. 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 Console. 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. 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 Console

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

ISBN: 0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

How many three-digit numbers are divisible by 7?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago