Convert centimeters to total number of inches first

Assignment Help Electrical Engineering
Reference no: EM13263636

Shirlee is working with a measurement tool that reports measurements in centimeters. Since Shirlee is unfamiliar with centimeters, she would like her centimeter measurements to be converted into yards, feet, and inches. She would also like the result to be properly rounded to the nearest inch. As an example, if the measurement is 312 centimeters, this should be converted to 3 yards, 1 foot, and 3 inches.

1. Identify the inputs and outputs of the problem.

2. Identify the processing needed to convert the inputs to the outputs. HINT: Convert centimeters to total number of inches first! (1 inch = 2.54 cm)

3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output.

4. Identify two test cases other than the example given above. For each of the two test cases show what inputs you will use and calculate what your expected outputs should be.

5. Write the program to implement your algorithm.

Reference no: EM13263636

Questions Cloud

Find and plot the voltage that appears across the resistor : A perfect conductor joins two ends of a 100 ohm resistor and closed loop is in the region of uniform magnetic flux density B = 10*e^(-t/10) T. Neglecting the self-inductance of the loop, find and plot the voltage V(t)
What size would a sail have to be to accelerate a spaceship : Scientists have proposed using the radiation pressure of sunlight for travel to other planets in the Solar System. If the intensity of the electromagnetic radiation produced by the Sun is about 1.4 kW/m2 near the Earth
Find and print out the average of the scores : Write a program that will read scores into an array. The size of the array should be input by the user (dynamic array). The program will find and print out the average of the scores. It will also call a function that will sort the scores in ascendi..
Determine relative phase of the y directed antenna : A turnstile antenna consists of two crossed dipole antennas. in this case, located in the x-y plane - the dipoles are also identical and lie on the x and y axes respectively and are both fed at the origin assume the equal currents are supplied
Convert centimeters to total number of inches first : Shirlee is working with a measurement tool that reports measurements in centimeters. Since Shirlee is unfamiliar with centimeters, she would like her centimeter measurements to be converted into yards, feet, and inches.
What is the change in the helmholtz potential : A cylinder contains a piston on each side of which is one kilomole of an ideal gas. The walls of the cylinder are diathermal, What is the change in the Helmholtz potential
Describe the subsequent motion of the rod : A uniform rod of mass M and length L is sitting on a frictionless table. Describe the subsequent motion of the rod
What is the firms weighted average cost of capital : If Imaginary is subject to a 40 percent marginal tax rate, then what is the firm's weighted average cost of capital?
Find angle between axes of each pair of adjacent polarizers : A beam of unpolarized light shines on a stack of five ideal polarizers, Find the angle between the axes of each pair of adjacent polarizers

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine thickness of aluminum thinfilm based on parameters

A quartz crystal microbalance (QCM) was employed in a vacuum deposition process, where a thin film of aluminum was grown over a p-Si wafer. The oscillator frequency at the start of the process was 10.0050 MHz.

  Estimate the electron and hole drift velocity

Consider an n-Si with doping of 9*10^16cm^-3. In a certain region of this sample, there is an electric field of 1000V/cm. Estimate the electron and hole drift velocity and the total drift current density in that region.

  What is the magnitude of the electric field

An electric flux of 151 Nm2/C passes through a flat horizontal surface that has an area of 0.715 m2. The flux is due to a uniform electric field. What is the magnitude of the electric field if the field points 10.3° above the horizontal

  Determine the width of the depletion region

A pn junction with Nd=4x10^16 cm^-3 and Na=3 x 10^15 cm^3 experiences a reverse bias voltage of 1.6V (a) Determine the width of the depletion region and the junction capacitance per unit area

  Write an arduino code that reads temperature from thermistor

Write an arduino code that reads the temperature from a thermistor. This code must read a set temperature from the serial monitor and if the temperature from the thermistor is higher than the set temperature then a fan and led will turn on.

  Determine the weight of the rod in units of pounds-force

A rod on the surfaceof Jupiter's moon Callisto has a volume of 0.3 cubic meters. Write a MATLAB program that will determine the weight of the rod in units of pounds-force. The specific gravity is 4.7 Gravitiational acceleration on Callisto is 1.25..

  How much stator referred external resistance per phase

How much stator referred „external? resistance per phase should be connected in the rotor

  Determine minimum required bandwidth for the transmission

A binary data stream needs to be transmitted at 5 Mbit/s by means of binary signaling. To reduce ISI, a cosine roll-off pulse of roll-factor r = 0.25 will be used. Determine the minimum required bandwidth for this transmission

  Which consists of an infinitely thin cylindrical shell of r

The return current is through the outer conductor, which consists of an infinitely thin cylindrical shell of radius b. Use Ampere's law to calculate the magnetic field intensity everwhere.

  Finding out the op level from an attenuator of know ip

Determining the o/p level from an attenuator of know i/p, An attenuator has an attenuation of 10 dB over the frequency range 10 MHz to 1.0 GHz

  Define multiplexer with an active low enable

(c) Use a single 4-to-1 multiplexer with an active low enable and an active high output and a minimum of additional gates. Show the function expansion both algebraically and on a Karnaugh map.

  For how long can the capacitor sustain the light

A 1.1 mF capacitor has initial voltage of 12 V.The energy stored in the capacitor is used to light up a 0.7 KOhm lamp.Assuming that the lamp is completely dimmed when the current through it is less than 0.2 mA, for how long can the capacitor susta..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd