Perimeter of rectangle and measurements in centimeters

Assignment Help Other Subject
Reference no: EM13162764

"Complete the following two programs:

Programming Problem 1

John wants to know the values of the area and perimeter of a rectangle. John can take measurements of the length and width of the rectangle in inches. John's measurements are expected to be accurate to within 0.1 inch. 

1. Identify the inputs and outputs of the problem.

2. Identify the processing needed to convert the inputs to the outputs.

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, one using whole number values, and one using decimal number values. For each of the two test cases show what inputs you will use and what your expected outputs should be.

5. Write the program to implement your algorithm. Test your program using your test cases. Did your program produce the values predicted in your test cases? Explain.

Programming Problem 2

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. Test your program using your test cases. Did your program produce the values predicted in your test cases? Explain.

For each of the two programming problems, create a program using Visual C++.Net. Make sure to capture a sample of your program's output. The best way to do this is to click on the console window you want to capture and then press the Alt and PrintScreen keys at the same time. Then paste your captured screen image into a Word document. For each of the two programs, put the screen capture followed by a copy of your source code into your Word document.

Your final programming document should contain in the following order:
1. Answers to all of the questions listed above.
2. Screen capture of the first program followed by source code.
3. Screen capture of the second program followed by source code.

Reference no: EM13162764

Questions Cloud

Massive-positively charged and nuclear particles : Which the following denotes the massive, positively charged, nuclear particles?
Get so mad when you just shrug them off like : I know people that get so mad when you just shrug them off like what they are saying does not matter. Even when you do not case for what someone has to say you still should not just shrug them off.
Self-conept chages : One of the most common ways our self-conept chages is
Process of ascribing the cause of an event to somthing : The process of ascribing the cause of an event to somthing
Perimeter of rectangle and measurements in centimeters : John wants to know the values of the area and perimeter of a rectangle. John can take measurements of the length and width of the rectangle in inches. John's measurements are expected to be accurate to within 0.1 inch.
The artha-sastra : The Artha-sastra.  used the analogy that big fish eat littler fish.  has been known to historians since the early 1500s.  was written by a minister serving the Gupta Empire.  held that “the enemy of my friend is my enemy”.
Document to monitor and control a project : What are some of the key environmental forces that have change the way project are managed? what has been the effect of these forces on the management of project?
Change trend : Why are businesses moving away from Blackberries and towards iPhones? What can Blackberry do to change this trend?
Failure can force people to strive to do their best : Failure can force people to strive to do their best because they fear failure but, on the flipside, failure can cause people to avoid even trying in the first place.

Reviews

Write a Review

Other Subject Questions & Answers

  Value based system-healthcare system

The healthcare system is slowly making the transition to a value based system? A value based system requires reporting measures and monitoring of outcomes to prevent a decrease in the quality of care being rendered to patients. 50-100 words please.

  Outdoor recreation

Recreation Opportunity Spectrum, contribution of outdoor recreation to the local community, nature-based recreation site, natural environment of the site,

  How world-s musics can influnce cultures so differently

Why do you believe that world's musics can impact cultures so differently? Listen to examples of traditional musical sounds from different cultures and try to recognize common similarity.

  Case study-clinical psycology

Discuss the role of pharmacological interventions and if you believe it would be helpful for Simon and why.

  Create incident response policy to cover development

Create the incident response policy which covers development of incident response team, disaster recovery process and business continuity planning.

  Explain diplomatic breakthroughs with china and russia

How did Nixon handle to achieve diplomatic breakthroughs with China and Russia where other presidents had failed? What situations made success likely?

  Explaining the case law jurisdiction

The sales rep at wired nation told you that the computer would last for at least 3years, so you did not buy an extended warranty.

  Construct three different personality theories

If you could cut and paste three constructs from three different personality theories and develop your own theory of personality, what would that theory look like?

  Ethical decision-making processes

Is the ethical decision-making process relevant to every situation? Why or why not? Which step(s) in the ethical decision-making process is the most important? Which step(s) may present most difficulties? Why?

  Community details to complete your needs assessment

Finally, think about how you might engage the informant to obtain the community details to complete your needs assessment.

  How education makes us better citizens of world

In Kenyon Commencement Speech it was said how education makes us better citizens of world, describe in a 5-paragraph essay.

  Analyzing the murder case

Can Doug be convicted of murder or any lesser included offenses?

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