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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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