IT401 SEU Business Computer Languages Discussion

Description

1 attachmentsSlide 1 of 1attachment_1attachment_1

Unformatted Attachment Preview

College of Computing and Informatics
Assignment 2
Deadline: Day 5/12/2021 @ 23:59
[Total Mark for this Assignment is 5]
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 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, use different 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.
Question One
Pg. 01
Learning
Outcome(s):
Develop a
program based on
specification
using
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes
Question One
1.5 Marks
Write a java program that:
a. Create an abstract class named Shape that contains three integers
length, breadth, radius and an empty method named printArea().
b. Provide three classes named Rectangle, Triangle and Circle such that
each one of the classes extends the class Shape.
c.
Each one of the classes contains only the method printArea() that read
the requested values and prints the area of the given shape.
d. Provide a class Main that create a rectangle, a triangle and a cercle then
print their respective areas.
Note: you should Include the screenshot of the program output as a part
of your answer. Otherwise, zero marks will be awarded.
Question Two
Pg. 02
Learning
Outcome(s):
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
2 Marks
Create a class called Invoice that a hardware store might use to represent an
invoice for an item sold at the store.
a. An Invoice should include four information as instance variables: a part
number (type String), a part description (type String), a quantity of the
item being purchased (type int) and a price per item (double).
b. Your class should have a constructor that initializes the four instance
variables. Provide a set and a get method for each instance variable.
c. In addition, provide a method named getInvoiceAmount that calculates
the invoice amount (i.e., multiplies the quantity by the price per item), then
returns the amount as a double value. If the quantity is not positive, it
should be set to 0. If the price per item is not positive, it should be set to
0.0.
d. Write a tester class named InvoiceTest that demonstrates class Invoice’s
capabilities by creating two invoices then changing and printing their
characteristics.
Note: you should Include the screenshot of the program output as a part
of your answer. Otherwise, zero marks will be awarded.
Question Three
Pg. 03
Learning
Outcome(s):
Question Three
1.5 Marks
Write a complete Java program that do the following:
Explain the basic
principles of
programming,
concept of
language, and
universal
constructs of
programming
languages.
a. Read your student’s ID number, store it in an array named myStudentNO
and print it.
b. find the number of even and odd integers in myStudentNO array
Note: Your program output should look as shown below
Develop a
program based on
specification
using
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and
Note: you should Include the screenshot of the program output as a part
of your answer and you should enter your student id number. Otherwise
zero marks will be awarded.

Purchase answer to see full
attachment

Tags:
Business Language

User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.

Reviews, comments, and love from our customers and community:

Article Writing

Keep doing what you do, I am really impressed by the work done.

Alexender

Researcher

PowerPoint Presentation

I am speechless…WoW! Thank you so much!

Stacy V.

Part-time student

Dissertation & Thesis

This was a very well-written paper. Great work fast.

M.H.H. Tony

Student

Annotated Bibliography

I love working with this company. You always go above and beyond and exceed my expectations every time.

Francisca N.

Student

Book Report / Review

I received my order wayyyyyyy sooner than I expected. Couldn’t ask for more.

Mary J.

Student

Essay (Any Type)

On time, perfect paper

Prof. Kate (Ph.D)

Student

Case Study

Awesome! Great papers, and early!

Kaylin Green

Student

Proofreading & Editing

Thank you Dr. Rebecca for editing my essays! She completed my task literally in 3 hours. For sure will work with her again, she is great and follows all instructions

Rebecca L.

Researcher

Critical Thinking / Review

Extremely thorough summary, understanding and examples found for social science readings, with edits made as needed and on time. Transparent

Arnold W.

Customer

Coursework

Perfect!

Joshua W.

Student

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>