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
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more
Recent Comments