Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


young nino
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
0 Answer(s)      2 years ago
Posted in : Java Beginners


The Task Write a class whose objects will represent students. The class should have
three fields for representing a student‚??s name, this student‚??s coursework mark
(out of 100 )and this student‚??s exam mark (out of 100). The marks will be a positive integer and should initially be set to zero. The constructor should have one parameter, a student name.
There should be an accessor method for returning the student name.
There should be two mutator methods:
one for setting the coursework mark and one for setting the exam mark. There should
also be a method that returns ‚??pass‚?? or ‚??fail‚?? depending on whether or not the combined coursework and exam marks (add them up and divide by two) are greater than or equal to 40. Instructions Do each of the following tasks in turn ‚?? the result should be a functioning program that will earn you full marks. Remember to keep back ups of your
program in case you change your mind about something and want to go back to
an earlier version. Always make sure that your work compiles. If it doesn‚??t
compile then you won‚??t earn any marks.

  1. Create a new project. Then create a new class called ‚??Student‚??.
  2. Add fields for name, coursework mark and exam mark.
  3. Write a constructor with one String parameter that initialises the name
    attribute to be equal to the value of the parameter and additionally sets
    the two marks to 0.
  4. Write a method called ‚??getName()‚?? that returns the student name.
  5. Write a method called ‚??setExamMark(int mark)‚?? that has one parameter
    and will set the exam mark to be equal to the value of this parameter.
  6. Write a method called ‚??setCourseworkMark(int mark)‚?? that has one parameter and will set the coursework mark to be equal to the value of
    this parameter.
  7. Write a method called ‚??getResult()‚?? that returns ‚??pass‚?? if the overall mark
    is greater than or equal to 40 and ‚??fail‚?? otherwise. The overall mark can be calculated by multiplying both the exam mark and the coursework
    mark by 0.5 and then adding them together.

Advertisement
View Answers

Related Tutorials/Questions & Answers:
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP   The Task Write a class whose objects will represent students...?? otherwise. The overall mark can be calculated by multiplying both
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP
CAN ANYONE SOLVE THIS FOR ME. URGENT HELP NEEDED. PLEASE HELP   Write a class whose objects will represent students.The class should have three... to 40 and √Ę‚?¨Ň?fail√Ę‚?¨¬? otherwise. The overall mark can
Advertisements
urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks
Please help me urgent...........
Please help me urgent...........  For what kind of a problem would use a Tree Set and not a Tree Map For what kind of a problem would use a Tree Map and not a Tree Set   Hello Friend, If you want to display the list
Can any one please help me in this ,,,,,,, need java code for this ,,,,please anyone
Can any one please help me in this ,,,,,,, need java code for this ,,,,please anyone  The Airport Valet Parking Company (AVP) is a company which provides a convenient medium cost parking solution to users of a local airport. Key
its very urgent please help me
its very urgent please help me  how can i retrieve all images from ms access database and display in jsp pages
A few questions related to developing a blog....can anyone please help me out??
A few questions related to developing a blog....can anyone please help me out... jsp.I have a few questions.... Can anyone tell me if we can insert images...??If it is possible then how is it done?? If we can insert images in the textarea then how
please help me to solve this question about array
please help me to solve this question about array  write a program...() > 1) System.out.println("It is not character. Please enter...(); if (brr.length() > 1) System.out.println("It is not character. Please
urgent help needed!!!!
....please help me.... 1)state.jsp: <%@page import="java.sql.*"%>
urgent help needed!!!!
access country and state....please help me.... 1)state.jsp: <%@page import
Please help me... its very urgent
Please help me... its very urgent  Please send me a java code to check whether INNODB is installed in mysql... If it is there, then we need to calculate the number of disks used by mysql
hello. can anyone help me with my java project, using jcreator?
hello. can anyone help me with my java project, using jcreator?  this is how it goes.. we are to develop a GUI of a certain form, in my case this one... just couldn't solve it.. alot of errors.. pls do help... thanks
can anyone help me to implement strength of the password - Security
can anyone help me to implement strength of the password  hi.. i have to implement password strength detection algorithm. How can i use dictionary in linux system
it is a linux program is there anyone who can help me out with it?
it is a linux program is there anyone who can help me out with it?  Write a Bash script that prompts the user for a user-ID and displays the corresponding user√Ę‚?¨‚?Ęs login name, owner√Ę‚?¨‚?Ęs name, and his/her home directory
help me to solve this question
help me to solve this question  Write a program that inputs a series of integers into an array. The numbers are in the range 0 to 100. Calculate and display : a) The Largest number b) The Smallest Number c)The sum of the numbers
it is a linux question is there anyone who can help me out with it?
it is a linux question is there anyone who can help me out with it?  Write a script that accepts three numbers as parameters. Your script should add the first two numbers together and then call a second script that accepts two
help me to solve this problem..
help me to solve this problem..  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class...; } } Write a program in a class TestBook that can do the following: Read
help me to solve this question...
help me to solve this question...  Given below is a class definition for Book. Type and compile the class, and answer the following questions... price; } } Write a program in a class TestBook that can do the following: Read
help me to solve this question
help me to solve this question   A user needs to key in data... name, School, course code, course name, session, semester A user can edit the data... code, course name, session, semester A user can display all the records
Please help me to solve these programs in Python - Java Beginners
Please help me to solve these programs in Python  1. Write a program that prints an n-level stair case made of text. The user should choose the text character and the number of stairs in the stair case
could anyone please help with the code.
could anyone please help with the code.  protected void doPost...(request, response); } } could anyone please check the code. If i enter the correct username and password it redirects me to the correct page but if I enter
urgent please, help!
urgent please, help!  how to make jTable unclickable and have unmovable columns, thanks in advance   import javax.swing.*; import java.awt.*; public class SimpleJTableExample{ public static void main(String[] args
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
pls help me it urgent
pls help me it urgent  hey, pls help me i want to know that can we call java/.bat file from plsql/proceudre /trigger
Help needed for Form Validation please help!
Help needed for Form Validation please help!  I have created a page which has login as well as Signup fields. I validated the login part by using jsp... incorrect Username/password combination. So how can I make the jsp code confined
Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok... With B Team when A Team Play With B Team Again Then Generate Error. I Am Solve... Are There Then It's Large Codding So I Need To Help To Another Way To Do
please help me.
please help me.  Please send me a code of template in opencms and its procedure.so i can implement the code. Thanks trinath
urgent help needed in JDBC AND JAVA GUI - JDBC
urgent help needed in JDBC AND JAVA GUI  my application allows.... the student can withdraw ,deposit and perform balance enquiries with the account, but i want any one to help me convert from scanner to java GUI for this code
ajax code please help to solve this........
ajax code please help to solve this.  in this i am trying to get data... null; } please help me when i am running this it show an error...;<a href="help.jsp">help instruction</a></li> <
please help me.
please help me.  I have a jsp page under that i add a list box under i get the countries through my database. so how can i do
Advertisements
 

 

 

DMCA.com