Jump to content

Help me with jquery issue

Hiren Pansuriya

Hello Members,

 

I am trying to make one script to calculate school grades for my upcoming tool but I can't find any script from anywhere which I can refer or get the reference.

Please let me know if you have any ideas to make a script.

 

Thanks in advance.

Link to comment
Share on other sites

Link to post
Share on other sites

This is not enough info to properly tell you what to do.

What I would probably do is make a list/array with all grades and maybe make it a 2D array/KeyValuePair to you can introduce 'weighting' to the grades too (e.g. some grades are worth twice as much as others).

That way you can just go through the entire list and calculate the average, keeping in mind the weighting.

 

Or maybe you want to use a database, so you can get an average (again, maybe with weighting) via SQL.. 

 

It just depends on how you have set it up, which now leaves your question open to a million options.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

Ok, Minibois.

I am planning to make Grade Calculator, Final Grade Calculator and GPA Calculator Online tool for school and college students. The purpose of this tool is that students can use it and they can calculate their school grades without using a calculator.

 

I want to make it using javascript and jquery programming languages. I am following this website as a reference: https://www.gradecalculator.tech/

 

Please check it and help me to build it.

Thanks

Edited by colonel_mortis
Link to comment
Share on other sites

Link to post
Share on other sites

On 7/10/2019 at 7:44 AM, Hiren Pansuriya said:

 

Most people won't do a project for you, if you need help with something specifically you'd want to provide an attempt otherwise for the most part you'll just be ignored. If you need help getting started, a simple google search revealed plenty of resources to help out.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Not to be rude, but you labeled this very badly.  Saying "jquery issue" implies you're already working on the implementation, but you're still in the planning stage of your project.

 

Rule #1 of software design:  Write the manual first.  Ignore implementation for a moment, and just imagine you have the final working product.  How will your users use it?  How should it look?

Rule #2 of software design: Break the problem into smaller, more manageable parts.  Now you mentioned JQuery, so it sounds like you're committed to making this a web page, so right away we can go ahead and splits things up into the HTML code that will make up the UI, and the javascript code that will do the calculations in the background.

 

First thing I would do is plan out how you want your users to enter the data onto the web page.  Next, figure out how you use javascript/jquery to get the data from the web page into whatever kind of data structure you want int Javascript.  You can find a lot of tutorials on how to do this on google.

Next work out the algorithm you'll use to calculate the final grades, gpa, etc.

Then display it in some way.  I'd recommend starting with console.log just for simplicity's sake.

 

Boom, proof of concept done.  It probably won't be as pretty as you'd like at first, but it should be workable and you should be able to proceed easily from there.

 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

#JacobFW Actually I have tried to implement this tool but it shows the jquery issue. That's why I ask the question.

jquery issue is ($ is not a function) like that.

Link to comment
Share on other sites

Link to post
Share on other sites

23 minutes ago, Hiren Pansuriya said:

#JacobFW Actually I have tried to implement this tool but it shows the jquery issue. That's why I ask the question.

jquery issue is ($ is not a function) like that.

First time you've mentioned it.

 

$ is the shorthand form of the jquery function.  Check you're references and make sure you have your script tag including the jquery file.

https://www.w3schools.com/jquery/jquery_get_started.asp

 

Can't recall off the top of my head if how much the order matters, but I'd have the script tag including it occur before any of the code you write.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×