Design a program in pseudocode

Assignment Help JAVA Programming
Reference no: EM13804798

Input a list of employee names and salaries, and determine the mean (average) salary as well as the minimum salary and maximum salary.

Design a program in pseudocode that solves this problem. You are required to generate only the pseudocode - No charting or analysis section is required, but you may have to incorporate the bubble sort algorithm to determine the minimum and maximum salary.

Integer variables: Sum, Count1, Count2, and K

Float variables: Score and Average

1 Declare Medieval[100] As Float

2 Set Sum = 0

3 Set Count1 = 0

4 Write "Enter a test score (or 999 to quit): "

5 Input Score

6 While Score != 999

7 Set Medieval[Count1] = Score

8 Set Count1 = Count1 + 1

9 Set Sum = Sum + Score

10 Write "Enter another score or 999 to quit: "

11 Input Score

12 End While

13 Set Average = Sum/Count1

14 Set Count2 = 0

15 Set K = 0

16 While K Average Then

18 Set Count2 = Count2 + 1

19 End If

20 Set K = K + 1

21 End While

22 Write "The average is:" + Average

23 Write "The number of scores above the average is: " + Count2

24 Write "The number of scores below the average is: " + (Count1 - Count2

My Pseudocode

Declare Names[30], Salaries[30]

Declare Sum as Float

Declare Count as Integer

Declare K as Integer

Declare Average as Float

Declare StudentName As String

Set Sum = 0

Set Count = 0

Set K = 1

Write "Enter Name; enter " when done."

Input StudentName

While StudentName != "*"

Input Name, Salary

While Salary "0"

Set Count1 = Count1 + 1

Set Sum = Sum + Salary

Write "Enter Name and Salary

Input Name, Salary

End While

Set Average = Sum / Count1

Set Count2 = 0

Set Count3 = 0

For K = 1 Step 1 to Count1

If Salary K > Average Then

Set Count2 = Count2 + 1

End If

If Salary K < Average Then

Set Count3 = Count3 + 1

End If

End For

End While

Write "Average Salary: $", Average

Write "Maximum Salary:", Count2

Write "Minimum Salary:", Count3

Reference no: EM13804798

Questions Cloud

Assignment on the odyssey vs the inferno : The Odyssey vs The Inferno
Discussion of interpretations of jesus as divine : In light of our discussion of interpretations of Jesus as divine, how do you think this evangelist understands Jesus' relation to God and to humanity? Give specific evidence to support your answer.
Returns the value of the arithmetic sum up to n : Write and test the following function that returns the value of the arithmetic sum up to neg. SumUpto(5) = 5+4+3+2+1 =15int SumUpto(int)
Description of the terrorist activity in the selected areas : The CEO has asked you to define the psychological perception of risk of employees who work in the company's high-risk areas at the annual board meeting. The CEO feels that by defining the perception of risk
Design a program in pseudocode : Design a program in pseudocode that solves this problem. You are required to generate only the pseudocode - No charting or analysis section is required, but you may have to incorporate the bubble sort algorithm to determine the minimum and maximum..
Unattractive sides of many of novella supporting characters : In The Pearl, John Steinbeck does not shy away from showing readers unattractive sides of many of the novella's supporting characters.
Create a new child class and new driver program : In this assignment you will create a new child class and new driver program. Please review that example before continuing with this assignment. You should fully understand the shape program above
Determine if the problem is either a test of hypothesis a co : Directions: Read the following problem. In your drop box submission, please include the following information: a. Determine if the problem is either a test of hypothesis, a confidence interval or something else and specify the 'key words' found in th..
About global social issue : global social issue

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java program to ask user to enter favorite color

Write a Java program to ask the user to enter favorite color, a favorite food, favorite animal, and first name of a friend or relative.

  Afterwards a way for the user to input

And so on and so forth then afterwards a way for the user to input that they finished a particular task on the list. After the user has input that they have finished a particular task the program should be print "Good Job!" or "Keep it up!"

  Show running versions of the program

Show three running versions of the program in a single screen shot with 3 different size stop signs - Make the circle a red filled circle. Add 4 buttons below the Left-Right-Up-Down buttons with Red and any three other colours.

  Create a servlet that displays a form when the doget method

Create a Servlet that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same servlet, which in the doPost method will append the form data to a random access file. After th..

  Variable of type string that has been assigned

Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the last three characters of the value word. So if if the value if word were "biggest" the expression's value w..

  Write a method to get list of all the books

Make a map for a book with Book ISBN as key and book title as value - Write a method to get list of all the books in JSON format using restul client.

  Write a method shift that takes a stack of integers

Write a method shift that takes a stack of integers and an integer n as parameters and that shifts n values from the bottom of the stack to the top of the stack.

  Write a java program that creates three threads

The reader-writer problem can be stated as given: A shared memory location can be concurrently read by any number of tasks, but when a task must write to the shared memory location, it must have exclusive access.

  What is the greatest common divisor

What is the greatest common divisor of the Fibonacci numbers f100 and f101 by Euclid algorithm.

  Use data structures and algorithm to implement search engine

For the URLs in the keyword list, sort them by either the number of times the keyword appearing in the pages or the popularity of the pages.

  Develop an app that generates a random number

Develop an app that generates a random number and prompts the user to guess the number - When the user clicks the New Game Button, the app selects a number in the range 1 to 100 at random.

  1obtaining the new script download and save the attached

1.obtaining the new script download and save the attached comment cgi mailer script form-mail.pl to your servers

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd