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
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top