Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the name of a person and his/her height in feet and inches, where the name can contain spaces Your program should allow unlimited number of

image text in transcribed
the name of a person and his/her height in feet and inches, where the name can contain spaces Your program should allow unlimited number of inputs and should finish the input cycle when the user types ex when prompted for the name your program should store each user input data inte a file for later processing, where the name, feet, and inches are each on a separateline. Once the user types your program should read in the file and print out a report listing the name feet, inches, centimeters, and meters of each person, where the centimeters and meters are calculated based on the user input your program should use the prompt and output formats exactly as provided in the samples output below Note: Using the pwd command at the terminal command prompt will display the path of the current directory Note:Opening a write file with no modes specified will clear its contents Note:Opening a write file in append made will allow previous data to be retained Comple the file using the command below. The adoption tells the compiler that it will use C++ version 17 standards and the main option tells the compiler to place the executable code into a file called i clang-17. - Run the program using the command below and repeat the steps above until you are satisfied your program output meets the above requirements. I strongly suggest that you run your program using each of the sample outputs below and ensure that all blank lines and new lines are exactly as below. Note that there are 2 blank lines between amount inserted and the dispensed or error output Typical input and output: TUFFY TITANIOT CALCULATOR - Enter first name type xx wes rinsed Turty Titan Enter feet Enter Inches: 6 Enter feet Enter chest 11 Enter test one type when finished Donald Duck Enter feet Enter inches Enter first came type w when finished itse Enter fetis Enter Inches: 7 Enter first te wax when finished Art Enter fetis Enter inchest Inter first name type was when finished: Lite Enter feet Enter Inchests Enter first name type ex when finished Name Feet Inches Centimeters Meters Tully Titan > 6 228.6 2.200 hutz Lightyear 11 27.9 0.229 Donald Duck ES 29 91.4 0.614 7 17.2 1.7 Ariel 162.6 1.620 LILO 5 104.1 1.041

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions