VB.NET by using console

Rose Rosa

New Member
Joined
Oct 26, 2019
Messages
1
Guys help me to make this code:
A company has 10 employees, they all get paid on hourly basis. For each employee the
company keeps h employee name, number of hours worked every week. Every employee
gets paid weekly. Gross earning is calculated by multiplying number of hours worked by
pay per hour.
Some employees work more than 40 hours, those get overtime pay.
We need you to write a VB.net program to find out the total net earnings as follows:
A- Read employee name and how many hours an employee worked in the week
1- If hours worked is less or equal 40(≤40) hours, employee gets
Gross earning = hours worked * pay per hour
2- If Hours worked is more than 40 (≥40)hours, employee gets
Overtime Hours = hours worked - 40
Gross Earning1 = 40 * pay per hour
Gross Earning2 = Overtime Hours * (pay per hour * 1.5)
Gross Earning = Gross Earning1 + Gross Earning2
B- Find the Total Gross Earning which is calculated as follows:
Total Gross Earning = Gross Earning + allowances
C- Find the total net earning which is calculated as follows:
Total Net Earning = Total Gross Earning - deduction
Once you calculate the Total Net Earnings for each employee PRINT EMPLOYEE
NAME AND THE TOTAL NET EARNINGS
 

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
4,282
this is college course work which you should be doing yourself - how else do you learn ?
happy to help if you ask specific questions AFTER you have attempted it yourself
 

Forum statistics

Threads
1,078,437
Messages
5,340,271
Members
399,361
Latest member
Linford

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top