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

 
 


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

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
View Answers









Related Pages:
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
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
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 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
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
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> <
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
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
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 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   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
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
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
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
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
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
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
Help
Help  Hi; Can anyone help me to solve this errors. I use J2ME(wirlesee Toolkit 2.5.2. for CLDC Project "SlideImageMIDlet" loaded Project settings saved Building "SlideImageMIDlet" C:\Documents and Settings\???? ?????\j2mewtk
look up values help needed
of 2.55 as 212.5kgs is between 195.5 and 220.5 can anyone help how I can do this please? Kind regards Harry...look up values help needed  Hi, I have a table that returns rows
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
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
please help me.
please help me.  I have three table in mysql,and i hava create a excel sheet and add this sheet.but my question is in every sheet i can display one one table result.how can i do
help me please
help me please  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 to this problem..
please help me to this problem..  i wrote a program like keyboard and i used [JTextFiled] means that just you can write inside the program (i.e inside the JTextField) but i want to make this program to let me write where i
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
please help me here
please help me here  please show me how can this show the right output that i need please continue doing this program using only if else and do while please please" here is the problem Automatic Teller Machine [B] Balance [D
please help me here
please help me here  please show me how can this show the right output that i need please continue doing this program using only if else and do while please please" here is the problem Automatic Teller Machine [B] Balance [D
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
Java help needed
Java help needed  Create a web application that will allow a user... (or by typing in the letters in the labels). Each letter is a separate button that can... as needed by the number of characters of the chosen word. 2. Add 4 buttons or menu
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
Can someone help me with this?
Can someone help me with this?  I have this project and i dont know how to do it. Can someone help me? please? Write a java class named "PAMA..., Multiply, Divide) Help me please! Thanks in advance!   import
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
please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions
HQL Statement: Please help me
= Product.productGroupVersionId and Product.lobId = ? Can you please help me equallent HQL...HQL Statement: Please help me  Select ProductFamily.* from ProductFamily, ProductGroup, Product where ProductFamily.productFamilyVersionId
Please Help - JSP-Servlet
Please Help  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your response.. You told me that its difficult to handle the problem.. Ok,Let me try my hands on it.. The help i need is can u please tell me
help needed for a program - Java Beginners
help needed for a program   i am having trouble understanding on what to code, so can some 1 help me out here. thanks in advance. Part I Write, compile and execute a Java program that displays the following prompts
Help me please!!! - Java Beginners
Help me please!!!  im badly needing the complete code for this project in java!!! can you please help me???!!! it is about 1-dimensional array... the answers 8Hours from now!!! Kindly help me!! please!!please!!! NOTE
urgent help for inserting database in a project
urgent help for inserting database in a project   I need some urgent help i have made java application for conducting a quiz which displays 25 mcq's... help me out quickly i am searching a lot..creating teh database si ok
urgent help for inserting database in a project
urgent help for inserting database in a project   I need some urgent help i have made java application for conducting a quiz which displays 25 mcq's... help me out quickly i am searching a lot..creating teh database si ok
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
java please please help
java please please help  Dear Friends plz help me to complete...[] to HashMap so that i can seperate key and value using Map.Entry.Please help me!  ...:100.But should not use StringTokenizer but can use any other collection like
help me - Java Beginners
help me  helo guys can you share me a code about Currency Conversion.Money will convert according to the type of currency.would you help me please... into 2 decimal places sample 1.25) Mexican_________ guys help me..thank
PHP help needed - Development process
PHP help needed  This is my code that I am using for search engine, can any body answer how to cheange the code if I want limited and per page result... not entered search details. Please go back and try again.'; exit; } if (!get
please help me.
please help me.  How to read a properties file in java with a suitable example. Please send me. Thanks Trinath   Please visit the following link: Java read properties file
please help me.
please help me.  Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.