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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education