codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Need help  kuga at 12:29 on Monday, March 27, 2006
 

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!


  Re: Need help  80Degrees at 18:42 on Thursday, March 30, 2006
 

Read up on std::vector's








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  perl script help needed
•  onChange issue
•  perl remote execution
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007