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

  Test retest reliability with inter-rater reliability

Test retest reliability with inter-rater reliability. content validity with both with both predictive validity and and construct validity. internal validity with external validity

  The significance of citizens united

Do you believe it is possible to limit the amount candidates spend on campaigns and/or the amount spent by others on campaigns?

  How do privileged relationships impact witness competency

What are privileged relationships? How do privileged relationships impact witness competency? List and discuss the four general categories of criminal evidence.

  Write respond theories of motivation

Respond to each peer with 3-4 sentences long on their initial post- Motivation is the reason behind a particular behavior, willingness or desire for something. It is a subject that has been studied in peoples' personal life as well as professional ..

  Describe your initial reaction to the concepts in this video

Did any of the information in the video surprise you? Why or why not? Discuss how a person's social class (also referred to as socioeconomic status) can affect his or her chances of success.

  Define the us constituion conflict with public safety

How do "individual rights" protected under the US Constituion conflict with "public safety" -- does this happen?? If so, who prevails?? Why?? Provide examples.

  How do you think you can address your challenges

What discoveries did you make while completing the time management assignment? What do you believe your biggest challenge to success is going to be in the coming months?

  What parts of the brain are involved in memory

What parts of the brain are involved in memory. What role do the different parts of the brain play in how our memory works

  Method-soap-rinse-dry and vacuum

Classic car care has one worker who washes cars in a four-step method ---- soap, rinse, dry, vacuum. The time to complete each step is exponentially distributed, with mean 9 minutes. Every car goes through every step before another car begins the pro..

  Identify general points regarding the idea

Identify the original idea(s) in the article. Identify general points regarding the idea(s). Summarize the general points of the article in your own words.

  Why is leadership important for lawyers

Briefly describe three of the styles of leadership as discussed by Daniel Goleman in his article on emotional intelligence.What did Nick Petrie say about the future of leadership abilities by lawyers that are developed through "vertical developme..

  Create a spiritual and psychological inventory

In a 4-5 page paper, create a spiritual and psychological inventory that can be used to determine a current state of wellness. The inventory should be a list of at least 10 well thought out questions that can be asked to best help someone understa..

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