User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 392,372 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,737 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:

Calculate Students Grade And Grade Weightage

Join Date: Sep 2006
Location: Randall, MN
Posts: 2
Reputation: jeromemck is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jeromemck jeromemck is offline Offline
Newbie Poster

Re: Calculate Students Grade And Grade Weightage

  #4  
Sep 10th, 2006
Originally Posted by lethalbeez View Post
1 - What function should I use to calculate the grades. For example if a teacher key-in 80 the grade should be A, 50 should be C and so on. I tried using the CFIF statement but failed. Any coding example?...


eddvedder

There is no reason why a set of cfif statement couldn't work for the grade portion.

for example
<cfif grade gte 90>A
<cfelseif grade gte 80>B
<cfelseif grade gte 70>C
<cfelseif grade gte 60>D
<cfelseif len(grade) gt 0>F <!--- no grade given a student will get an incomplete --->
<cfelse>Incomplete
</cfif>
 

You might supply a sample of you code to get a better result.

Jerry
Last edited by jeromemck : Sep 10th, 2006 at 9:15 pm.
Reply With Quote  
All times are GMT -4. The time now is 1:08 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC