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.
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.
Chapter5: Making Decisions
Section: Chapter Questions
Problem 7PE
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.....](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb852541d-a2ae-4c27-a4a4-ad46e5767b6d%2F69dc084b-f38c-4dcc-bac7-3c28850ec74f%2F6re8lxa_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage