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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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