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. - O X 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.....

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question

please I need help on this...Im using C#, please include screenshots of the code and the output, thank you

 

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
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Block Comments
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,