Design an items/tickets/customer receiving system by implementing a combination of arrays and structures in a C...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Design an items/tickets/customer receiving system by implementing a combination of arrays and structures in a C program. Database system or data languages such as SQL is not required. Given that structure of data is from a flower shop. The program should repetitively prompt the user for following options (use switch case to test for equality): 1. Enter the items/tickets/customers to be added into the structure. 2. Display the items for the customer, showing the price of each item, or the price paid by each customer. 3. Sell items/tickets to customers 4. Display the stock or tickets with price and cost 5. Display total sales of items/tickets 6. Exit to stop the program execution Design an items/tickets/customer receiving system by implementing a combination of arrays and structures in a C program. Database system or data languages such as SQL is not required. Given that structure of data is from a flower shop. The program should repetitively prompt the user for following options (use switch case to test for equality): 1. Enter the items/tickets/customers to be added into the structure. 2. Display the items for the customer, showing the price of each item, or the price paid by each customer. 3. Sell items/tickets to customers 4. Display the stock or tickets with price and cost 5. Display total sales of items/tickets 6. Exit to stop the program execution
Expert Answer:
Answer rating: 100% (QA)
include include include define MAX 5 int top1 int stackMAX struct Item int Itemno cha... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1337627900
13th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
1. Suppose India follows China and accelerates its industrialization. For India, this will: A. Decrease imports and raise net exports B. Increase imports and lower net exports C. Increase imports and...
-
How do antibodies help defend the body?
-
The Regal Cycle Company manufactures three types of bicyclesa dirt bike, a mountain bike, and a racing bike. Data on sales and expenses for the past quarter follow: Management is concerned about the...
-
Edward Entrepreneur has an idea for a new business venture. He has designed an electronic gizmo, the Wonder Cleaner, to assist with routine household chores. Edward wants to set up a corporation to...
-
This problem continues the Daniels Consulting situation from Problem P20-43 of Chapter 20. Assume Daniels Consulting began January with $12,000 cash. Management forecasts that cash receipts from...
-
17. A concave mirror produces a real image 10mm tall, of an object 2.5mm tall placed at 5cm from the mirror. Calculate focal length of the mirror and the position of the image. 18. An object is...
-
The flowchart below shows the August production activity of the punching and bending departments of Wire Box Company. Use the amounts shown on the flowchart to compute the missing numbers identified...
-
Ashley owned rental property that was deemed substandard by the City of Sacramento. She incurred $50,000 of depreciation expense related to that substandard rental property. How much of the $50,000...
-
Consider a small convenience store that is open 24 h a day, 7 days a week. The store is staffed by one checkout clerk. The convenience store has space for only three customers including the one who...
-
Can active objects have a state in which they are not performing any task? Give an example.
-
If you find a $20 bill on the sidewalk, is this taxable income?
-
Which of these teams is temporary in nature? Task force Committees Both of the above None of the above
-
Are there any practices or policies that the organization could implement to allow for greater worklife balance?
-
How do you see the world 50 years from now in education?
-
on 8 For the following set of lengths 130, 170, 160, 160, 150, 190 Third quartile is: et red d out of Select one: O a. 160 a question O b. 145 O c. 175 O d. 180
-
Based on the following query: SELECT P_CODE, P_DESCRIPT, P_PRICE, PRODUCT.V_CODE, V_STATE FROM PRODUCT P, VENDOR V WHERE P.V_CODE = V.V_CODE AND V_STATE = NY AND V_AREACODE = 212; ORDER BY P_PRICE;...
-
Explain what it means for a database to be aggregate aware.
-
Create the relational diagram. Use the database shown in Figure P3.24 to answer this Problem. ROBCOR is an aircraft charter company that supplies on-demand charter flight services using a fleet of...
-
If you let go of a helium balloon, it quickly rises. As it rises, the balloon gets larger and larger until it pops. Why does the balloon expand as it rises?
-
Elephant seals do deep dives to forage for food. The energy used by the seals in diving depends on their body composition; for example, fatter seals use less energy to swim to the surface at the end...
-
A higher level of hemoglobin in the blood increases the bloods density. This is the basis for a simple test that can be used to see if a prospective blood donor has a high enough hemoglobin level to...
Study smarter with the SolutionInn App