Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

Complete the following two programs:

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

1) Identify inputs and outputs of the problem.

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

3) Design an algorithm in pseudo code to solve problem. Ensure 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 would use and what your expected outputs should be.

5) prepare a program to implement your algorithm. Test your program using your test cases. Did your program produce the values predicted in your test cases? Describe.

problem 2)

Shirlee is working with the measurement tool which reports measurements in centimetres. As Shirlee is unfamiliar with centimetres, she would like her centimetre measurements to be converted into yards, feet, and inches. She will also like the result to be properly rounded to the nearest inch. As an ex, if the measurement is 312 centimetres, this must 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 inputs to the outputs.

3) Design the algorithm in pseudo code to solve the problem. Ensure to include steps to get each input and to report each output.

4) Identify two test cases other than ex given above. For each of the two test cases show what inputs you would use and compute what your expected outputs must be.

5) prepare the program to implement your algorithm. Test your program using your test cases. Did your program produce the values predicted in your test cases? Describe.

For each of the two programming problems, create the program using Visual C++.Net. Ensure to capture the 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 must contain in the following order:

1) Answers to all of the problems listed above.

2) Screen capture of first program followed by source code.

3) Screen capture of second program followed by source code.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M94651

Have any Question? 


Related Questions in C/C++

Write a console-based c program that can be used as a math

Write a console-based C++ program that can be used as a math tutor for a young student. The program should display two random numbers consisting of three digits each to be added in columnar format, such as: 247 +129 ---- ...

Design implement test and debug a c program to simulate the

Design, implement, test, and debug a C# program to simulate the rolling of two dice 100 times. Whenever the two dice display the same number, the program should show the roll sequence number (e.g. the 10th roll) and the ...

Write a program that reads numbers from cin and then sums

Write a program that reads numbers from cin and then sums them, stopping when 0 has been entered. Construct three versions of this program, using the while, do - while , and for loops. Add the following to your program: ...

Assignmentbullwrite the code for each lab

Assignment • Write the code for each lab assignment. • Submit the lab in a single zip file in the online course shell. The lab must contain all .cpp files, along with any additional files that may be necessary for your p ...

1 write a c program that allows the user to create a test

1. Write a C++ program that allows the user to create a test bank of questions 2. The program should first ask the user how many questions he or she wishes to create. 3- The user should now be prompted for all informatio ...

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a te ...

1 three employees in a company are up special pay increase

1. Three employees in a company are up special pay increase. You are given a file, with the following data: Miller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Each input line consists of an employee ...

C projectphase 11- you need to take input from user study

C project Phase 1 1- You need to take input from user study year (proper value check from 1 to 4) 2- Take input semester (proper value check 1 to 8) 3- Calculate GPA (use Loop, calculate GPA for semester 1,2,3...) Exampl ...

Assignmentobjectivespractice reading characters from a

Assignment Objectives Practice reading characters from a file Practice using command line input Practice using command-line redirection of files Practice implementing a double transposition ciphering algorithm Summary In ...

Assignmentinstructionsthis assignment is to implement your

Assignment Instructions This assignment is to implement your own mini-grocery store in C++. Suppose you have the following Food hierarchy: FOOD FRUIT APPLE BANANA GRAPE DAIRY MILK YOGURT CHEESE (your choice) (three items ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen