Chat with us, powered by LiveChat please see the attached file | WriteDemy

Question Description

Annual Report

FY [Year]

[Add a quote here from one of your company executives or use this space for a brief summary of the document content.]

Business Computer Language

IT401

Instructions:

  • 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.

Name: ###

CRN: ###

ID: ###

1 Mark

Learning Outcome(s):

Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification.

Question One

Giving the following code snippet. What kind of errors you will get and how can you correct it.

  • public class HelloJava
    {
  • public class HelloJava
    {

public static void main(String args[])

{

int x=10;

int y=2;

System.out.print(x*y=");

System.out.printl(x*y);

}

}

public static void main(String args[])
{

int x=10;

int y=0;

System.out.print(x/y);

}

1.5 Marks

Learning Outcome(s):

Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification.

Question Two

  • Write a program that reads the following string “Hello, This is IT401 assignment 1” and does the following:
  • Is the replace method of class String an accessor method or a mutator method. Explain your answer.
  • Use the replace method of the class String and replace IT401 with Business computer language.
  • Print the number of characters in the string after the replacement.

0.5 Mark

Learning Outcome(s):

Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification.

Question Three

Given the following class create 2 instances of the class and initialize them with the values “Business computer language” and “IT401” respectively.

public class GradeBook {

private String courseName;

public GradeBook (){

courseName ="";}

public GradeBook (String name) {

courseName = name;}

public String getCourseName() {

return courseName;}

public void displayMessage(){

System.out.println("welcome, this is" + getCourseName()); }}

0.5 Marks

Learning Outcome(s):

Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification.

Question Four

What are the implicit and explicit parameters for the following methods:

  • Box1.translate(5,10);
  • momSavings.getBalance();

0.5 Marks

Learning Outcome(s):

Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification.

Question Five

Write the following formula in java expression. Show all the required steps.

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.

Do you need an answer to this or any other questions?

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 “Place Order” 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.

Hire a tutor today CLICK HERE to make your first order