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

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

Assignment part acreate a checkbook program using c

Assignment (part a) Create a Checkbook program using C : • Create a Check structure. Include:   o Check number (should be an integer).   o Date (use type char[ ]).   o To   o Amount   o Description • Add functions to:   ...

Practice with pointers and dynamic memory

Practice with pointers and dynamic memory allocation Problem: Write a C++ program that will implement and test the four functions described below that use pointers and dynamic memory allocation. The Functions: You will w ...

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

Assignmentpart acomplete the following questionswrite c

Assignment Part A Complete the following questions: Write C++ code to open a document with the name Hello.txt, place the message "Hello, World!" in the document, and exit the document. Re open the file you closed, and re ...

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

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

Assignmentthis assignment gives you the opportunity to

Assignment This assignment gives you the opportunity to practice array of pointers, linked lists and self referential structures. Write a program that initializes two parallel arrays as follows: char * String[] = { "Abbi ...

Programming assignment image processing - pointers class

Programming Assignment: Image Processing - Pointers, Class & Dynamic Data This project is called "Image Processing" which will shrink an input image, convert a color image to gray image , add random noise to an image, ad ...

Assignmentconsider the following declarationsclass

Assignment Consider the following declarations: class bagType { public: void set(string, double, double, double, double); void print() const; string getStyle() const; double getPrice() const; void get(double, double, dou ...

  • 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