954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

simple calculations How? intHrlyRate, etc Help me


<%
Dim intHrlyRate, intWeeklyRate, intMonthlyRate, intAnnualRate
intHrlyRate = 10
intWeeklyRate = 40
intMonthlyRate = intHrlyRate * intWeeklyRAte
intAnnunalRAte = intHrlyRate * intWeeklyRate * intMonthlyRate
Response.write intHrlyRate
Response.write intWeeklyRate
Response.write intMonthlyRate
Response.write intAnnunalRate

jchamel
Newbie Poster
7 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

This is a very simplistic solution to your problem.

<%
Dim intHrlyRate, intWeeklyRate, intMonthlyRate, intAnnualRate
intHrlyRate = 10 '// $ rate per hour
intWeeklyRate = intHrlyRate * 40 '// hourly rate multiplied by hours per week
intMonthlyRate = 4.33 * intWeeklyRate '// 52 weeks divided by 12 months multiplied by the weekly rate
intAnnunalRAte = 52 * intWeeklyRate '// 52 weeks multiplied by the weekly rate
Response.write "Hourly Rate = $" & intHrlyRate & ""
Response.write "Weekly Rate = $" & intWeeklyRate & ""
Response.write "Monthly Rate = $" & intMonthlyRate & ""
Response.write "Annual Rate = $" & intAnnunalRate & ""
%>
Lafinboy
Junior Poster
172 posts since Jul 2004
Reputation Points: 16
Solved Threads: 7
 

This is a very simplistic solution to your problem.

<%
Dim intHrlyRate, intWeeklyRate, intMonthlyRate, intAnnualRate
intHrlyRate = 10 '// $ rate per hour
intWeeklyRate = intHrlyRate * 40 '// hourly rate multiplied by hours per week
intMonthlyRate = 4.33 * intWeeklyRate '// 52 weeks divided by 12 months multiplied by the weekly rate
intAnnunalRAte = 52 * intWeeklyRate '// 52 weeks multiplied by the weekly rate
Response.write "Hourly Rate = $" & intHrlyRate & ""
Response.write "Weekly Rate = $" & intWeeklyRate & ""
Response.write "Monthly Rate = $" & intMonthlyRate & ""
Response.write "Annual Rate = $" & intAnnunalRate & ""
%>

I found out that my assignment really needed this for the monthrate to come out to 1733. I was told this was needed to do that
intMonthlyRate = CInt(intAnnualRate / 12) '// Annual Rate divided by 12 months the cInt means to divide the annual rate by 12. I missed that other than that he said this was fine.
Thought I would add this for FYI
Thanks

jchamel
Newbie Poster
7 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You