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

  Sra in 2006 a small business was created in the financial

in 2006 a small business was created in the financial sector. the main purpose of the business was to provide customers

  The first part of the project is a survey

The first part of the project is a survey (with your own words and your own way of organizing topics) of one area you want to explore in Machine Learning

  Identify the functional dependencies between the attributes

Present the attributes organized into 3NF relations that have been named appropriately.

  Calculate and display height and cost of container

Compute and display the height and cost of the container. Use the following formulas, where V is the volume, r is the radius, h is the height, and C is the cost.

  The billboard class must include methods to manipulate text

The Billboard class must include methods to manipulate the text (get, set, reverse, replace substring) as well as the capability to check the text (eg. test if the text is empty). The Billboard includes a list of predefined messages that can be set..

  Rsa protocol to encrypt and decrypt messages

In this problem you are enquired to hand-turn RSA protocol to encrypt and decrypt messages by using rather smaller numbers than are used in practice, so that calculations can be done by hand.

  User interface design

You are the lead human-computer interaction (HCI) engineer on a major design project for an organization of your choice. Employees or customers will use this new system and user interface (UI) design to perform data entry for the organization.

  What is the probability that he is actually guilty

And how can you explain this puzzling result? (First of all, you may need to explain why it is puzzling. Then explain why it really makes sense even though it seems to be puzzling.)

  Why is ciso participation in business continuity planning

Title: Why is CISO participation in business continuity planning important? Business Continuity Planning (BCP) is a critical business process which requires the participation of managers from all parts of the enterprise.

  8-bit registers are there in the intel 80x86 cpu design

In total, how many 8-bit registers are there in the Intel 80x86 CPU design presented in class? Name one of these 8-bit registers.

  Howorth dental products is a london-based producer

Howorth Dental Products is a London-based producer of a patented anti-microbial dental floss. All raw material is introduced at the beginning of the production process, but considerable processing time is needed to create the anti-microbial qualities..

  Jewelers is a small jewelry company in a college town

Especially for You Jewelers is a small jewelry company in a college town. Over the last couple of years, it has experienced a tremendous increase in its business. However, its financial performance has not kept pace with its growth. The current syste..

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