Java programming for beginners | Computer Science homework help

  

· 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 

{

public Count() 

{

// body–filled in here

}

// body–filled in here

}

 

long 1student=123456;

 

boolean static = true;

 

Import java.String.Rectangle

 

public int void   deposit(double amount) 

{ . . . }

3- 

  

A. Write an algorithm in pseudocode to convert temperature from Fahrenheit to Celsius? 

B. Give an example for compile-time and run-time errors?

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.

Read more

Free-revision policy

The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency