Java Question

Learning Goal: I’m working on a java exercise and need support to help me learn.


Instructions:

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.

It is your responsibility to check and make sure that you have uploaded both the correct files.

Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, usedifferent character sets, convert text into image or languages other than English or any kind of manipulation).

Email submission will not be accepted.

You are advised to make your work clear and well-presented. This includes filling your information on the cover page.

You must use this template, failing which will result in zero mark.

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

The work should be your own, copying from students or other resources will result in ZERO mark.

Use Times New Roman font for all your answers.

Student Details:

Name: ###

CRN: ###

ID: ###

Pg.

<> Error* Question Four

2 Marks

Learning Outcome(s): CLO1

Explain the basic principles of programming, concept of language, and universal constructs of programming languages.

Question One

Explain two roles of the java virtual machine as part of java runtime environment?

Describe the intermediate representation of a Java program that allows a JVM to translate a program into machine-level assembly instructions.

2 Marks

Learning Outcome(s): CLO4

Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes.

Question Two

Create a Java program that does the following:

1. Prompt the user for an input.

2. Enter your first and last names as the input.

3. Read the entered input into two variables (one variable stores the first name while the other stores the last name).

4. Using the printf

Our customer support team is here to answer your questions. Ask us anything!