Discuss john can take measurements of the length

Assignment Help Other Subject
Reference no: EM131703390

"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: EM131703390

Questions Cloud

Discusss the expected value and consumer choices : Discusss the Expected Value and Consumer Choices. How might a company take advantage of consumers' mental accounting? Give examples.
What is the minimum number of test-takers necessary : What is the minimum number of test-takers necessary to guarantee that at least four test-takers will have the exact same answers?
Discuss the impact of situated cognition on a k-12 : Discuss the impact of situated cognition on a K-12 course when taught face-to-face as opposed to online.
Find the monthly interest payment : Assume that the monthly interest rate is 1/12 of the annual interest rate. You maintain an average balance of $525 on your credit? card
Discuss john can take measurements of the length : John wants to know the values of the area and perimeter of a rectangle. John can take measurements of the length
Describe two key literary techniques and elements of drama : Describe two key literary techniques and elements of drama that aid in developing the conflict.
Analyze the role that each of these types of costs plays : Analyze the role that each of these types of costs plays in the long-term production of VectorCal's navigation systems. Justify your analysis.
Explain the gap in the research : The purpose statement can be described as the goal of your study.
What journal entries are needed to record each subsidy : RRT received cash subsidies from Orange County ($500,000) and the state ($100,000) to help cover its operating deficits.

Reviews

Write a Review

Other Subject Questions & Answers

  Authorised nurse immuniser in health promotion

Do you think the current methods are suitable for the socio-economic demographic of your area? Choose another student in your group and describe to them a health promotional tool that you feel may be of use in their local area. discuss the importa..

  Which question would you judge as most important

Which question would you judge as most important? Which question would you judge as most likely to be deficient in an organization? Use examples to help explain your decisions.

  Explain a relevant theory of human freedom

Identify a decision about which reasonable minds can disagree; explain the nature of belief and identify the beliefs and values that informed the decision that was made; explain a relevant theory of human freedom, consciousness, and/or realit

  Development and operations of policing organizations

How do past, current, and future trends impact the development and operations of policing organizations? What recommendations would you make to improve the overall development and operations of the policing field

  Selling price-unit variable cost-unit percent revenue

Southwestern University (SWU), located 30 miles southwest of the Dallas/Fort Worth metroplex, has witnessed tremendous growth in its football program. With that growth, fueled by the hiring of legendary coach Bo Pitterno, has come more fame, the need..

  Why is an agenda useful for a meeting

Why is an agenda useful for a meeting? If not at work, then where have you seen a formal agenda used to drive a meeting to conclusion

  How vulnerable are databases and how can they be secured

What can a consumer do to minimize vulnerability to database security breaches? Discuss at least three measures and give examples. How vulnerable are databases and how can they be secured

  Describe experience you have had with performance appraisals

Describe the experience you have had with performance appraisals and how your performance has been influenced by them.

  Describe trends in communications and networking

Discuss and support your opinions of why combining voice and data is a major organizational challenge. Include your thoughts on its possible impacts on the organization in terms of competitive advantage, internal organization, and so forth

  How power controls deviance labels

Various social problems, including deviance and crime, are not inherent in certain actions themselves. Instead, some people are in a position to create norms and pass laws that stigmatize other people. So we study how norms and laws are created to..

  Develop a shared vision with your stakeholders

What are some methodologies of communication you would use to develop a shared vision with your stakeholders?

  Define patient-controlled analgesia

What would be the relevance portion of a question when pertaining to patient-controlled analgesia versus intermittent analgesia dosing

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