Computing Average Test Scores

guys. I am trying to write a program that asks the user how many test scores they have, then reads the test scores, averages them, then displays the average and a pass/fail grade (50+ is a pass), using a seperate function to average the input values.I have been working on it for about 3 hours now, a ...

Program Averaging Test Scores

Im writing a program that will ask a user how many tests they have, read those tests, average them, and then display the average as a pass or a fail. IE A is a 80% or higher, using a seperate function to average the imput values. Errors are in the lrt string section. Can anyone see where Im going wr ...

Arrays! Program for player scores

#include <iostream>#include <string>#include <iomanip>using namespace std;//Function prototypes declared before main functionvoid InputData(string playerNameAr[], int scoreAr[], int &numPlayersRef);void DisplayPlayerData(const string playerNameAr[], const int scoreAr[], int num ...

Help with average program in C++

For this program (assignment), the user enters the names of five students, and their respective four test scores. The program will then average the scores, and display them for the user. Part of the requirement for the program is that we use five single-dimensional arrays of 'doubles' to store the s ...

Using functions and arrays to create a program for grades

Please assist with creating a program using arrays and functions for student grades. These are the requirements: To create and execute a C++ program with functions and arrays that will read student information input from an input text file, calculate the test average, program average, course average ...

Grade program

Write a program that will compute the quarter/semester grader for all the students in a class. Scenario is as follow: There are total of forty students in any given class. Each student has twelve graded items. Each student is given four tests, four programming assignments, and four homework assignme ...

Average help

I am trying to take the following code so that my bottom function first pulls out the first three scores of a text file and averages them, then pulls the last three scores out and averages them. I am using a known good text file that has 7 entries with first and last name folowed by the 6 scores fol ...

Help with Program Execution

Hi! I'm new to this forum and C++ programming and I am currently taking and introductory course to C++. I have a program that compiles fine but will not execute. I am posting my code and a sample input file....Please if anyone can get it to run or give me suggestions on why I am getting a segmentati ...

Urgent help needed, average, highest and lowest of one-dimensional array

I have an assignment that asks :Write a program that prompts the user for test scores (doubles). The user enters -1 to stop the entry. After all of the test scores have been entered, calculate the average, the highest and the lowest test score. Use the code below as a template. Make sure you respond ...

I need help with bowling program

Write a program to process bowling scores for players on a team. Calculate each player's series (the sum of his bowling games) and his average game score. Sum the players' scores for each game, and calculate the team's total for each game, the team's series, and the team's average game score. For ea ...

C++ Program, array issues

include <cstdlib>#include <iostream>#include <iomanip>#include <stdlib.h>using namespace std;void printintromessage ();void getUserInput (char& Y);void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j);int main( ...

Ubuntu help me debug C++ program

#include <iostream>using namespace std;int main(){int numStudents,numTests,total;double average;cout<<"This program averages test scores.\n";cout<<"For how many students do you have test scores? ";cin >> numStudents;cout<<"How many test scores d ...

Weird average

What's wrong with my code when i calculate the average? I set it up so average = sum of all scores divided by the number of scores.But it keeps on returning a number like 5.634543-e306 and i don't know why it's doing that.#include <iostream>#include <fstream>#include <iomanip>using ...

c++ program help!

I am working on a program that reads students name and test score from a file. The program should assign the appropriate letter grade, then output the name score, and grade. It should also determine the highest test score. I do not see where my errors are. Please help!//// Author: Lauren Settle//// ...

my program is skipping my function

I am SO frustrated, I am learning JavaScript for class and our teacher gave us this assignment: The purpose of this program is to allow the user to input four numbers: test average, program average, final exam grade, and attendance grade. The program then calculates the final average of the student ...

Please help me with accumulating scores problem.

I need to keep count of how many scores are entered using the enterButton, accumulate those scores and find the average score, best score and worst score. Without using arrays. But I'm kind of stuck. My code compiles but it doesn't run correctly. Can someone please help me?? import javax.swing.*;imp ...

Ubuntu A probabilty program.

I have been reading Frederick Mosteller's Fifty Challenging Problems in Probabilty and i came across this problem.On the average, how many times a die must be thrown until one gets a 6?sure, the answer is 6. But i wanted to verify (my knowledge of C). I wrote up this program:/*Average number of thro ...

Help with short program - structures

#include <iostream>#include <iomanip>#include <fstream>#include <stdio.h>#include <cstdlib>using namespace std;# define Length 20struct student{int studentID;double programAvg;double testAvg;};void printstudent (student student);int buildAr( student [] ); //FUNCTION PRO ...

need some help on an error message

i have been working on the program, and finished debugging, but when i run my compiler to check for any mor errors i am getting 1 error that i have never seen before, and i have no clue what it means... here it isjmeyer0016@district:~/cs115b$ g++ program3.cc/tmp/ccvbPqS0.o: In function `main':progra ...

arrays and functions

I am having a huge problem with writing this program. Every time I ask the teacher for help she is too busy helping someone else. so she just tell me one thing and runs off to the next person without checking if it worked and what other help I might need. It has become very frustrating. I have been ...

Problem with Qbasic If Then's

Ok so I have a program to read three exam scores from 6 students. I have to make the program average the 3 exam scores for each student and then have an average for each invidual exam. Then have a total average for every score there.Blah I can't get it to work and I have been sitting here trying to ...

Sum of Vectors

In my Java class, we have to randomly create basketball teams and random scores, then average the scores for each team, and average the scores for each game. I am not sure how to average the score for each game, meaning adding scores vertically in a vector versus adding scores horizontally. I have t ...

I need some help. its an easy problem but...

I have been writing my program and everything works like it should unless the user inserts a character then the whole thing blows up... how can I fix this. Is there something I can add to block characters from being added? any help would be appreciated!here is my code:#include <iostream>using ...

need help on two-dimensional arrays...please help..

uhm... i really need your help about this... below is the problem but i have my own turbo C code. and the problem in my code is that i cannot total and average the scores that i restore in my arrays...write a program that will process the exam scores of students in a exam.here are the requirements:- ...

displaying the results

Okay, so I have my program almost complete. I can get it to do everything except use the computeAverage. I know it works because if I hard code the arrays, I can utilize that and it will work. However, I am having to utilize what I pull from a .txt file and I can't figure out quite yet how to comput ...

Compiles,works, professors says it's wrong

//This program asks the user for the number of tests, creates an array based on that response//the user enters his scores and then the program lists the scores in ascending order, finds the average//and then finds the average of the scores with the lowest one dropped#include <iostream>#include ...

I need help!!!

My teacher gave us an assignment where she wanted us to write a program that would read test score data from a text file,drop the lowest test score,average the other three test scores, and output the data to a text file. I've spent three days trying to figure out how to drop the lowest test score. M ...

Super Urgent! I need help. Please!

Design and implement an algorithm to solve this problem; your solution should use user – defined functions. Do not access global variables. Use parameters! (Suggestions: int function to determine lowest of two numbers, void function to print the message) Use function prototypes; the source code fo ...

These arrays are killing me!

include <cstdlib>#include <iostream>#include <iomanip>#include <stdlib.h>using namespace std;void printintromessage ();void getUserInput (char& Y);int main(int argc, char *argv[]){const int numofgamesinseries = 3;const int numofplayersonteam = 4;int i, score[numofgamesins ...

Help printing from an array.

Here is the entire code;#include <iostream>#include <sstream>#include <cstdlib>using namespace std;const int MIN_SCORE = 0;const int MAX_SCORE = 300;const int numofgamesinseries = 3;const int numofplayersonteam = 4;void printintromessage ();void getUserInput(char& Y);int getInt ...

Array isnt working right, need help!

So here is the code:#include <cstdlib>#include <iostream>#include <iomanip>#include <stdlib.h>using namespace std;void printintromessage ();void getUserInput (char& Y);//void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i ...

How would I check for validity and max value??

#include <cstdlib>#include <iostream>#include <iomanip>#include <stdlib.h>#include <conio.h>#include <stdio.h>using namespace std;void printintromessage ();void getUserInput (char& Y);void calculations (const int& numofgamesinseries, const int& numofpl ...

Trying to obtain a number with a decimal

I am trying to write a program that takes a user submitted number of test, along with the test scores. Then I need to sort them in ascending order. (I've done all this). Now I need to get the average, but my getAvg function drops will drop the decimal and give me a whole number. What gives? Any help ...

Also need help with coding for a test score calculator.

I have the same assignment someone else ask help with. The assignment calls for a test score calculator that calculates and displays the score total, score count, and average score. If the user clicks the Display scores button, the application sorts the scores and displays them in a message box. The ...

Problem with array....

What I'm trying to do is to take 7 of the scores from judges and discard the lowest and the highest score then average five scores that remain after.I got to where I can get all of the scores, but I have no idea how to take the lowest and highest score and discard them.Please help me..Thank you! imp ...

Simple Output Anamoly

This program is to calculate the average, high and low score of a series of use inputs. The output I am getting is high, low, average, high, low. I have no idea why or how this can happen. Side note, I am aware the coding isn't very good but the program otherwise works.int main () // calculates test ...

Return Value with Pointers / Function Parameters

I would really appreciate if someone could tell me what is wrong with this function. When I execute the program it returns the memory address and not the calculated average. I have not included the entire program, there is a sort function and scores are entered by the user in Main. I tested Main and ...

Critique my Code!

guys, I'm currently in college for comp sci, and this is one of our homework assignments.I was looking for input on style and effectiveness, let me know if I'm starting any bad habbits that i need to stay away from, and where i stand on general knowledge of C++. This is an assignment from computer s ...

New to the forums... need some help...

everyone, I'm new to the forum. The name is Joe.So i'm trying to calculate the total points, program average, test average, course average, and letter grade for each student listed in a input text file... each student has 3 program scores and 3 test scores.... I can get the program to calculate the ...

Dynamic Arrays Homework & I need Help!

I have a problem with an Array & a module, Im not sure how to do this... I have a form where Students can enter their name, & grades under columns Homework, the arrays created Average the scores across for each student & down for each homework assignment.Now the instructor has written: N ...

Rounding Problem

Heres my problem:I created a method that returns a handicap in integer form. Before you can return it, however, you must cast it as an int. My problem arises in some cases where the handicap returned is 1 too high. I'm wondering where my logic may be wrong in some cases; so far.. I can't find the pr ...

need help with an array...

all, im having trouble figuring out how to add up all of the elements in an array... first of all here is my assignment... im basically prompting for 4 sets of data (name, ID, score, and grade) each set will create its own array. I also need the class average, which is where i am having trouble. to ...

Help with code about highest & lowest score in loops

Can anybody help me figure out how to fix this so it would come out the highest & lowest score???[code]:#include <iostream>#include <iomanip>using namespace std;int main(){double *score;double total = 0;double average;double max = 0;double min = 0;int testscore;int count = 1;cout ...

Help with code about highest & lowest score in loops

Can anybody help me figure out how to fix this so it would come out the highest & lowest score???:#include <iostream>#include <iomanip>using namespace std;int main(){double *score;double total = 0;double average;double max = 0;double min = 0;int testscore;int count = 1;cout << ...

loops and variables

im writing a personal program thats storing scores.The layout is done using Tkinter using labels buttons and entry widgets,however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, for m in range(1,10):self.input_score = Entry(frame,width=6)self.input_s ...

Array Help

I have to modify a Program that I previously wrote. I have to modify my sort function so that when a character is passed through it which is coded in main not given by a user it arranges it by that. Where I am at right now neither gets organized correctly for whatever reason. Here is my code and hel ...

Standard Deviation

I need to calculate the standard deviation for an array in my program, the array I need to calculate it for is the pgmavg and testavg everything else in my program works correctly./********************************************************************CSCI 240 - Assignment 7 - Spring 2009Progammer: Jus ...

Looping/Error Help

I have a couple of issues with my lab assignment for this week. I was wondering if you guys could help. I will post the assignment and then post my code thus far. Thank you.)Write a program that will display the menu below until user decide the quit the program. High Score Keepers0 - Quit1 - List Sc ...

Beginner's question, but frustrating nonetheless

I am trying to modify this trivia program to read scores from a separate text file and then add the scores to a running total if the user answers correctly. Here is my code so far:# Trivia Challenge# Trivia game that reads a plain text fileimport osdef open_file():print "Which trivia episode wo ...

Simple issue is getting on my nerves :(

HelloI'm new to java and i'm facing some problem... First code refers to File_Chooser class which works perfectly fine for me.../** To change this template, choose Tools | Templates* and open the template in the editor.*/package statguis;/**** @author Umar Ali*/import java.awt.*;import javax.swing.J ...