USING C! DATA STRUCTURE! Starbok cafe is a cafe that sells delicious drinks. The drinks they sell and the drink are : Bo

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

USING C! DATA STRUCTURE! Starbok cafe is a cafe that sells delicious drinks. The drinks they sell and the drink are : Bo

Post by answerhappygod »

USING C! DATA STRUCTURE!
Starbok cafe is a cafe that sells delicious drinks.The drinks they sell and the drink are : Boba Coffee (BC),Moccapucino (MC), Pandan Coffee (PC), Boba Thai (BT), Choco Pandan(CP) and Cheese Choco (CC). Starbok cafe has a program toinput order and view sales:A. First Line, User will input T ordersB. For the next T lines, in each line, User will input thefollowing format: N [Drink Code]N is the order quantityC. Output will display 2 Top Sales with the following outputformat:1. [Drink Names] [Sales Amount]2. [Drink Names] [Sales Amount]Try implementing Heap into the Café Jolly Soul program using C
CONST1≤T≤1001≤N≤100Drink Codes: Boba Coffee (BC), Moccapucino (MC), Pandan Coffee(PC), Boba Thai (BT), Choco Pandan (CP) and Cheese Choco (CC)
Using C Data Structure Starbok Cafe Is A Cafe That Sells Delicious Drinks The Drinks They Sell And The Drink Are Bo 1
Using C Data Structure Starbok Cafe Is A Cafe That Sells Delicious Drinks The Drinks They Sell And The Drink Are Bo 1 (18.76 KiB) Viewed 9 times
Sample 1: 5 10 BC 5 MC 3 CC 2 BC 21 BT Top Sales: 1. Boba Thai 21 2. Boba Coffee 12
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply