|
I need help with the following:
PRACTICAL 5:
Write a program to display a company’s payroll. Input to this program will be the employee’s name, hourly rate and hours worked for 3 employees. Make use of a while loop and one method called CalculateFinalTotal which will accumulate all grosspays to get the final total.
For example, A Adams (empName), 6.50 (hourly rate), 38 (hours worked)
B Browns (empName), 5.70 (hourly rate), 50 (hours worked)
C Coe (empName), 7.00 (hourly rate), 40 (hours worked)
Output would be a final total of 840.50.
PRACTICAL 6:
Write a program to print out the following. Make use of a FOR loop.
*///
**//
***/
****
PRACTICAL 7:
Amend practical 6. Make use of a while loop.
PRACTICAL 9:
· Ask the user for input as far as the number of leagues are concerned, for example 2
· Ask the user for the name of the 1st league
· Ask the user for input as far as the number of teams in each league are concerned and their points
· Determine the team with the highest points in your output
Example of Input: } All user input
Number of Leagues: 2
Name of League 1: Premier League
Number of Teams within League 1: 5
Name of Team 1 in League 1: Manchester United
Number of points for Manchester United: 20
Name of Team 2 in League 1: Liverpool
Number of points for Liverpool: 16
Name of Team 3 in League 1: Arsenal
Number of points for Arsenal: 26
Name of Team 4 in League 1: Southampton
Number of points for Southampton: 10
Name of Team 5 in League 1: Leeds
Number of points for Leeds: 3 )
Team with highest points is Arsenal ) Output to user
Name of League 2: Division 1 ) All user input
Number of Teams within League 2: 3
Name of Team 1 in League 2: QPR
Number of points for QPR: 20
Name of Team 2 in League 2: Charlton
Number of points for Charlton: 18
Name of Team 3 in League 2: Wolves
Number of points for Wolves: 22 )
Team with highest points is Wolves ) Output to user
Any help will be appreciated, Thanx!
|
|
|
|
|
|
|
|
|
// |