hi,hello to anyone there can anyone help me to fix my problem about C#.Net conditional exercise.The problem is write a problem that asks the user for the hours worked for the week and hourly rate.The basic salary is computed as: Salary=hours worked*hourly rate
bonus are given:
No.of hours>45 Bonus of 500
No. of hours>40and<=45 Bonus of 250
No.of hours>35and<=40 Bonus of 150
display the basic salary,bonus,and total salary
the sample output:
Hours worked:10
Hourly rate:10
Basic salary:100
Bonus:0
Total salary:100
what should i do,the bonus & hours worked are a double data type and other are a decimal data type.Please help me to fix this problem SOP.Thanks!!!
rhose 0 Newbie Poster
Ramy Mahrous 401 Postaholic Featured Poster
Oceanic815 0 Newbie Poster
david.crawford 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.