You are on page 1of 12

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 Activity for Module 02

GETTING INPUT FROM THE KEYBOARD

Activity 03

PLEASE WRITE YOUR NAME HERE ↓


Last Name: Bancolita First Name: Roy Jerald _______
Course, Year and Section: _BSIT 2-1 20
Date: 10/15/2021 Score

BufferedReader/Scanner version

1. Write a program that would input an integer number and then extract its one’s digit or right most digit.

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

BufferedReader/Scanner version

2. Write a program that would input four numbers for variables W, X, Y, and Z, respectively, and exchange their
values such that X goes into W, Y into X, Z into Y and W into Z.

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

JOptionPane version
3. Workers at a particular company were given a 17.75% salary increase. Moreover, the increase was retroactive for
2 months, that is, effective 2 months ago. Write a program that takes the employee’s old salary as input and then
output the amount of retroactive pay (balance) due the employee and his new salary as well.

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

JOptionPane version

4. XYZ’s Pizza Parlor charges 12% service charge and 7% sales tax on the gross bill of its customer. Make a program
that would input the gross bill of the customer and the amount given by the customer to the waiter. Program must
output the customer’s net bill and his change.

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

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

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

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

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

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.

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

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

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

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.

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.

PANGASINAN STATE UNIVERSITY 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

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 11


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 12

You might also like