Sort the data by name

Assignment Help Basic Computer Science
Reference no: EM13890911

In C language, Menu allow the user to:

1. sort the data by name (using qsort function),

2. sort the data by calories (using qsort function),

3. add information for a pizza,

4. modify pizza information,

5. delete information for a pizza,

6. save pizza information to new file

7. Exit.

- Create functions for each of the menu options.

- Use functions, arrays, pointers, strings, structures, and files in your program.

Original data file:       

Stuffed|5-Meat|Red|Canadian Bacon, Pepperoni, Sausage, Bacon, Ground Beef|460|490

Gourmet|Angus Steak & Roasted Garlic|Creamy Garlic|Angus Steak, Roasted Garlic, Mushrooms, Green Onions, Parmesan|330|370

Stuffed|Chicago-Style|Red|Salami, Pepperoni, Sausage, Ground Beef, Mixed Onions, Tomatoes, Green Onions|450|490

Stuffed|Chicken Bacon|Creamy Garlic|Chicken, Bacon, Tomatoes, Mixed Onions|450|480

Gourmet|Chicken Bacon Artichoke|Creamy Garlic|Chicken, Bacon, Artichoke Hearts, Spinach, Parmesan, Zesty Herbs|350|400

Signature|Chicken Garlic|Creamy Garlic|Chicken, Tomatoes, Green Onions, Herbs & Cheese|340|380

Signature|Cowboy|Red|Pepperoni, Sausage, Mushrooms, Black Olives, Herbs & Cheese|370|410

Signature|Garden Veggie|Red|Mushrooms, Black Olives, Mixed Onions, Green Peppers, Tomatoes|270|310

Gourmet|Gourmet Vegetarian|Creamy Garlic|Spinach, Zucchini, Mushrooms, Artichoke Hearts, Tomatoes, Mixed Onions, Herbs & Cheese|320|360

Gourmet|Herb Chicken Mediterranean|Olive Oil & Garlic|Herb Chicken, Spinach, Sun-dried Tomatoes, Feta, Zesty Herbs|330|380

Signature|Murphy's Combo|Red|Salami, Pepperoni, Sausage, Mushrooms, Mixed Onions, Black Olives|350|400

Signature|Papa's All Meat|Red|Canadian Bacon, Salami, Pepperoni, Sausage, Ground Beef|350|400

Signature|Papa's Favorite|Red|Pepperoni, Sausage, Ground Beef, Mushrooms, Mixed Onions, Green Peppers, Black Olives|350|400

Gourmet|Spicy Fennel Sausage|Creamy Garlic|Spicy Fennel Sausage, Sun-dried Tomatoes, Mushrooms, Spinach, Parmesan|350|410

- allow user to choose from 1-7, then if its 1- sort the data file that I have attached by name , 2 -sort data file by calories( all the data of file) and from 3-6, user will add an pizza name(a whole line), delete one from one line from data, modify means change a pizza info from original data file. After all of that, user will save those all changes to new file. and 7 is exit. Also, ask at the end that do you want to continue (Y/N)? Y- show all options again. N- stop. Please help me with this project.

Reference no: EM13890911

Questions Cloud

What kinds of issues might arise when you are engaged : What kinds of issues might arise when you are engaged in systemic assessment and diagnosis? How would you describe the process by which a counselor arrives at a diagnosis? What is the range of influences that must be considered?
Discussing two of the additional dba responsibilities : Write a 500-1000 word paper using Word discussing two of the additional DBA responsibilities. Use at least two sources outside your text for this paper. Do not use Wikipedia. Use APA format for the paper, and be sure to cite all your sources using AP..
Explain the effect of this omission on net income reported : Explain the effect of this omission on net income reported for October. Explain the effect of this omission on net income reported for November.
Prepare the adjusting journal entry to correctly report : a. On July 1, 2013, Lamis Company paid $1,200 for six months of insurance coverage.
Sort the data by name : In C language, Menu allow the user to: 1. sort the data by name (using qsort function), 2. sort the data by calories (using qsort function), 3. add information for a pizza, 4. modify pizza information
Explain diagnosis from a systemic perspective on the family : Explain this diagnosis from a systemic perspective on the family. Include the following:How might this problem in living have developed and How is each member of the family involved in this problem in day-to-day living?
Calculate the net cubic yards of excavated material : Given the tabulated cut/fill data below, calculate the net cubic yards of excavated material. Neglect soil type, water content, shrinking & sweeling
A first order analog low pass butterworth filter : Need some help with this question, do not understand how to do it. A first order analog low pass Butterworth filter has a -3dB frequency of 2.5kHz and a DC gain of unity. a. Use a bilinear transformation to find a digital filter H(z) to match the an..
Calculate the retained earnings balance at february : Calculate retained earnings On February 1, 2013, the balance of the retained earnings account of Blue Power Corporation. Calculate the retained earnings balance at February 28, 2013.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd