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: /Documents/Visual Studio 2015/Projects/ConsoleApp/ConsoleApp/b. - O X 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.....

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

c# language

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: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 2 steps

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 with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage