02 Oct poor presentation
· This Assignment must be submitted on Blackboard (WORD format only) via the allocated folder.
· Email submission will not be accepted.
· You are advised to make your work clear and well-presented, marks may be reduced for poor presentation. This includes filling your information on the cover page.
· You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
· Late submission will result in ZERO marks being awarded.
· The work should be your own, copying from students or other resources will result in ZERO marks.
· Use Times New Roman font for all your answers.
1-
Create a java program for Student profile with the following requirements.
a) Each Student has: two variables id, and name.
b) A Student can be initialization with two constructers:
· Constructer without parameters, that set the id to zero and the name to an empty string.
· Constructer with tow parameters to initialize the variables id and name by a specific value.
c) Add a set method for each variable that change them to a specific value.
d) Add a get method for each variable which return its value.
To test the program, create a class StudentTest with the main method.
In the main method:
a) Create two empty Student profiles S1 and S2.
b) Print the S1 and S2 information.
c) Create a new student profile S3, specify the student id and name.
d) Change S3 id and name.
e) Print the id and name of S3.
2-
For each of the code fragment or declarations in the first column, please state whether the code fragment is correct or incorrect. In case it is incorrect, please provide the correct code in the appropriate cell.
Code fragment
Correct or Incorrect ?
If incorrect, rewrite the correct code
char x=A
int z = 20,000;
double weight = “65”;
public class Count
{
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
