Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev.

0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

Home-based Machine Problem for Module 01

JAVA PROGRAMMING FUNDAMENTALS

Machine Problem 01

PLEASE WRITE YOUR NAME HERE ↓


Last Name: _________________________ First Name: ______________________________ _______
Course, Year and Section: ___________________ 15
Date: ______________________________________ Score

SKILLS WORKOUT
1. Getting the average of three numbers

Write the java source code that outputs the average of three numbers. Let the values of the
three numbers be, 10, 20 and 45. The expected screen output is,
number 1 = 10
number 2 = 20
number 3 = 45
Average is = 25

PANGASINAN STATE UNIVERSITY 1


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

2. Output greatest value

Given three numbers, write a program that outputs the number with the greatest value among
the three. Use the conditional ?: operator that we have studied so far (HINT: You will need to
use two sets of ?: to solve this). For example, given the numbers 10, 23 and 5, your program
should output,

number 1 = 10
number 2 = 23
number 3 = 5
The highest number is = 23

PANGASINAN STATE UNIVERSITY 2


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

3. Operator precedence

Given the following expressions, re-write them by writing some parenthesis based on the
sequence on how they will be evaluated.

1. a / b ^ c ^ d – e + f – g * h + i

2. 3 * 10 *2 / 15 – 2 + 4 ^ 2 ^ 2

3. r ^ s * t / u – v + w ^ x – y++

PANGASINAN STATE UNIVERSITY 3


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

For easy tracking of your file/s strictly follow the correct filename format given below.
Filename: Deadline:
LastnameFirstNameMI_Assignement1 October 15, 2021 till 5:00 PM
e.g. DelacruzJuanL_Assignment1
IMPORTANT! Late submission of paper/s will not be accepted, regardless of the
reason(s).
1.1

Additional Information:
IMPORTANT! Read carefully with understanding and strictly follow the instructions given below.

1. All home-based activities/assessments except quizzes (i.e. assignments, activities, exercises and etc.)
shall be submitted to the FB Messenger (Group Chat) and MS Teams account.
FB Messenger (GC) -> First Priority
1.1 Using Facebook Messenger on a Desktop, Laptop, Phone or Tablet.
1.1.1 Open Facebook.
1.1.2 Tap ☰.
1.1.3 Tap Groups.
1.1.4 Tap Files.

PANGASINAN STATE UNIVERSITY 4


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

1.1.5 Tap +.
MS Teams -> Second Priority
1.2 Go to General Posts:

Click new conversation button


Each submission can only have one "new conversation".

Click the attached file


Note: don’t add message/s your filename attachment is enough.
1.2.1 Filename for example using camel uppercase:
1.2.1.1 LastnameFirstNameMI_Activity1
1.2.1.2 LastnameFirstNameMI_Exercise1
1.2.1.3 LastnameFirstNameMI_Seatwork1
1.2.1.4 LastnameFirstNameMI_Assignment1
1.2.1.5 LastnameFirstNameMI_MiniProject1 and etc…
1.3.1 If you don't want anyone to see your work/s, put a password on it and send it to your instructor
privately. For those students whose job is to copy and paste, ask yourself, "Copy, paste,
steal? Is it plagiarism theft or simply laziness? Either way..."
1.3.2 Don’t forget to use the same password for the next submission.
1.3.2.1 Set password in (e.g. Word 2013) documents.
1.3.2.1.1 Open the Word document of which you want to set the password.

PANGASINAN STATE UNIVERSITY 5


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

1.3.2.1.2 Click the File Tab and then click the Info option and then the Protect Document
button that shows a list of options to be selected.

1.3.2.1.3 Now click the Encrypt with Password option simply by clicking on it. That will display
an Encrypt Document dialog box asking for a password to encrypt the document.
This dialog box will appear twice to reenter the same password. And every time click
the OK button after entering the password

Note: If a document “does not have a password”, the overall score will be deducted
by five (5) points.
2. If ever all documents taken as photos shall be renamed bearing your name and the activity (e.g.
LastnameFirstnameMI_Activity1) for purposes of monitoring of submission and on-time passing.
See number 1.2.1 also as guide. Compressed the file/s (e.g. images or photos taken in your
screenshots) using .zip or .rar format before sending it to you FB Messenger (Group Chat) and MS
Teams account.
2.1 How to compress your file and put password on it?

PANGASINAN STATE UNIVERSITY 6


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

2.1.1 First, make shore that WinRAR or WinZip software installed in your device. You can
download the software’s in the links below:
2.1.1.1 https://www.rarlab.com/ or https://www.win-rar.com/ or https://www.winzip.com
2.1.1.2 Click here for detailed instructions on installing WinRAR.
2.1.1.3 Right Click on the files you want to compress and click on "Add to archive".

2.1.1.3.1 Open the WinRAR window and then browse for the files you want to Select
all the files and then click the "Add" button.
2.1.1.3.2 Select all of the files you want to archive in Windows. Right-click on your
selection and choose "Add to archive".
2.1.1.4 Give your archive a name. By default, it will be named after the folder the files
were
originally in.

PANGASINAN STATE UNIVERSITY 7


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

2.1.1.5 Click the Set password... button. This is located in the General tab of the
"Archive name and parameters" window that appears when creating a new
archive.

2.1.1.6 Enter in your password. Enter it a second time to confirm it. You can check the
"Show password" box to see the characters as you type them.

2.1.1.7 Check the "Encrypt file names" box. This will ensure that no one can see the
names of the files contained in the RAR file until after they have successfully
entered the password.

PANGASINAN STATE UNIVERSITY 8


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

2.1.1.8 Click OK to save your password. Click OK in the "Archive name and
parameters" window to create your new RAR file.

2.1.1.9 Test it out. After the RAR file is created, you can double-click it to test it out.
When you try to extract it, you will be prompted for the password you created.

PANGASINAN STATE UNIVERSITY 9


Prepared by: Edilberto L. Caralos Jr. FM-AA-CIA-15 Rev. 0 30-March-2021

Study Guide in SIA 101 Systems Integration and Architecture

3. If ever FB Messenger will reject your .rar or .zip file format alternative is to upload it to the free host
file serves such as: google drive or mediafire then share/post the link in the fb messenger group
chat.
4. (Optional) Add “watermark” (sample format: DelaCruzJuanT_8-12-2021) inside your document.
4.1 How to insert a watermark in Microsoft Word (2007-current)?
4.1.1 On the Design tab, select Watermark.
4.1.2 In the Insert Watermark dialog, select Text and either type your own watermark text or
select one, like DRAFT, from the list. Then, customize the watermark by setting the font,
layout, size, colors, and orientation.
4.1.3 Select OK.

5. Congratulations!

PANGASINAN STATE UNIVERSITY 10

You might also like