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++

Discussionwhile loops versus for loops please respond to

Discussion "While Loops versus For Loops" Please respond to the following: • Suppose you are writing a C++ program that plays a commercial video continuously within a kiosk at your favorite shopping mall within your home ...

The second portion instruction shown below which is the

The second portion (instruction shown below) which is the actual C++ program is needed by this Saturday. Write a C++ program that is menu-driven that allows for the following menu choices:Load an exam: Loading an exam sh ...

Write a c program that requests the name of any cartoon

Write a C program that requests the name of any cartoon character from the user, then does the following with that name (use printf for each): a. Displays it enclosed in double quotes. b. Displays it in a field 24 charac ...

Programming cc assignmentsyoull need to download this to

Programming C/C++ assignments You'll need to download this To write the program. The programs will be written using the Microsoft Visual C++ Express Edition IDE (Integrated Development Environment), which can be download ...

Programming in c assignmentwrite a c program that computes

Programming in C Assignment Write a C program that computes and outputs the current age of the United States in days (you can use 1776 as theUS founding year). You don't have to worry about fractional years or leap years ...

1 we know that from ece 109 to calculate the

1. We know that from ECE 109, to calculate the equivalent resistance of a network of resistors in series in parallel are given by: Write a C++ program that asks the user to input values for resistors (as many as they wou ...

Cs 2410workshop make-up assignmentwrite a c program that

CS 2410 Workshop Make-Up Assignment Write a C++ program that will output to a file called output.txt EVERY 10 digit phone number from 713-000-0000 through 713-000-0998. These numbers MUST only contain an odd number of ev ...

Computer applications divisionassignment c programmingstl

COMPUTER APPLICATIONS DIVISION Assignment: C++ PROGRAMMING STL Vector For this assignment, you will be starting with an example program that demonstrates the use of a STL vector. In addition to this, you may need to look ...

A compiler that translates a high-level language into

A compiler that translates a high-level language into another high-level language is called a source-to-source translator. What advantages are there to using C as a target language for a compiler?

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 ...

  • 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