Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please doncode using C++ ECE 102 Assignment #2 Imperial to Metric Conversion Write a program to convert a length given in feet and inches to

please doncode using C++
image text in transcribed
ECE 102 Assignment #2 Imperial to Metric Conversion Write a program to convert a length given in feet and inches to centimeters. Refer to the program in Assignment 1. This program should be similar to that one, therefore, you can write this program by modifying the program in Assignment 1. This is learning by imitation first. Formula: cm = (feet * 12 + inches) 2.54 It has proven to be helpful for beginners to write down programs by hand on paper first. Therefore, you should write the program down on paper. 1. Review the program in Assignment 1 line by line, modify each line for this problem. Pay attention to syntax. 2. Enter the program in the software you choose. If something goes wrong, try to trouble shoot. It helps in the long term that you remember what you do wrong and not to repeat the mistakes in the future. Notes: 1. In Assignment 1, there is one input called altitude. In Assignment 2, there should be two inputs, feet and inches. Enter each input in the same way altitude is entered in Assignment 1. 2. The inputs and outputs need to be introduced (or more formally called declared) at the beginning of the main program as in Assignment 1: int altitude, /*satellite altitude in km/ orbit; /*distance travelled in one orbit */ Remember to declare all the inputs and outputs in Assignment 2

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_2

Step: 3

blur-text-image_3

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions