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

Assignment simple 5-card poker gamein this assignment you

Assignment: Simple 5-Card Poker Game In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class. Flow of Play Your poker game's p ...

This program involves using stl listsfor this program you

This program involves using STL lists. For this program you will implement three functions whose prototypes are given below: list ::iterator mxIter(list ::iterator first, list ::iterator last); void selectSort(list & aLi ...

Objectives- gain experience with if if else and switch

Objectives - Gain experience with if, if else, and switch statements in C programs. - Experience using % operator and true false logic. Hints This program will be MUCH easier if you design how to do the logic in your own ...

A write an array implementation of self-adjusting lists in

a. Write an array implementation of self-adjusting lists. In a self-adjusting list, all insertions are performed at the front. A self-adjusting list adds a find operation, and when an element is accessed by a find, it is ...

Programming assignment- in this assignment you are

Programming Assignment- In this assignment you are requested to write a C++ program that displays the following colored pyramid on the screen: - The pyramid is 71 characters wide and 21 characters high. - To draw it, you ...

Only one programwrite a c program to find fibonacci numbers

Only one program Write a C++ Program to Find Fibonacci Numbers using Dynamic Programming.

Problem 1overview for problem 1a of this assignment you

Problem #1 Overview: For problem 1(a) of this assignment, you will need a C++ compiler. In order to receive credit, your program must compile and run; and you must provide the actual source code file so that I can compil ...

C program codeoverviewfor this assignment write a program

C++ program code Overview For this assignment, write a program that will simulate a single game of Craps. Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the die will determi ...

Writeacprogramthatwilluseloopstoperformeachofthefollowingtas

Write a C++ program that will use loops to perform each of the following tasks: 1. Ask the user for two characters from the keyboard and read them into char variables. Determine which input is larger and which is smaller ...

Ipo chartinputprocessingoutputmarks for four

IPO Chart Input Processing Output Marks for four courses Processing Item: Grade Point and Grade for individual course Overall GPA Algoritham Initialize gp with zero Repeat  for (each course)                 Enter the mar ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate