Please answer in the simplest way of understanding pseuodocode

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please answer in the simplest way of understanding pseuodocode

Post by answerhappygod »

Please answer in the simplest way of understanding pseuodocode
Please Answer In The Simplest Way Of Understanding Pseuodocode 1
Please Answer In The Simplest Way Of Understanding Pseuodocode 1 (82.05 KiB) Viewed 24 times
Please Answer In The Simplest Way Of Understanding Pseuodocode 2
Please Answer In The Simplest Way Of Understanding Pseuodocode 2 (108.38 KiB) Viewed 24 times
Please Answer In The Simplest Way Of Understanding Pseuodocode 3
Please Answer In The Simplest Way Of Understanding Pseuodocode 3 (60.21 KiB) Viewed 24 times
Please Answer In The Simplest Way Of Understanding Pseuodocode 4
Please Answer In The Simplest Way Of Understanding Pseuodocode 4 (137.72 KiB) Viewed 24 times
Question 2 Follow the instructions for each of the following questions. Q.2.1 Q.2.2 Write the equivalent case structure from the following selection structure. if salaryCode = 1 then output "You earn less than R100 000" else if salaryCode = 2 then output "You earn more than R100 000 but less than R250 000" else if salaryCode = 3 then output "You earn more than R250 000 but less than R500 000" endif else output "You earn more than R500 000" endif endif Identify at least two errors in this code snippet and explain why they are wrong. Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 value = 1 sum = 0 while value < 5 sum sum +value. while sum < 50 input values endwhile output sum (Marks: 60) endwhile (10) (5)
Q.2.3 Write the pseudocode for the following scenario: A manager at a 2nd hand car dealership wants to keep track of the amount (in Rands) of commission paid to the salespeople. You must take the following into consideration: ● There may be more than one salesperson (each salesperson has a unique employee code) - input the employee code. An employee code of zero (0) terminates the program. The salesperson's commission is based on their sales (in Rands) in the past month - input the sales for each salesperson. Calculate the total car sales (in Rands). Calculate a salesperson's commission (in Rands). Commission is based on the following table: Total value of cars sold Less than or equal to R500 000 More than R500 000 Percentage commission earned 10% 15% Calculate the total commission the manager must pay to all of the salespeople. Display a report for the manager in the following format: Employee Code: 2 Sales: R400 000 Employee Code: 4 Sales: R650 000 Total Car Sales: R1 050 000 Total Commission Paid: R137 500 Commission: R40 000 Commission: R97 500 (35)

22; 23 Q.2.5 Question 3 ● 22; 23 ● The selection structure will determine if a person qualifies for a SASSA pension grant or not. The criteria listed below is not the official list of government requirements. A message must be displayed indicating if a person qualifies for the SASSA pension or not. ● The person must: ● ● ● be a South African citizen live in South Africa be 60 years or older Use the following variables in the selection structure. Only write the selection structure. You do not need to declare or input values into the variables for this question. ● Citizenship will be either "yes" or "no" Residence will be either "yes" or "no" Age will be the person's age (e.g., 67) Write the pseudocode snippet to declare and populate the following array: Temperature 23 19 Q.3.1 Write the pseudocode for an application that will implement the requirements below. © The Independent Institute of Education (Pty) Ltd 2022 29 27 25 Declare a numeric array called 'numbers' that has five elements. Populate the array by asking the user to input values. Use a loop. Ensure the user only enters five numbers. Ask a user whether they would like to search for a particular value. If their answer is yes, the application should allow them to enter a search value and the array must be searched for that value. Calculate and display the sum of the elements of the array. Calculate and display the average of the values in the array. (Marks: 30) 6/7 Depending on if the value is found or not, an appropriate message must be displayed. 2022 (5) (25) 'ag 2022 ●●●
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply