Sample code grading program




















When i 's value is 0 at first execution , then mark entered by user gets stored in the list at mark[0]. Now at second time, the value of i is 1, so mark entered by user gets stored in the list at mark[1] , and so on upto 5 times.

This program allows user to enter the number of subjects along with marks obtained in all subjects. That is, this program find and prints grade of student based on marks obtained in N subjects. The value of N and marks in N subjects must be entered by user:. Here is its sample run with user input, 6 as number of subjects and 56, 46, 76, 87, 45, 37 as marks obtained in 6 subjects:. Here is another sample run with user input, 10 as total number of subjects, and 56, 76, 87, 90, 45, 44, 34, 56, 76, 80 as marks obtained in 10 subjects:.

Python Program to Calculate Grade of Student. While learning Javascript I come up with the idea to write a program in Javascript that I will compute the student grade. This program that I wrote is very simple it teaches the user and learner how to use html forms and form validations using Javascript as our scripting language.

How this program works is very simple it will ask the user to enter the student name, student course, subject, midterm grade and endterm grade to be solve to get the final grade of the student in the particular subject.

I also include checking for remarks if the grade of the student greater than 75 percent the student passed the subject. If the grade is less then 75 percent means the student was not able to pass the subject. Try to improve your answer with some explanation. Especially that you are using an outside library that some people might not be familiar with.

In this case, a link would also be very useful for example for further reference — Tomerikoo. This is basically a verbatim for one of the examples in bisect built in library, not an outside library as you put it. You can use pandas and numpy to do it. DataFrame d converting dict to dataframe Keys get converted to column names and values to column values get grade by adding a column to the dataframe and apply np.

Ray Ray 2 2 silver badges 15 15 bronze badges. The scores are integer numbers, but thank you for your reply, I will check that out later. Another option If you didn't want an integer, you could change this for a float. Neos Nokia Neos Nokia 1 1 gold badge 2 2 silver badges 11 11 bronze badges. You may just do this, noting the order of the if comparison. Arjen Dijkstra 1, 16 16 silver badges 23 23 bronze badges.

You shoulder refactor your answer, and use the correct syntax for code. Try to explain your answer as well instead of just posint raw code. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.



0コメント

  • 1000 / 1000