SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 5 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 01 Nov 2017 My Price 10.00

int main(void) { GroceryInventorySystem(); return 0; }

int main(void) {   GroceryInventorySystem();   return 0; }

Then modify GroceryInventorySystem function as follows:

In your void GroceryInventorySystem (void) function, done in Milestone 1, do the following: - Create  array of Items. Use MAX_ITEM_NO for its size.  - Create integer variable to Hold the number of records read. - After the welcome() message use the loadItems() function to fill the Items array you created with the Item records kept in a the data file. The name of the data file is defined in DATAFILE. - If the loadItems fails, print the following message and exit the program: "Could not read from %s.n", replace %s with defined value in DATAFILE. - If loadItems is successful, run the menu section and action selection: o If 1 is selected: Call the listItems function passing the item array and the number of records. o If 2 is selected: Call the search function passing the item array and the number of records. o If 3 is selected: Call the adjustQuantity function passing the item array, the number of records and CHECKOUT. Then, call the saveItems function passing the item array, DATAFILE, and the number of records to apply the changes to the DATAFILE. If saveItems fails, print the following message: "could not update data file %sn" replacing %s with DATAFILE. o If 4 is selected: Do exactly what you have done in option 3 but pass STOCK to adjustQuantity instead of CHECKOUT. o If 5 is selected: Call the addOrUpdateItem function passing the item array and the address of the number of records. Then call the saveItems function passing the item array, DATAFILE, and the number of records to apply the changes to the DATAFILE. If saveItems fails, print the following message: "could not update data file %sn" replacing %s with DATAFILE.

29

 Note: as you see the save procedures in options 3,4 and 5 are identical. You could create  function and call it to prevent redundancy. o If 6 or 7 is selected: Print: "Not implemented!n" and pause(); o Option 0 remains the same.

 

i already completed my C language code and i have to change little bit but i don't have time plz help me.

it is sooooo simple.

Answers

(5)
Status NEW Posted 01 Nov 2017 10:11 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)