Prog1 Ask the user for the name of the file to get input from. The data is stored in this form: double double double int The three doubles represent the sides of a triangle. The fourth number is an integer scale factor. Output should be to the screen in this form: The original triangle sides were: 2.870 11.900 10.750 With a scale factor of 2, the new triangle sides are: 5.740 23.800 21.500

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Hi, I need to solve this problem with C++ programming language using Visual Studio. Thank you.

Prog1
Ask the user for the name of the file to get input from. The data is stored in this form:
double
double
double
int
The three doubles represent the sides of a triangle. The fourth number is an integer scale factor. Output
should be to the screen in this form:
The original triangle sides were:
2.870
11.900
10.750
With a scale factor of 2, the new triangle sides are:
5.740
23.800
21.500
Transcribed Image Text:Prog1 Ask the user for the name of the file to get input from. The data is stored in this form: double double double int The three doubles represent the sides of a triangle. The fourth number is an integer scale factor. Output should be to the screen in this form: The original triangle sides were: 2.870 11.900 10.750 With a scale factor of 2, the new triangle sides are: 5.740 23.800 21.500
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
Introduction to computer system
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning