Need a lot of help please

so for my project i have to create multiple classes to create a gradebook. i know half of this probably doesn't make sense, but if anyone could help at all i would appreciate it. pretty much the name of each method tells what it is meant to do. none of this will compile and i am missing a lot.
public class Assignment extends Student
String name;
double maxScore;
int numStudents;
int maxStudents = 100;
private Student [] students = new Student [maxStudents];
private int n = 0;
Student student;
public Assignment(){
this.maxScore= 100;
this.numStudents = 0;
public Assignment(double maxScore, Student [] students){
this.maxScore= maxScore;
this.students = students;
public boolean addStudent(Student student){
for(int i=0; i<students.length; i++){
if(students[i] =null){
students[i] = student;
return true;
return false;
boolean setScore(Student student, double score){
this.score = score;
double getScore(Student student){
return score;
double getScoreMax(){
int scoreMax = Integer.MIN_VALUE;
for(int index=0; index<students.size(); index++){
if(students.get(index)>scoreMax)
scoreMax=students.get(index);
return scoreMax;
double getScoreMean(){
double scoreMean = 0;
int sum = 0;
for(int index=0; index<students.size(); index++){
sum = sum + students.get(index);
scoreMean = sum/2;
double getScoreMedian(){
double scoreMedian = 0;
scoreMedian = students.get(Math.floor(students.size()/2));
return scoreMedian;
public class Course extends Assignment{
String title;
Professor prof;
int k;
int maxStudents = 100;
Student[] students = new Student[maxStudents];
Assignment[] hws = new Assignment[k];
Course courses;
Assignment assignment;
int total=0;
int gradeNum= 0;
int grade;
double average;
Course(String title, Professor prof){
this.title = new String();
this.prof = new Professor();
Course(String title, Professor prof, Student[] students){
this.title = title;
this.prof = prof;
this.students= students;
boolean addStudent(Student student){
for(int i=0; i<students.length; i++){
if(students[i] =null){
students[i] = student;
return true;
else if(i >= maxStudents){
return false;
void dropStudent(Student student){
for(int i=0; i<students.length; i++){
if (students[i] ==student){
students[i] = null;
Assignment addAssignment(double maxscore){
for(int i=0; i<hws.length; i++){
if(hws[i] =null){
hws[i] = assignment;
return assignment + maxScore;
void addAssignment(Assignment assignment){
for(int i=0; i<hws.length; i++){
if(hws[i] =null){
hws[i] = courses;
double getCourseGrade(Student student){
          while (gradeNum <= maxStudents )
total = total + grade;
gradeNum = gradeNum + 1;
if ( gradeNum != 0 ){
average = (double) total / gradeNum;
public class Utilities{
     int total = 0;
int gradeNum = 0;
int grade;
double average;
     Student student;
Professor professor = new Professor(0, name);
Student student = new Student(0, name);
public static double computeSemesterGPA(Student student, Course[] courses){
while (Student student)
total = total + grade;
gradeNum = gradeNum + 1;
if ( gradeNum != 0 ){
averageGradesl = (double) total / gradeNum;
public static void printObject(Person person){
System.out.println("Student:" + student.toString());
System.out.println("Prof:" + professor.toString());
public static void printObject(Assignment assign){
while (gradeNum <= maxStudents)
total = total + grade;
gradeNum = gradeNum + 1;
if ( gradeCounter != 0 ){
averageScoreonassignment = (double) total / gradeNum;
System.out.println(students [] + average);
}

mm3mm wrote:
none of this will compile and i am missing a lot.Stop right now, scrap this code and restart as this line above alone tells me that your going about your coding all wrong, that you're trying to add code to already bad code. What you need to do is this:
1) Plan first. Before committing a single line of code, write a general outline for your program and then flesh it out (all on paper).
2) When you start writing code, do it in small bits at a time.
3) After adding a small bit of code (a few lines) try to compile the code to see if there are any compile errors.
4) Here's the important part: if you find any compile or run errors, then stop, do not add any more code, but instead fix the code you have. The key is that you should never add good code to bad.
5) Then only after the code is fixed, continue with step 3) and loop this process until done.
Best of luck.

Similar Messages

  • I had downloaded a pair of albums, and i can´t see it on my iTunes library, neither in downloaded..., i had downloaded a pair of albums, and i can´t see it on my iTunes library, neither in downloaded... I need a lot of help please.

    i had downloaded a pair of albums, and i can´t see it on my iTunes library, neither in downloaded...,. I need a lot of help please

    Do the tracks show up in the Recently Added playlist? If so then something has gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem. (Probably adding anything would do.)
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

  • DOES ANYONE KNOW HOW I CANT DELETE MY APPLE ID I JUST GOT A NEW AND NO LONGER NEED THE OLD 1 HELP PLEASE

    DOES ANYONE KNOW HOW I CANT DELETE MY APPLE ID I JUST GOT A NEW AND NO LONGER NEED THE OLD 1 HELP PLEASE

    As far as I know they can't be deleted, just remove any personal info from it (credit card details etc) and stop using it.
    If you downloaded any content via it then you will need to remember it and it's password, as content is tied to the account that bought/downloaded it, so if you move to a new computer you'll need to authorise the account on it if you want to use any of its content there (or if you bought apps with it you'll only be able to download updates to them via that account)

  • I have forgotten my password and misplaced my Installation disc and need to reset password, help please! btw are the intsallation disc unique to each computer or could i borrow a friends?

    I have forgotten my password and misplaced my Installation disc and need to reset password, help please! btw are the intsallation disc unique to each computer or could i borrow a friends?

    Call Apple to get replacement DVDs > http://support.apple.com/kb/HE57

  • PCI 6036E/SC 2075, can read only from ch 2, need to use both. help please

    I have interfaced DAQ PCI 6036-E with SC2075. I wrote a code to get data from analog input chl 1 and ch 2. I am getting data only from ch1. cables and hardware connected to sc2075 had been tested and are working properly. help please .Also, is it possible to test those channels from measurement and automation explorer and how ?.thanks

    Greetings,
    Yes, it is possible to test these analog input channels in Measurement & Automation Explorer (MAX). To do so, expand Devices and Interfaces, right-click on the PCI-6036E, and select Test Panels. On the Analog Input tab, you can set the Channel control to any of the device's channels. If both CH1 and CH2 function correctly in MAX, you will need to troubleshoot your code.
    Good luck with your application.
    Spencer S.

  • I cant create an icloud account, i dont have airdrop and siri please i need a lot of help. using iphone 4s

     

    Sorry but I don't know a solution for error 403.  There are a number of posts on this you can read through and perhaps you'll find one.  See https://discussions.apple.com/search.jspa?peopleEnabled=true&userID=&containerTy pe=&container=&spotlight=false&q=error+403.

  • ITunes is black, need a lot of help!

    I just downloaded the new iTunes 7.7 today. When I opened it up, the whole screen is black. Some of the words (like File, Edit, Controls...<on the top>) are in white, but everything else on the screen is black. I tried to minimize and maximize, but nothing changed. I restarted my computer..then I uninstalled and reinstalled, but still nothing. I am having problems, and I am getting so frustrated. Please, If you know anything please help. (I have looked at other sites for this problem, but still no help. I tried to go to compatibility and disbling some stuff as one site told me to, but it did not help.)

    mm3mm wrote:
    none of this will compile and i am missing a lot.Stop right now, scrap this code and restart as this line above alone tells me that your going about your coding all wrong, that you're trying to add code to already bad code. What you need to do is this:
    1) Plan first. Before committing a single line of code, write a general outline for your program and then flesh it out (all on paper).
    2) When you start writing code, do it in small bits at a time.
    3) After adding a small bit of code (a few lines) try to compile the code to see if there are any compile errors.
    4) Here's the important part: if you find any compile or run errors, then stop, do not add any more code, but instead fix the code you have. The key is that you should never add good code to bad.
    5) Then only after the code is fixed, continue with step 3) and loop this process until done.
    Best of luck.

  • Updated & now it can't be read, need to restore (?) Help please?

    Please help. This may sound stupid, but I must be tech. challenged. I just got my ipod for Christmas & I have spend night after night reading discusions trying to get it to work. My husband keeps reminding me about that 1. Initial problem, I could not transfer songs. Never resolved that 1, but at least it WAS showing up in itunes.
    Now, for some reason, I've updated software (that was new to begin with) & now my ipod is not able to be read. It says restore factory settings... there was never anything put on it yet. This thing is brand new & for the price, I expected to plug it in & it does the work. Everything I read is extremely detailed. How can I fix this & get it running on "everyday language" terminology? I was unable to open the manual I downloaded (tech. challenged).
    Dell   Windows XP   ipod 30GB w/video

    Thank you for helping! Another late night!
    Looks like there is a conflict with different versions of ipod up-dater & itunes. My problems started when I updated from a 10/05 ed. to an 11/05 ed., thus my "ipod manager internal error". After I used my disc to reinstall, I was able restore my (still empty) ipod. Now it is showing up in itunes again! Hurray!! It will be a long time before I update again. I wonder if it is really necessary when it is brand new?
    Thank you again! Now I just need to figure out how to put my 3rd party music onto my ipod. That was my initial problem I thought I was fixing by updating. It looks like it is easier to move music from my own CD's. I may be cancelling my music contract with the 3rd party.

  • Restore needed but wont restore HELP PLEASE

    my iphone keeps saying restore needed, iphone can not make calls or recieve calls restore on itunes phone says no service all the time, but iphone will not restore on itunes loads half way then stops, ive even tryed to restore settings on my phone manually but then my phone just keeps doing the apple symbol then turns off and on constantlly PLEASE HELP what do i do

    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download
    kimgaspar wrote:
    , but iphone will not restore on itunes loads half way then stops,
    Are you using windows ? Any Error Messages or Alerts ?

  • Can't import xml file: "need translation document/template" - - help please

    Hi there,
    Someone edited a project with fcp 5.1. I have fcp 5.0. I've been asked to tweak the project (for no charge, which is fine with me; it's for a tiny 3rd-world charity organization).
    He sent me the project files as xml documents... but when I double click on them I get a window saying they "need translation document file", or translation template. Nothing in my fcp folder or app seems to do the trick.
    Can someone please advise me on this?
    I did a search before posting, and noticed that someone advised someone else that xml version 2 is the better xml file to work with. I don't know whether the xml files this guy sent me are v. 1 or 2.
    Any help would be very much appreciated!
    Malcolm

    Thank you Studio X. I've just sent off the request. I'll let you know if it works.
    IF it doesn't work... should I upgrade to FCStudio2, do you think? I didn't want to have to do that (I'm not being paid for this work, so I don't really want to go out of pocket), but if this XML2 thing doesnt' work, I'm not going to be able to do this project at all, it would seem. Which I would feel badly about.
    The other thing is, I've been sort of thinking that some day I'm going to have to get FCStudio2, so maybe I should just push that day up a bit.
    It would really bother me, though, if I go to the expense of getting FCStudio2, and then I still can't open these files.
    Cheers,
    Malcolm

  • Don't understand how to do the proxy setting to configured with computer need phone no. for help Please!

    try and open a web pg. that friend sent me it keeps coming up on screen in box says, The Proxy server refusing connections Firefox is configured to use a proxy server that is refusing connections , Check t proxy settings to make sure that , they are correct,Check network to see if proxy server is working
    okay so how do I fix this cause really don't understand what this means , Help! to fix as I am missing a lot of information I would like to read .KMH

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select "No Proxy" if the default "Use the system proxy settings" setting doesn't work.
    See "Firefox connection settings":
    * https://support.mozilla.com/kb/Firefox+cannot+load+websites+but+other+programs+can

  • Early 2007 Macbook...I need a lot of help and am computer illiterate

    I have an early 2007 white MacBook 13". I have used it since I started college in 2007. I know I have accumulated a lot of photos and music on it, all of which I am sure contribute to it running incredibly slow. I am horrible at navigating these boards as I do not know how to word my questions in a way that even makes sense....so here are my questions (the simpler the answers the better!) (and I apologize in advance because they have all probably been answered):
    1. What can I do to make my computer run faster? I have read about RAM but I don't even understand what RAM is...is that what I need? Would an external hard drive help at all? I have tried deleting files and saving pictures onto USB drives and then deleting them. I also have repaired the disk utilities multiple times. None of that helped. I know there are tons of posts on here about that stuff...but they are so jumbled and I get so lost as to what I've done. Obviously I have read some posts because I did the disk utility thing.
    2. What is the highest OS X update my computer can handle? I read I can't have Mountain Lion due to my computer basically being out of date... but can I install Lion? And also, can I skip an update (for example go from Leopard to Lion)?
    Again sorry for the repetition. I am hoping people on here are nice enough to just answer the questions without making me feel stupid for being repetitious. Any help would be appreciated.

    Asking questions is good, don't feel bad.
    Taking it backwards, your system cannot run 10.8 Mountain Lion.
    It can support Lion, however, the performance may or may not be great. Lion requires 2GB of memory (AKA RAM), and many have found it needs 4GB to run well. While you can install 4GB on your late 2006 MacBook, the system will only access 3GB. This article talks about upgrading from 10.5 Leopard to 10.7 Lion. Otherwise, you'll need 10.6 Snow Leopard to access the App store. If you want Lion, call the Apple online store, which in the US is 800-MY-APPLE and buy a download code, which you'll use on the App store. Lion 10.7 is $29 and Snow Leopard 10.6  is $19.99.
    Your system can easily support OS X 10.6 Snow Leopard. Call the Apple online store to order it. 10.6 requires a minimum of 1GB, and 2GB, or more, will give better performance.  OWC and Crucial are good sources for memory. This Apple note tells how to replace the memory, and this video shows you how to do that.
    Now, question 1. Two keys to speed are RAM or memory and free disk space. Discussed RAM already. Disk space the general rule is that you need 10% or more of the space free for systems usage. When you've deleted files, you've probably emptied the trash. Some have found using OnyX has helped with performance (you want the Leopard version). With any disk maintenance program, you should have a good backup before using it.
    See this FAQ on OS X performance.

  • Film Student Needs A Lot Of Help!

    Okay, first of all, let it be known that I am a complete newb. Also, I may sound ignorant as there are several other "Camera Help" posts, so I am sorry for that; however, this topic is fairly specific. Any help/recommendations are welcome.
    I have not bought a camera (I'm looking for a MiniDV digital camera that produces film-like quality video) OR a laptop computer.
    Computer I am looking at: MacBook Pro 17-inch 2.16Ghz Intel Core Duo.
    Camera(s) I am looking at:
    Panasonic AG-DVX100B Mini-DV Cinema Camcorder
    http://www.prestigecamera.com/product~id~psagdvx100b~showmore~showmore.htm
    OR
    Sony DCRVX2000 MiniDV Digital Camcorder
    http://www.digitalsaver.com/stores.asp?productid=DCRVX2000
    I have no idea whether this is a good combination and whether they are compatable.
    Also, I am going to be a film student this fall, and I am wondering if the MacBook Pro 17" 2.16 GHz is going to be suffecient for me (I have heard that Macs are the way to go for video/film editing).
    ANY INFO/HELP/RECOMMENDATIONS AT ALL ARE GREATLY APPRECIATED.
    Thank You.
    ::Rufio::

    funny, I do have a very different opinion… ;-)
    * iMovie does NOT handle NTSC/PAL footage in progressive mode… you are able to import such stuff, but adding a disolve or a title - swoosh, THAT part is interlaced… (to my knowledge, … maybe Karl/Matti can give of some insight...)
    => investment into FCPro...
    * I do like the new überMac… but whatfor, concerning movie making? … probably a hasty MTV producer needs tons of effects rendered faster then light… but as a student, I would invest more in other things (good point about mics) .
    should I mention, my ol' friend, my G3/500 (that's Mega, not GigaHz) iBook does editing with iMovie....?
    * HDcameras are interesting, in case you want to transfer video => 35mm film, because of higher res
    I would …
    * look for an old G4/5/dual/quad, incl. a superdrive , add 2GB RAM, screw in 2x 250GB HDs, get another firewire case for another, min. 250GB drive
    * iMovie is nice for me, the average Daddy-does-movies guy, but as a film student, I would immediately jump into the cold pond and grab FCE/P…
    * I worked once a project with the VX1000 (… yepp, a while ago, last century…) - an outstanding camera to its time, one of the first 3ccd'er, used in many broadcast projects, excellent pic quality; get a pointer mic, get a (few) wireless lavalier (+ext. hardware mixer)
    * invest in software: FCE/P, PhotoshopElements (video is RGB only), think about AfterEffects, think about any 3/4D app, Maya has a learner edition…
    iMovie is fun, you learn the basic editing rules of Sergej Eisenstein with it...
    and: I like the attitude, …a MiniDV digital camera that produces film-like quality video…

  • Need a lot of help

    Sorry for the ignorance of this post, but I am really new to this. I just finish installing 2.0. I need to get it to integrate with E-directory and GroupWise. I know that there isn't just a plugging or it can be just configured through a wizard. I have asked for this enhancement since 1.4, but to no avail.
    Anyway I was told there is a tool that does help migrate from Novel to Beehive, but I have had no luck finding or what to do.
    Any help would be great.
    Thanks Alan

    Hi Alan,
    The Beehive Migration Tool is available via Support Request on Oracle's support web site, but it depends what you are trying to migrate/integrate
    David

  • Need a lot of help with Kinetic Systems 3988 LabView VIs.

    I have a Kinetic Systems 3988 CAMAC Crate Controller. I am using the KS3988 LabView 5.1 set of VIs to communicate with the device. I downloaded this set of VIs from the NI web site. I'm new to LabView, so I'm having great difficulty. Virtually all of my commands result in time outs. Has anyone made simple LabView applications using the KS3988 set of VIs? I could really use them.

    Hello,
    I was unable to find any helpful application development information on the NI website regarding the 3988 VIs, but I did a search on the Internet for "3988 LabVIEW" (without the quotes) and several webpages came up (some in German) for some companies that seemed to be using the 3988 VIs in their applications. I recommend you perform a web search for more information on resources that could help you with using these VIs.
    I hope this suggestion proves helpful. Have a pleasant day.
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

Maybe you are looking for

  • PI 7.1 XML messages are not getting archived.

    Hi Experts, Currently I am wotking with PI 7.1. I am trying to archive PI messages from PI Production server,and also maintianed the following parameters in SXMB_ADM. ARCHIVE PERSIST_DURATION ASYNC 1 1 DELETION PERSIST_DURATION ASYNC 1 1 DELETION PER

  • PDF in PDF/A konvertieren

    Wenn ich ein PDF in ein PDF/A umwandeln möchte, dann gibt mir das Acrobat XI nicht die Wahl "PDF/A" auszuwählen, da es dieses gar nicht anzeigt. Was tun?

  • Dual control on sensitive fields change

    Dear Expert i would like to understand the implementation steps for dual control function. is there any complete guidance that able to share? i have the following questions too: based on my study, i don't see where is the control on this dual control

  • Uninvoiced Receipt Reports

    Hi All, We have a customization, where in the uninvoiced receipt report we need to show the receipt date as well as receipt number. Can anyone tell me the screen in the application wherein I can get the receipts (after a purchase order is received) a

  • Hi how can i change the lenguage of my photoshop interface in english instead of spanish

    Hi how can i change the lenguage of my photoshop interface in english instead of spanish