Question: 10 Need Help in Java in english I am useing Java SDK and Eclipse IDE for Java Part II: Coding Question: Open-book and open-notes, but

10

Need Help in Java in english I am useing Java SDK and Eclipse IDE for Java

10 Need Help in Java in english I am useing Java SDK

and Eclipse IDE for Java Part II: Coding Question: Open-book and open-notes,

Part II: Coding Question: Open-book and open-notes, but no mobile devices and no computers (25 points). Develop a Java program to achieve the following steps (assume valid user input): This question will be graded manually by your instructor. Ask users to enter the name of type String), quantity (of type int), and price (of type double) information of two products in a store inventory. (6 points) Output the name in all uppercase letters and quantity in whole number for each product. (6 points) Output the price and value as currency with two digits after the decimal point for each product. (6 points) Output the total quantity, average price, and total value of all products in the inventory using the right format. (7 points) Note: a) The value of each product is its price multiplied by quantity. b) The average price of all product is the total value divided by the total quantity. c) You may use either print or the NumberFormat class to format currency. A sample execution is shown below (user input is in Boldy. Please enter the first product name, quantity, and price (separated by a whitespace): apple 30 5.99 Please enter the second product name, quantity, and price (separated by a whitespace): pizza 100 9.8 Inventory Report Product Quantity Price Value APPLE 30 $5.99$179170 PIZZA 100 991805980.00 ****Inventory Report**** Product Quantity Price Value APPLE 30 $5.99 $179.70 PIZZA 100 $9.80 $980.00 **** Inventory Summary**** Total Quantity: 130 Total Value: $1.159.70 Average Price: $8.92 import java.text. Nurnber Format: import java.util.Scanner: public class derpoinventory public static void main(Strinsl] args) { Wadd your code below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Program Solution for Inventory Management Below is a complete Java program fulfilling all the requirements Java Code java import javatextNumberFormat import javautilLocale import javautilScanner ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!