Sacha Sweets and Bakers is a popular baker. The store has multiple sections for Cakes, Cupcakes, Brownies, Savory Items, Chips and Nimco. Currently, the store maintains a manual register for recording the details of the bake items such as type, price, orderQty, sales, and so on. However, the owner of the store has decided to automate the tasks such as data entry, sales calculation, stock updation, and so on to save time and effort required in the tasks. You as a software developer have to accomplish the task as follows: You have to create structure for user in which you store user details. Structure has four members: name, city, CNICno and phoneNo. First you have to show menu to user with different categories including subcategories, for this write function for show menu. Every category have different items list in it. Example: Cakes: Chocolate Malt Cake 1900 Three Milk Cake 1500 Pineapple Cake 1000 Strawberry Cheese Cake 1700 Chocolate Lava Cake 2000 Cup Cakes: MnM cupcake 180 Strawberry cupcake 150 Cream Cheese cupcake 120 Dark Chocolate cupcake 170 Milk Chocolate cupcake 150 Write a function to add the item into cart: In this user have to choose maximum 10 item from any category then add quantity of item and add that item to cart. Note: For cart items you have to maintain array with 10 limit. Write some of following functions also: Remove Item. Modify Item. Display all items in cart. Cost of cart Print total. Print user details and items list with price using pointer.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Sacha Sweets and Bakers is a popular baker. The store has multiple sections for Cakes, Cupcakes, Brownies, Savory Items, Chips and Nimco. Currently, the store maintains a manual register for recording the details of the bake items such as type, price, orderQty, sales, and so on. However, the owner of the store has decided to automate the tasks such as data entry, sales calculation, stock updation, and so on to save time and effort required in the tasks.

You as a software developer have to accomplish the task as follows:

You have to create structure for user in which you store user details. Structure has four members: name, city, CNICno and phoneNo.

First you have to show menu to user with different categories including subcategories, for this write function for show menu. Every category have different items list in it. Example:

Cakes:

  • Chocolate Malt Cake 1900
  • Three Milk Cake 1500
  • Pineapple Cake 1000
  • Strawberry Cheese Cake 1700
  • Chocolate Lava Cake 2000

Cup Cakes:

  • MnM cupcake 180
  • Strawberry cupcake 150
  • Cream Cheese cupcake 120
  • Dark Chocolate cupcake 170
  • Milk Chocolate cupcake 150

Write a function to add the item into cart: In this user have to choose maximum 10 item from any category then add quantity of item and add that item to cart.

Note: For cart items you have to maintain array with 10 limit.

Write some of following functions also:

  • Remove Item.
  • Modify Item.
  • Display all items in cart.
  • Cost of cart
  • Print total.
  • Print user details and items list with price using pointer.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education