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

  Write an expression those results in a string consisting

Write an expression those results in a string consisting of the third through tenth characters of the strings. Make this program using java programming.

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Sorting routine adopted in the java api for arrays.sort()?

What is the sorting routine adopted in the Java API for Arrays.sort()? How different is it from the sorting routine we discussed in class? Is it better? Explain your answers in short clear sentences.

  Your task in this assignment is to develop a graphical user

your task in this assignment is to develop a graphical user interface based java program that can communicate with a

  How much more that person needs to spend to qualify

Program that takes the amount a person has spent and determines the discount ($15 per $175 spent).

  standard graph with four quadrant

Write a program in java that asks the user for values of x and y, and displays the point as an ordered pair along with a message that describes where that point falls on the standard graph with four quadrant.

  Calculates the cutoff frequency in a simple rc circuit

Write a simple Java application which calculates the cutoff frequency in a simple RC circuit

  Write a program that prompts for and accepts input of test

write a program that prompts for and accepts input of test ggrades that are integers between 0 and 100. For each numerical test grade,  program should display a corresponding letter grade

  Write a program which adds two matrices

Write a program which adds two matrices together and displays the sum - Two arrays will contain user input, and the third array will be used to contain the sum of the two arrays.

  Changed to value-receiving and value-returning

The methods are to be changed to value-receiving, value-returning and a combination thereof. Therefore, when you call these methods make sure you send the correct arguments and properly process the value that is returned.

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  What is one example from the list in table of popular

based on the keston 2013 article what are the advantages and disadvantages of using mashups? what is one example from

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