Professional Documents
Culture Documents
Rtanveer Pr1
Rtanveer Pr1
Test Case # Input Expected Output Actual Output Did the test pass?
Bob Bob Bob
10 10
2.5 2.5
5
1 25 25 YES
2.23607 2.23607
8 2 2
3 2.66667 2.66667
Alice Alice Alice
20 20
5 5
10
2 100 100 YES
3.16228 3.16228
5 2 2
2 2.5 2.5
Rayyan Rayyan Rayyan
16 16
4 4
8
3 64 64 YES
2.82843 2.82843
9 2 2
4 2.25 2.25
Hassan Hassan Hassan
6 6
1.5 1.5
3
4 9 9 YES
1.73205 1.73205
3 1 1
2 1.5 1.5
PSEUDOCODE
Ask the User’s name.
Ask the user's favorite number.
Work on the favorite number.
Multiply the number by 2
Divide the number by 2
Square the number
Square root of the number
Display the fun facts about the favorite number.
Double of the number
Half of the number
Square of the number
Square root of the number
Ask the user for two whole numbers.
Work with the 2 whole numbers.
Divide the first whole number by the second whole number using integer
division.
Divide the first whole number by the second whole number using floating
point division.
Display the division section.
Whole number 1 divided by whole number 2 using integer division.
Whole number 1 divided by whole number 2 using floating point division.
FLOWCHART
A
START
Display a message
Read name. “Give me another
whole number.”
Display a message
“What is your Read the second
favorite number?” whole number.
Display a message
“Give me a whole
number.”
A LESSONS LEARNED
Q1) Write about your Learning Experience, highlighting your lessons learned
and learning experience from working on this project.
Ans) While working on this project I just compiled every piece of knowledge that
I learned so far in this course. In this project the following topics were tested out
of all the other topics:
The Parts of a C++ Program
The COUT function
The CIN function
The different data types
Variables, Assignments, and Initialization
Arithmetic Operators
Mathematical Functions
Type Casting
Hand Tracing a Program
Q5) What parts of this assignment were you successful with, and what parts (if
any) were you not successful with?
Ans) I was successful with everything. Nothing was difficult.