Pg. 01Question FourDeadline: Tuesday 16/02/2021 @ 23:59
Business Computer LanguagesIT401https://www.seu.edu.sa/sites/ar/SitePages/images/logo.pngCollege of Computing and InformaticsQuestion One
1.5 MarksLearning Outcome(s):LO1: Explain the basic principles of programming, concept of language. Universal constructs of programming languages.Write a complete Java program that prints out the following information:1. Your Name in one line2. The CRN and your email in one line.Note:Include the screenshot of your code and the output as a part of your answer. Otherwise, you will be marked zero for this question.Answer:Question Two
1 MarksLearning Outcome(s):LO3: Demonstrate Integrated Development Environment (IDE) for the editing, building, debugging, and testing of programs.LO4: Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays.The following program supposes to add two numbers and generates the following output.Sum of these numbers:35Unfortunately, the program has compile-time and run-time errors that prevent the program from running and producing the correct result. Using the table below, allocate the error(s) on each program line.1 public class Main {2 public static Void main(String[] args)3 int num1 = 104 int num1 = 25;5 int sum;6 sum = num1 + num2;7 System.outprintln(“Sum of these numbers: “+sum);8 }9Note:Some of the answers are given to you as an example.Table: compile-time / run-time errorLine Nocompile-time / run-time error1No error2Error.1. Void should be void2. Missing {3456789Question Three
1 MarksLearning Outcome(s):LO1: Explain the basic principles of programming, concept of language. Universal constructs of programming languages.Consider the following java class:class Student { private int student_Number; private String student_Name; public Student(int stNo,String name) { student_Number=stNo; student_Name=name; } public String getName() { return student_Name; } public int getNumber() { return student_Number; } public void setName(String st_name) { student_Name = st_name; } }a) What are the instance variables?b) What are the local variables?c) What are the accessor methods?d) What is the mutator method?Answer:Question Four
1.5 MarksLearning Outcome(s):LO3: Demonstrate Integrated Development Environment (IDE) for the editing, building, debugging, and testing of programs.LO4: Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays.Consider the following java class:public class Circle { private double radius; private String color; public Circle(){ radius=0; color = “red”; } public Circle(double r, String c){ radius=r; color = c} public void setColor(String c){ color = c;} public double getRadius(){ return radius; } public String getColor(){ return color; } }Write a Tester class named CircleTester which contains the following instruction:1. Use the first constructor to create a circle object c1 .2. Use the second constructor to create a circle object c2 where radius =15, color = “Green”.3. Use the setColor method to change the color of the circle c1 to ““Yellow”.4. Print the radius and color of circle c2 .Note:Include the screenshot of the program output as a part of your answer. Otherwise, you will be marked zero for this question.Answer:College of Computing and InformaticsAssignment #1[Total Mark for this Assignment is5]Student Details:Name:###CRN:###ID:###College of Computing and InformaticsAssignment #1[Total Mark for this Assignment is 5]Student Details:Name: ###CRN: ###ID: ###
Approximate price: $22
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.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.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.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.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.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.
Java essay
Never use plagiarized sources. Get Your Original Essay on
Java essay
Hire Professionals Just from $11/Page