473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grading Students Scores

32 New Member
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.
Nov 3 '06 #1
3 4740
LacrosseB0ss
113 New Member
how are you saving the grades? if they are in an array, you can use a sorting algorithm to sort them (in any order) and then take the highest 3 and assign your labels to them. Not sure how it would be done without an array however.

This also may not be the most efficient solution out there but it will work. If the data amount is small enough (<100 elements), it may not matter anyway.
Nov 3 '06 #2
sashi
1,754 Recognized Expert Top Contributor
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.
Hi there,

No one will be able to assist you unless u show ur coding segment, think, how to validate the code without seeing the code? take care.
Nov 3 '06 #3
darklynx489
2 New Member
I am writing a Visual Basic program for calculating students scores, and also grading the highest 3 scores as "First" , "Second" and "Third" respectively.

I have been able to get the program to compute the score of each student. I have not been able to grade the highest three scores into First, second and third.

Kindly assist me, please.


yes, some sample code would be nice. BUUUUT you should do a loop to test the numbers and find which is the highest and then count down from there 2 places and store those. = D
Nov 7 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6407
by: Louis | last post by:
Hi, I am a first time poster here. I have been given an assignment to do from college and it is ot create a student gradebook. I have planned all the tables etc. to what I believe to be correct. I have also set the relationships etc. I have three tables here that are causing the most problems. These are: Students - contains information on students Assignments - this is the actual work the students should be doing Results - These are...
4
12975
by: hjc | last post by:
i am trying to created a program that will write a grading program for a class with the following policies there are 2 quizzes each graded on the basis of 10 points there is 1 midterm and 1 final each graded on 100 points the final exam counts for 50% of the grade, the midterm counts for 25% and the 2 quizzes togehter count for a total of 25%(i have to normailze the scores) letter grades based on 90-100 A 80-89 B 70-79 C
3
2485
by: spike29 | last post by:
write an application in Javascriopt that will process peoplesgrades Each person has 4 test grades and you are to compute the average for each sudent. The input will include: 1. student name - string type 2. test grade 1 - integer 3. test grade 2 - integer 4. test grade 3 - integer 5. test grade 4 - integer In your program, keep a count of the number of students read in. When finish entering grades for each student, compute the average...
17
3438
by: Brian Blais | last post by:
Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the basic programming structure. Things like, return the maximum in a list, making lists with certain patterns, very simple string parsing, etc. Unfortunately, it takes a lot of time to grade such things by hand, so I would like to automate it as much...
1
1088
by: wilberato | last post by:
Hi Guys I need help in using the rank function. I have a table with the following fields but would like to rank the students according to their total scores. How do I do it. Name Score 1 Score 2 Score 3 TotalScore Position How do I rank the students in a query. Help I want to store the ranks in the field called Position.
4
5596
by: CCSi | last post by:
Write C++ program to read the scores of 10 students and print the average, number of faild and passed students ?
9
3379
by: Grimmjow04 | last post by:
first of all, im a beginner with this thing.. turbo C,, my prof gave us a homework: we must do a grading system consist of: format>>> Grading System Enter your name:
8
15281
by: d24706 | last post by:
Hello, I hope someone can help me. I had to do the following assignment( i have most of it done just cant finish it off, question and source code below). Question? Write a Java program that asks the user to input the scores, as a percentage( e.g 87.4), of 10 students. The scores entered must be stored ina n array. The programme must determine: The lowest score and its equivalent grade (ie A,B,etc)
3
2377
by: tomshorts07 | last post by:
hey everyone, i'm new to JAVA, and i'm trying to make a program that takes a .txt file with the format 10 4 2 2 3 1 5 4 2 4 4 Joe, 4 4 1 3 2 5 4 2 4 3 Mary, 4 2 2 3 2 5 3 2 4 4 Fred, 3 2 2 3 1 5 4 2 4 4 ***(the first line is the 'answer key'; the first number indicates the total number of answers, and the numbers that follow are the 'correct' answers. the lines following the 'answer key' are the students answers.)***
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.