We Offer Paper Writing Services on all Disciplines

Make an Order Now and we will be Glad to Help

Order Now



Ask a nursing expert to help you with your homework

We are ready to assist you anytime.

Order Now

PROGRAMMING ASSIGNMENT

PROGRAMMING ASSIGNMENT #4
Write a C program that allows the user to make some inventory transactions. The program should first prompt the user to enter how many items in the current inventory.
The program should then prompt the user to enter the number of inventory number of additions to make and the number of inventory withdrawals to make. For this assignment, let’s set a maximum of 20 additions and 20 withdrawals.
Using a loop, the program should then prompt the user to enter the amount of the first addition (a positive amount to add to the inventory balance), the amount of the second, the third, etc., until the number of the additions have been processed.
Using a second loop, the program should then prompt the user to enter the amount of the first withdrawal (a positive amount to subtract from the inventory balance, if possible), the amount of the second withdrawal, the third, etc. until the number of withdrawals have been processed. Once all additions and withdrawals have been made, the program should output the ending quantity of the item. I used widgets but you should change yours to a unique item.
The dialog with the user should look similar to the following, only with your special introductory statement(s) as you wish:

Welcome to the Acme Inventory System (or whatever you wish here)
Enter the current number of Widgets in the inventory: 12
Enter the number of additions(1-20): 3
Enter the number of withdrawals(1-20): 2
Enter the addition #1: 10
Enter the addition #2: 11
Enter the addition #3: -3
Error, your entry must be greater than 0, try again.
Enter the addition #3: 3
Enter the withdrawal #1: 25
Enter the withdrawal #2: 35
Error, your entry must be between 1 and 11, try again.
Enter the withdrawal #2: 3
The ending number of Widgets is 8.
Time to order Widgets!
*** Inventory Recap ***
Starting Number of Widgets: 12
Addition #1: 10
Addition #2: 11
Addition #3: 3
Withdrawal #1: 35
Withdrawal #2: 3
Ending Number of Widgets: 8

Read all the specifications carefully. I did not show all of the editing features you are required to do.
The line just before the recap is based on the following:
If the closing number is greater than or equal to 10, output:
“Time to order (name).”
If the closing number is between 11 and 100, output:
“(name) inventory is at an adequate level”
If the closing number is over 101, output:
“You are overstocked with (name). Do not order any more.”

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

Regarding error checking on all user input, the following check should be made while users are entering the withdrawals: If the withdrawal exceeds the number of items on hand, including the additions, the program should issue the following error message as shown above in the sample run.
Also, if the current number goes to zero, no more withdrawals should be made and an appropriate message should appear (that one’s up to you! Use some polite creativity!)
You are to keep track of all the additions and all the withdrawals so that you can print them out in “recap report” form. You do this by storing them in arrays. You will have one array to hold the additions entered by the user, and another array to hold the withdrawals.
A suggestion for variables besides the loop index variables and char c is:
int inv_adds[20], inv_wds[20], inv_begin_amt, inv_running_amt;
It is hard to see this, but I want you to align the values in the recap report.
NOTE: You must validate (trap-loop) the number if additions, withdrawals, and the values of these to be within the necessary boundaries

"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!":

Get started

How it works

Place an order

Select the paper type, page limit, discipline, and format, and then set the deadline. Specify your paper instructions and attach the additional materials.

Track the progress

Check the finished parts of the paper and ask for amendments if necessary. Use the online chat for quick communication with the writer

Receive a paper

Release the payment when you are fully satisfied with the work. Leave feedback to share your experience with our writer.

Why our online essay writing service?

All types of paper writing help

Whether you need an essay, research paper, or dissertation, We have you covered. Our writers can create any kind of academic writing. Also, we can rewrite and edit your papers.

24/7 support

If you have questions about our service or need additional details to make a request, our friendly customer support will get your issues resolved.

On time delivery

Punctuality is our second name. Your order will be delivered strictly within the deadline. If you have an urgent order, we can do it! Our writers will need at least three hours to complete it.

Let us cover any of your writing needs!

Academic Paper Writing Service

Our best writers will gladly help you with:

Coursework / Homework

  • Homework Assignment
  • Engineering Assignment
  • Statistics Assignment
  • Biology Assignment
  • Nursing Assignment
  • Chemistry Assignment

Paperwork

  • Essay
  • Term Paper
  • Research Paper
  • Thesis / Dissertation
  • Research Proposal
  • Editing and proofreading

Others

  • Multiple Choice Questions
  • Short Answer Questions
  • Word Problems
  • Programming Assignment
  • Article Writing
  • Mathematics Calculations