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

  Role of polling in democracy

What is the role of polling in a democracy? Should politicians make policy on the basis of opinion polls?

  Explain benjamin franklin-s writing of information

In Benjamin Franklin's writing of "Information to Those Who Would Remove to America" Franklin admires the old Negro saying about value of one's being industrious: What is that saying?

  Anatomical characteristics of neuron

Explain all the anatomical features of the neuron. What are the structures and functions of each one?

  Expectations of law enforcement

Expectations of law enforcement are often very high among the community they protect and serve. One way in which these communities evaluate how well their doing is through data collected during research.

  Discussing communal living

Critically discuss the pros and cons of communal living. Do you think you would enjoy living in commune? Why or Why not?

  Illustrate what are benchmarks after reading week

If anyone has synopsis of differences and similarities between efficacy and effectiveness of psychotherapy in randomized clinical trials (RCTs) as indicated in article. Illustrate what are benchmarks after reading week 1 article which was given.

  Social contract theory

What is social contract theory, and how has it affected the United States criminal justice system?

  How you can help teenagers also adults get through

After reviewing PowerPoint presentation this week on adolescent brain also your readings in Feldman, describe how you can help teenagers also adults get through se adolescent years without risk of long term affects of poor choices.

  Consideration of primary drive

Which of the given would be considered a primary drive?

  Define measure analyse improve control

It is straight inspired from PDCA with Define Measure Analyse Improve Control (DMAIC).

  Theories of counselling

Can you discuss the following areas as they relate to theories of counselling:

  How an organization operates and their level of success

What are some of the conditions of our general environment that affect how an organization operates and their level of success? How are these conditions affecting organizations both short term and long term?

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