Supposing you are operating a warehouse that receives and issues out items daily, and at the end of each day, you take stock of the transactions. Answer the following based on your knowledge in Java Programming. a) Provide a suitable name for your warehouse. b) Suggest the type of item you are dealing with and the cost of each item (e.g. bags of cement at 50 cedis per bag). c) WriteaJavaprogrammenamedtransactions.javathattakesinputfromyouinthe form of: positive integers representing the number of items brought in each time, and negative integers representing the number of items issued out each time. The programme will then calculate and print out the total number of items received and issued out, as well as their corresponding total costs. Your programme ends when the input is zero (0). Here is a sample run: Type in a positive integer representing the number of items received each time, and a negative integer representing the number of items issued each time and press enter. Enter zero to end the programme: //userentersfore.g. 2 5 -7 -2 9 -8 0 //display The total number of items issued out is 17 //i.e. the negatives The total cost of the items issued out is 850.00 cedis. //(i.e. 17 x 50) The total number of items received is 16 The total cost of the items received is 800 cedis. //(i.e. 16 x 50) You score extra marks if you can print out the total number of items issued out as a positive number
Supposing you are operating a warehouse that receives and issues out items daily, and at the end of each day, you take stock of the transactions. Answer the following based on your knowledge in Java Programming.
a) Provide a suitable name for your warehouse.
b) Suggest the type of item you are dealing with and the cost of each item (e.g. bags of cement at 50 cedis per bag).
c) WriteaJavaprogrammenamedtransactions.javathattakesinputfromyouinthe form of: positive integers representing the number of items brought in each time, and negative integers representing the number of items issued out each time. The programme will then calculate and print out the total number of items received and issued out, as well as their corresponding total costs. Your programme ends when the input is zero (0).
Here is a sample run:
Type in a positive integer representing the number of items received each time, and a negative integer representing the number of items issued each time and press enter. Enter zero to end the programme:
//userentersfore.g. 2 5 -7 -2 9 -8 0
//display
The total number of items issued out is 17 //i.e. the negatives
The total cost of the items issued out is 850.00 cedis. //(i.e. 17 x 50) The total number of items received is 16
The total cost of the items received is 800 cedis. //(i.e. 16 x 50)
You score extra marks if you can print out the total number of items issued out as a positive number
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)