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

  Students and faculty to stay connected as they roam

Imagine that your university uses 802.11b wireless access points and wireless network cards to allow students and faculty to stay connected as they roam the campus.

  The solution is some real number

Let P be a problem. For any instance x ∈ P, the solution is some real number f(x). Let A be a randomized algorithm for P, such that it gives a solution A(x) that lies in [1/2f(x), 2f(x)] with probability 2/3.

  What is the difference between println and printf

What is the difference between println and printf? Show an example of the usage of each.

  Explain what side effect is the expression contains

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Description of what the computer considers

For your initial post, provide your own description of what the computer considers "TRUE" and what the computer considers "FALSE." Then, provide at least two code examples (original examples) that would return TRUE, and provide a description of what ..

  Utilize the lirn library

Write a 2 page research paper (excluding the title page) on logical, circular, and arithmetic shift operations. Use an example not discussed in the textbook to explain these shift operations.

  Functions as a minimum two-level nand

Realize each of the following functions as a minimum two-level NAND-gate circuit and as a minimum two-level NOR-gate circuit. (a) F(A,B,C,D) = BD′ + B′CD + A′BC + A′BC′D + B′D′ (b) f(a,b,c,d)=ΠM(0,1,7,9,10,13)·ΠD(2,6,14,15)

  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..

  Calculate the sum of all the elements of firstarray

Calculate the sum of all the elements of FirstArray and put the sum in EAX. Use indirect addressing to access the elements of array.

  Explaining the available bandwidth as function of n

Assuming average packet size is 5 slot times, expreess the available bandwidth as a function of N?

  Characteristics of an executive information system

What are some distinguishing characteristics of an executive information system. Why have these systems become a part of business intelligence in many companies.

  An iterative algorithm to traverse an arbitrary number

An iterative algorithm to traverse an arbitrary number of nested subdirectories in a file system.

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