COMP122
Week 1 iLab - Part 2
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.
Inputs
Double Length
Double Width
Output:
Double Area
Double Perimeter
2. Identify the processing needed to convert the inputs to the outputs.
Area= length*width
Perimeter= 2*(length+width)
3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output.
A. Declare input and output variable
B.
…show more content…
Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output.
A declare input and output variable
B. read reports measurements in centimeters
C. converted into yards, feet, and inches
D. output variable.
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.
Yes,
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
There exist many different possible solutions to this problem, all depending on what extent we want to take to solve this problem, i.e.
1. Compare the hash values calculated for example.txt that you documented during this lab. Explain in your own words why the hash values will change when the data is modified.
Lab 1-2: Create a Payroll Program to Run in a Command Prompt and a Dialog Box..... 34
Third, if you graph (or otherwise represent) these numbers, patterns will emerge. Fourth, if you
The main issue is to find out the best method that suits the nature of
Match the real-world examples listed below with the corresponding systems. The first one has been completed for you in the table.
Using Activity 2 found in your Laboratory Manual, create a Punnett square and complete the exercise
The following answers were discovered using the x = -b / 2a formula. x co-ordinates in question 1.
Test your hypothesis. How will the computer model allow you to test your hypothesis? What steps will you follow? What data will you record? Conduct your experiment and record your results.
Generally in connection based structure when two or more workstations transmit information in the same time, data gets blended up to noise and this state is known as collision. Right when the effect is seen in the workstations hold up certain amount of time and attempt to send once again. In this circumstance it can 't be picked when a workstation will get a chance to transmit. This kind of condition is known as nondeterministic protocol
The rest of this paper is structured as follows. It starts with a review of existing approaches to the problem (Section 2). This will be followed by an overview of the
In the case of a rectangle, if k is the length of the longer sides, whereas m is the length of the shorter sides,
A system for programming testing coordinates programming experiment outline techniques into a generally arranged arrangement of steps that bring about the effective development of programming. Testing is the situated of exercises that can be arranged ahead of time and directed methodically. The fundamental inspiration of system testing is to certify programming quality with systems that can financially and viably apply to
DIGITAL SIGNAL PROCESSING LAB The programs shall be implemented in software (Using MATLAB / Lab view / C programming/ Equivalent) and hardware (Using TI / Analog devices / Motorola / Equivalent DSP
That is, the analysis and evaluation of the example problem based on the | |