business computer languages IT401

Description

if you want anything let me know

Don't use plagiarized sources. Get Your Custom Assignment on
business computer languages IT401
From as Little as $13/Page

Unformatted Attachment Preview

College of Computing and Informatics
Assignment 1
Deadline: Day 3/3/2024 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated f older. These f iles must not be in compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct f iles.
• Zero mark will be given if you try to bypass the Saf eAssign (e.g. misspell words, remove spaces between
words, hide characters, use dif ferent 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 f illing your inf ormation on the cover
page.
• You must use this template, f ailing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specif ied otherwise by
the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying f rom students or other resources will result in ZERO mark.
• Use Times New Roman f ont f or all your answers.
Pg. 01
Learning
Outcome(s):
CLO1
Explain the basic
principles of
programming,
concept of
language, and
universal
constructs of
programming
languages.
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
Question One
2 Marks
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.
Pg. 02
Learning
Outcome(s):
CLO4
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
Question Two
2 Marks
Create a Java program that does the following:
Develop a
1. Prompt the user for an input.
program based on
2. Enter your first and last names as the input.
3. Read the entered input into two variables (one variable stores the first
specification
using
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.
name while the other stores the last name).
4. Using the printf function, print the variables in upper-case characters
and each in a separate line.
(include screenshots of all program execution steps)
Pg. 03
Learning
Outcome(s):
CLO4
Develop a
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
Question Three
2 Marks
The cubic polynomial function of the third degree can be represented as:
y = ax3 + bx2 + cx + d
program based on
specification
using
1- Write the correct Java representation of the function without using
parentheses using the Rules of Operator Precedence.
programming
language
elements
2- Evaluate the java representation of the function and find the value of y
when,
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.
x=3, a=1, b=2, c=3, d=4
Make sure that you show all the steps in detail.
5. Use parentheses to rewrite the java representation.
Pg. 04
Learning
Outcome(s):
CLO4
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
Question Four
2 Marks
Write a java program that asks the user to enter his/her name. Print a welcome
message and ask the user to enter a number. Then, tell the user the type of
Develop a
the number (positive, negative, or zero).
program based on
specification
Note: you must take a screenshot of the output that shows your name in the
run.
using
Sample of the run:
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.

Purchase answer to see full
attachment