1. Write Pseudocode for adding two given numbers Step 1: Start Step 2: Declare variables num1, num2 and sum. Step 3: Read values for num1, num2. Step 4: Calculate sum=num1+num2 Step 5: Display sum Step 6: Stop

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.4: Program Input Using Cin
Problem 9E
icon
Related questions
Question
1. Write Pseudocode for adding two given numbers Step 1: Start Step 2: Declare variables num1, num2 and sum. Step 3: Read values for num1, num2. Step 4: Calculate sum=num1+num2 Step 5: Display sum Step 6: Stop 2. Write Pseudocode for multiplying two given numbers Step 1: Start Step 2: Declare variables num1, num2 and product. Step 3: Read values for num1, num2. Step 4: Calculate product=num1*num2 Step 5: Display product Step 6: Stop 3. Write a Pseudocode that tells a user that the number they entered is not a 7 or a 9 Step 1: Start Step 2: Declare and Read variable num. Step 3: If num=7 then got to Step 3.1, Else go to Step 4 Step 3.1: Print “The number you entered is 7” Step 4: Else if num=9 then go to Step 4.1, Else go to Step 5 Step 4.1: Print “The number you entered is 9” Step 5: Print ”The number is not 7 or not 9” Step 6: Stop 4. Write a Pseudocode to calculate the square and cube of a given number. Step 1: Start Step 2: Declare variables num,square,cube Step 3: Calculate square=num*num Step 4: Calculate cube=square*num CUBE=NUM*NUM*NUM Step 5: Print square and cube Step 6: Stop 5. Write a Pseudocode to find sum and average of 3 numbers. Step 1: Start Step 2: Declare variables num1,num2,num3, sum,average. Step 3: Calculate sum=num1+num2+num3 Step 4: Calculate average=sum/3 Step 5: Print sum and average Step 6: Stop 6. Write a Pseudocode to find the biggest of 2 numbers. A=15 B=10 Step 1: Start Step 2: Declare and Read variables A and B, Declare BIG. Step 3: If A>B, then go to Step 3.1 or Else go to Step 4 Step 3.1: Print BIG=A Step 4: Print BIG=B Step 5: Stop 7. An employee is given salary based on the number of hours he worked and his pay per hour rate. Write a Pseudocode to calculate salary of an employee.sal=hrs*hr rate=5 *10=50 Step 1: Start Step 2: Declare variables salary, hours and rate Step 3: Read variables hours and rate Step 4: Calculate salary=hours*rate Step 5: Print salary Step 6: Stop 8. Write a Pseudocode to calculate Area of a circle(Area). Step 1: Start Step 2: Declare variables radius r and Area Step 3: Read input radius r Step 4: Calculate Area=3.14*r*r Step 5: Print Area Step 6: Stop
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning