Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 belowStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started