Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

CS 231 ASS 1

Description

SEE

College of Computing and Informatics

Assignment #1
Deadline: Monday 29/09/2025 @ 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 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.

Restricted – ‫مقيد‬

Question One

Pg. 01

Learning
Outcome(s):

Question One

Explain the basic

In Java programming, there are three main categories of errors that programmers
commonly face.

principles of
programming,
concept of
language, and
universal
constructs of
programming
languages

Restricted – ‫مقيد‬

1. Identify and briefly describe each category.
2. Provide one example (code snippet or scenario) for each.
3. Explain how a programmer can detect and correct these errors.

2 Marks

Question Two

Pg. 02
Learning
Outcome(s):
Explain the basic
principles of
programming,
concept of
language, and
universal
constructs of
programming
languages

Restricted – ‫مقيد‬

Question Two

2 Marks

Write a program that asks the user for their weight (double) and height (double), then
calculates and prints their Body Mass Index(BMI).
BMI = weight / (height * height)

Question Three

Pg. 03
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.

Restricted – ‫مقيد‬

Question Three

2 Marks

Write a Java program that declares and initializes variables of all the primitive types:

int, double, char, and Boolean.

The program should:
1. Print the variables’ values on the screen.
2. Add the keyword final to the int variable and try to reassign it (observe the
error).
3. Reassign new values to the remaining variables (double, char, and Boolean) and
print the results again.

Question Four

Pg. 04
Learning
Outcome(s):
Develop a
program based on
specification
using

Question Four
Write a Java program that asks the user to enter a number.
If the number is positive, print:
“The number is positive.”
If the number is negative, print:
“The number is negative.”

programming

If the number is zero, print:
“The number is zero.”

language

Sample Output:

elements
including syntax,
data types,

OR:

conditional
statement, control
structures,
procedures,
arrays, objects
and classes.

Restricted – ‫مقيد‬

OR:

2 Marks

Purchase answer to see full
attachment

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Computer Science Question

Description see College of Computing and Informatics Assignment 2 Deadline: Monday 10/11/2025 @ 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

Programming Question

Description Help me to answer four questions in it351 College of Computing and Informatics Assignment 2 Deadline: Sunday 09/11/2025 @ 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

Ass , 361

Description All required tasks are included in the file. College of Health Sciences Department of Public Health ASSIGNMENT COVER SHEET Course name: Fundamentals of Safety Course number: PHC 361 CRN: Paper Assignment Assignment title or task: (You can write a question) 1. What is the difference between Risk and Hazard?

500 dis 11

Description Examine the quality metrics, access, and health care insurance of the German healthcare system. Compare each of these three points to health care services in Saudi Arabia. Explain the different ways and methods that these particular healthcare systems are alike and different. Embed course material concepts, principles, and theories

312 ass 16

Description SEE PHC 312 Group Assignment Paper College of Health Sciences ASSIGNMENT COVER SHEET Course name: Health Communications Course code: PHC312 CRN: Assignment title or task: Students enrolled in PHC 312 in first term 2025 will be divided into groups (3-5 students per group). The first section will be designed

Databases Question

Description hey, i just need solving for my assignment with following the rules properly. THANKS! College of Computing and Informatics Assignment 2 Deadline: Monday 10/11/2025 @ 23:59 [Total Mark for this Assignment is 8] Student Details: Name: ### ID: ### CRN: ### Instructions: • You must submit two separate copies

316 PRE 2

Description Telemedicine: current and future College of Health Sciences Department of Health Informatics HCI-316 – Group Presentation In this group project, teams of 3–5 students will collaborate to explore and present exciting developments in digital health innovation within the Middle East, with a particular focus on Saudi Arabia (KSA). The

515 CT 12

Description Medical Malpractice (110 points) Create a PowerPoint presentation detailing the standard operating procedure in dealing with “near misses” in your facility. Be sure to address the following issues: Examine any applicable rules and regulations pertaining to malpractice in the Kingdom of Saudi Arabia. Detail a specific procedure in dealing

Corporate Finance / 201

Description CAREFULLY • THE ASSIGNMENT MUST BE SUBMITTED ON BLACKBOARD (WORD FORMAT ONLY) VIA ALLOCATED FOLDER. • ASSIGNMENTS SUBMITTED THROUGH EMAIL WILL NOT BE ACCEPTED. • STUDENTS ARE ADVISED TO MAKE THEIR WORK CLEAR AND WELL PRESENTED; MARKS MAY BE REDUCED FOR POOR PRESENTATION. THIS INCLUDES FILLING YOUR INFORMATION ON

Project 475-4

Description see College of Computing and Informatics Project Deadline: Sunday 30/11/2025 @ 23:59 [Total Mark for this Project is 14] Group Details: Name: Name: Name: Name: CRN: ID: ID: ID: ID: Instructions: • You must submit two separate copies (one Word file and one PDF file) using the Assignment Template

Management Question

Description Learning Goal: I’m working on a management multi-part question and need support to help me learn. Students are advised to make their work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page. Students must mention question number clearly

Management Question

Description Assignment MGT311 ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi Electronic University College of Administrative and Financial Sciences Assignment 3 Logistics Management (MGT 322) Due Date: 06/12/2025 @ 23:59 Course Name: Student’s Name: Course Code: MGT322 Student’s ID Number: Semester: First

Management Question

Description General Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on (WORD format only) via allocated folder. Students are advised to make their work clear and well presented, marks may be reduced for poor presentation. This includes filling your information on the cover page. Students must mention

Management Question

Description assignment mgt 311 ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi Electronic University Department of Business Administration College of Administrative and Financial Sciences Assignment 3 Introduction to operations Management (MGT 311) Due Date: 6th December 2025 @ 23:59 Course Name: Introduction

Management Question

Description General Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on (WORD format only) via allocated folder. Students are advised to make their work clear and well presented, marks may be reduced for poor presentation. This includes filling your information on the cover page. Students must mention

Management Question

Description ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi Electronic University Department of Business Administration College of Administrative and Financial Sciences Assignment 3 Introduction to operations Management (MGT 311) Due Date: 6th December 2025 @ 23:59 Course Name: Introduction to Operations Management

MGT530 M11-Discussion Forum: Lean Operations and Scheduling

Description I need help completing a discussion board post for my Management course (Operation Management). Below are the exact requirements provided by my instructor: Description: In this module, you will learn about lean operations and how lean can relate to a successful implementation of operations management within an organization or

econ mo solve word and ppt

Description Assignment Activity What are the main causes of Unemployment? Do you agree that technological up-gradation in any industry may cause unemployment in that industry? Provide your opinion with one example. Total grade: 20 marks. Distribution: 10 marks for the written report + 10 marks for the presentation and discussion.