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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 11E
icon
Related questions
Question
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 3 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT