How do i finish this question?

hello, I have an assignment due today, but after working for about 1 week, i could still not finish
the question, since I am very new and lagging in class, as I am taking my time to understand the subject... Can anyone help me finish this assigment? reply me ASAP. Many thanks.
Here is the question:
4.1 The Student class
Create a file called ' Student.java' and in it define a class called Student which has the following attributes:
a String variable which can hold the student's name
a double variable which can hold the student's examination mark
Both of these variables should be declared 'private' so that their values can only be manipulated by methods inside the class.
In the Student class, define public methods as follows:
A constructor method which accepts no arguments. This method should initialise the student's name to 'unknown' and set the examination mark to zero
A constructor method which accepts two arguments - the first being a String representing the student's name and the other being a double which represents their examination mark. These arguments should be used to initialise the state variables with one proviso - the exam mark must not be set to a number outside the range 0..100. If the double argument is outside this range, set the exam mark attribute to 0.
A reader method which returns the student's name.
A reader method which returns the student's exam mark.
A writer method which sets the student's name.
A writer method which sets the student's exam mark. If the exam mark argument is outside the 0..100 range, then the exam mark attribute should not be modified.
A method which returns the student's grade. The grade is a String such as "HD" or "FL" which can be determined by the following table:
Grade Exam mark
HD 85..100
DI 75..84
CR 65..74
PS 50..64
FL 0..49
4.2 Client code program.
Write a Java program in a file called ' TestStudent.java'. Make sure you save this file in the same directory on your file system as the file ' Student.java'. In the main method of ' TestStudent.java', write code to do each of the following tasks:
Create a Student object using the no-argument constructor.
Print this student's name and their examination mark.
Create another Student object using the other constructor - supply your own name as the String argument and whatever exam mark you like as the double argument.
Print this student's name and their examination mark.
Change the examination mark of this student to 50 and print their exam mark and grade.
Change the examination mark of this student to 256 and print their exam mark and grade.
4.3 Notes
The program ' TestStudent.java' need not be complex as it is simply being used to test the operation of the Student objects. If you wish, you can make the program interactive (by using KeyboardReader), allowing the user to enter the name and exam marks, but this is optional.

Actually I think that thread got rather confused at times and may not be the best use of your time.
Post some of what you have done, point out the bits you are having trouble with and ask some specific questions. You'll get some helpful answers.
If you really can't get started you need to go back to your tutor and ask for some extra tuition to get you sorted on the basics.

Similar Messages

  • HT204053 How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    How can I delete my iCloud account which I do not remember anything about the information that I entered about 4 years ago. It always asks my birth date but it seems I did not enter my correct date how can I bypass this question???

    You cannot delete the account from the server (partly to prevent the username from becoming available again and some-one else using it to pretend to be you).. Having disengaged your devices from it, go to http://icloud.com and delete any data in there such as contacts and calendars. Then just ignore it.

  • How can I continue downloading free applications?i already have free Apple ID but it kept on showing "fill up credit cards"how can I avoid this questions?

    Please help me on how to download free applications,I already have a free apple id

    You need a valid form of payment associated with your Apple ID. This link is to an Apple support page describing the valid forms of payment.
    http://support.apple.com/kb/HT5552

  • How can i do this question?

    hi friends ;
    my teacher gave a project for final assignment ,but idont know how do it
    plz help me i dont have any idea about question
    question :
    Select peaple in groups of three from n ( n= 10 for example) peaple randomly
    Mach them with only one random chose of options like A,B,C etc Until you run
    of peaple or options. list these grouped peaple with their option in the fron panel.
    You may want to increase options so make your chooses to be changed
    who can tell me hw can do it
    plz help me
    Message Edited by ftsdfdf on 01-11-2008 02:57 PM

    Unfortunately, there's an unwritten policy on these forums to not provide answers to homework problems because... they're homework problems, intended for you to figure out.
    Suggestion: Sketch it out on paper first. In other words, start with a small group, and draw out the various possibilities. You should get to answer soon enough.
    Message Edited by smercurio_fc on 01-11-2008 05:44 PM

  • TS2537 How do I delete this question?

    I figured out how to solve my other one myself and I can't figure out how to delete this post.

    You can't, the mods have to do it.

  • How would I do this Question

    Hello and thanks for your time. The program I am trying to develop is something that would calculate the start value of a gymnastics routine. Basically there are two components to it:
    Firstly there is a drop down menu with a long list of different gymnasics moves, that move is assigned a point value, the point values are added up to create the total start value of the routine.
    Secondly I want a text box of sorts that would list all the different moves that the user entered. Perhaps under the drop down menu an "Add" button of sorts to add the selected item to the list.
    I have the drop down menu, the point counter, and the GUI all developed, i just have to add that second component to the program and I am having difficulty wraping my mind around what I would use to do something like the second component I want.
    Thanks for your help and advise, it is very much appreciated!
    -Ian

    I like the idea of a JList. What do you mean by a
    remove function though?Have you even seen a GUI where you are asked to choose items from a list? Often it is set up like this: a list of the possible choices on the left, your selection list on the right and arrow buttons (<--, -->, and more) in between. You select items on either list and then press the appropriate arrow to move the selected items to the opposite list. Button --> adds items to your selection; button <-- returns selected items to the choice list.

  • FRM-92101 HOW I CAN FINISH THIS ERROR

    APPLICATION.LOG IS SHOWING BELOW MESSAGE WHAT I DO PLEASE HELP
    RGDS
    TAHIR
    06/08/06 13:20:49 formsweb: Forms session <19> aborted: unable to communicate with runtime process.
    06/08/06 13:20:49 formsweb: Forms session <19> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
         at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Thanks for all the problem is resolved
    Rgds
    TeeJay
    Message was edited by:
    TeeJay

    Hi TeeJay,
    On the other hand, you might first check whether there are any differences in you development and runtime environments.
    More specifically, I mean that if you have compiled your forms against a newer library set than the runtime environment uses, this could lead to the error message you mention.
    I have run into situations where pll files were actually used in the runtime environment, when running against a OC4J session on your PC. So, make sure you set the forms_path for both runtime and development exactly right.
    Also, make sure that your environment is 'clean': put all pll's and plx's into one directory on your PC, and set your forms_path to this directory only. Add object libraries or reference forms, if you use those, and place all your fmx-files into it, as well.
    Re-compile all you libraries and forms against this environment, and run your application.
    If the problem still persists, contact Oracle Support.
    Good Luck!
    Remco

  • How do I finish this Create Smart Folder script?

    I've gotten most of the way on a homemade file tagging system. My Automator Service gets files, asks what to tag them, applies the tags to the Spotlight Comments, and then asks if you want to make a Smart Folder that finds one of your new tags.
    If you do, it runs a script. The script asks what tags you would like to populate the Smart Folder, initiates a new smart folder based by appending the tags to "comment:" in the Spotlight search. But that's where I'm stuck. I can't figure out how to automate clicking the darn "Save" button to create the Smart Folder.
    And feel free to co-opt my tagging strategy, it is working famously for a team of 5 in shared Dropbox folders.
    Here's my Applescript. See the solitary comment in my code below for where I think I need help.
    ====================
    display dialog "Which tags should be queried to populate the Tag Folder?" default answer "separate tags by spaces" buttons {"Cancel", "Continue"} default button 2
    if (button returned of result) is "Continue" then
    set the clipboard to "comment:" & text returned of the result
    tell application "Finder" to activate
    tell application "System Events" to tell process "Finder"
    keystroke "n" using {command down, option down}
    keystroke "v" using command down
    end tell
    tell application "Finder"
    display dialog "What shall we name the Tag Folder?" default answer "" buttons {"Cancel", "OK"} default button 2
    if (button returned of result) is "OK" then
    set the clipboard to text returned of the result
    tell application "Finder" to activate
    tell application "System Events" to tell process "Finder"
    # How do I tell Finder to click that Save button?
    delay 0.5
    keystroke "v" using command down
    delay 0.5
    key code 36
    end tell
    end if
    end tell
    end if
    =================
    Message was edited by: kerryspyder

    My pleasure. Thanks for the star.
    And here's a bonus that might some day prove useful:
    *            key code 36*
    *            if sheet 1 of sheet 1 of window 1 exists then*
    *               click button "Replace" of sheet 1 of sheet 1 of window 1*
    *            end if*
    *         end tell*
    Message was edited by: Pierre L.

  • I don't know how to ask this question... Can you help?

    I'll state right from the get-go, this is NOT a Premiere problem.  This is a Windows problem, but I don't know exactly what it is.
    Why I'm I posting it here?  It's in Premiere that I notice it the most.
    I can be watching my playback in Premiere fine and then all the sudden, my playback will stop.  At first I thought it was a bug in Premiere, but then I notcied it happening in AE and other non-Adobe programs.
    The computer is acting like I clicked away from Premiere, like on the desktop.  Playback stops and then I have to click my Premeire window again to make it active and then play again. 
    This happens every 5 minutes or so (haven't timed it).
    When it clicks itself out, it doesn't really go anywhere that I can tell, but something is definitely making my active window/program become inactive.
    I'm not sure how to even phrase this question since I don't know what is really going on.  But it's driving me crazy in Premiere as I'm in it about 15 hours a day.  So it's happening, as you can imagine, 5-10 times an hour during my playack.
    In fact, just at this very moment it did it again while writing here.  My Chrome page became inactive and I had to reclick right here to continue writing.
    Any suggestions on where to even start?
    I've had probably 50 computers since Windows 98 and I've never seen this before.

    If it happens at regularly timed intervals of user input inactivity,
    I would suspect a power option trying to spin down a drive
    or blank the display.
    I would start 'GodMode' and check all of the power options.
    Create a new folder, and give it this exact name:
    GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
    Also see:
    Tuning and optimizing Windows 7

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • Anyone know how to remove Overdrive books from my iphone that have been transferred from my computer? They do not show up on itunes. I see a lot of answers to this question but they all are based on being able to see the books in iTunes.

    How do I remove Overdrive books from the library that were downloaded onto my computer then transferred to my iphone? The problem is that they do not show up in iTunes.
    I see this question asked a lot when I google, but they always give answers that assumes you can find the books in iTunes either under the books tab, or the audio books tab or in the music. They do not show up anywhere for me. They do not remove from the app like the ones I downloaded directly onto my iphone.the related archived article does not answer it either.  I even asked a guy working at an apple store and he could not help either.   Anybody...?
    Thanks!

    there is an app called daisydisk on mac app store which will help you see exactly where the memory is focused and consumed try using that app and see which folders are using more memory

  • When i ask a question on ebay and send, when i try to back tab it keeps insisting on resend how can i turn this off?

    you search items on ebay,ask a question of the seller and send it, i then want to return to my listing and the searched items, but firefox will only let me do this if i resend my question every time, it means all the messages i send asking a question are duplicated, how can i turn this annoying protocol off?

    Feedback? Did any of this help?

  • HT1925 When I try to uninstall apple updater I get a message that says " The feature you are trying to use is on a network resource that is unavailable." I dont understand this. How can I finish uninstalling the apple update program?

    When I try to uninstall apple updater I get a message that says " The feature you are trying to use is on a network resource that is unavailable." I dont understand this. How can I finish uninstalling the apple update program?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account

    I have two apple ID's but cannot remember the security question answers and the email address is no longer active - how can I access this account as it seems to be the one my icloud space is attached to.  I haven't backed up my ipad or photos for a while. 

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    If you don’t know your security questions, phone Apple (using the number listed here:  http://support.apple.com/kb/HE57  ) and ask for the Account Security Team.
    About 2-step verification of your Apple ID:
    http://support.apple.com/kb/ht5570
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
    http://rfwilmut.net/missing3
    iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space.

Maybe you are looking for

  • How I got my MicroPhoto to det

    After hours of trying different things I finally got it to detect my MicroPhoto. I figure I might as well post how I got it to work. . Uninstall everything 2. Reinstall + update to 3.30.2 ( Can be found at Creative support ) 3. Reboot 4. Run windows

  • Documents won't print, although there is no problem with Explorer

    Documents that I try to print from a web page go into the printer queue, but won't actually print (eg a flight ticket or a portfolio summary). The document will print perfectly if I use Explorer.

  • Addional lead time for Sales BOM kitting process

    When a Sales Order BOM Sales Order is scheduled, we would like to have a lead time added for the Shipping kitting step.  So the pick date will be X number of days before the ship date. Is there a way to do this is ? Thanks, Doug Karien.

  • Invoice on wrong PO - how to void from FI

    Hello, My problem is that we have  invoice which was vouchered on the wrong PO and now weu2019re trying to reverse it and voucher it on the correct PO and repost a manual payment. Just not sure if once we reverse the clearing document, we can void th

  • How to read and update Registry keys on Windows?

    I nedd to be able to read registry as well as DACL to set permissions on WinNT File System. I did that in VB, but need to do it in Java. Any help would be appriciated.