1. Create a console program that will perform the following: Ask the user to enter the pieces of apple. • Ask the user to enter the total price of the apple(s). Print the total price of the entered pieces of apple(s). Convert the entered price into a whole number, then display the values of the origina price and the converted price. 2. Name the project as DataTypesApp and the class as DataTypesProgram. 3. Example output: O file//C/Users Enter the pieces of apple: 6 Enter total price of 6 apple(s): 105.50 The total price of 6 apple(s) is 105.5 The value of original price is 105.5 The value of converted price is 105 Press any key to exit..... /Documents/Visual Studio 2015/Projects/ConsoleApp/ConsoleApp/b.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

I need help please with a screenshot of the code and the output, thank you very much

Instructions:
1. Create a console program that will perform the following:
Ask the user to enter the pieces of apple.
Ask the user to enter the total price of the apple(s).
• Print the total price of the entered pieces of apple(s).
Convert the entered price into a whole number, then display the values of the original
price and the converted price.
2. Name the project as DataTypesApp and the class as DataTypesProgram.
3. Example output:
O file:///C:/Users
/Documents/Visual Studio 2015/Projects/ConsoleApp/ConsoleApp/b.
Enter the pieces of apple: 6
Enter total price of 6 apple(s): 105.50
The total price of 6 apple(s) is 105.5
The value of original price is 105.5
The value of converted price is 105
Press any key to exit.....
Transcribed Image Text:Instructions: 1. Create a console program that will perform the following: Ask the user to enter the pieces of apple. Ask the user to enter the total price of the apple(s). • Print the total price of the entered pieces of apple(s). Convert the entered price into a whole number, then display the values of the original price and the converted price. 2. Name the project as DataTypesApp and the class as DataTypesProgram. 3. Example output: O file:///C:/Users /Documents/Visual Studio 2015/Projects/ConsoleApp/ConsoleApp/b. Enter the pieces of apple: 6 Enter total price of 6 apple(s): 105.50 The total price of 6 apple(s) is 105.5 The value of original price is 105.5 The value of converted price is 105 Press any key to exit.....
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage