1. Write Pseudocode for adding two given numbersStep 1: StartStep 2: Declare variables num1, num2 and sum.Step 3: Read values for num1, num2.Step 4: Calculate sum=num1+num2Step 5: Display...

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
Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here