Applications Programming --- Lab 1

Objectives:

References:

Tasks:

Login using your VIU account.

Find and start a web browser, and open http://csci.viu.ca/~liuh/112/labs/lab1.html

When using lab computer (which runs Windows):

When you are using your own computer with MacOS, some of the tasks would be performed differently:

The rest of the tasks for which ever type of OS:

  1. Learn to tell the difference between a text file and a binary file
    Text files can be opened and edited by a text editor, on any computer system. And binary files usually need special software to handle them.
  2. Learn to read the meta data about a file
    On Windoes: Find the file, right click on the file and click on the "Properties" in the drop down menu.
    On MacOS: Find the file, control-click on the file and click on the "get info" item in the drop down menu.
  3. Discussion of computer security issues
  4. Learn the connection between file extention names (types) and the applications to open the files
    In both Windows and MacOS file's meta information, there is an item called "Open(s) with", which associate an application with opening the files with the same extention name as this file.
  5. Get familiar with a csv file. Download an example csv file that shows rent data of an appartment for the past 16 years.
  6. Open the downloaded csv file with your Excel
    yes, both csv file and Excel file can be opened by MS Excel
  7. Understand workbook and worksheet, find out the number of rows and columns in a worksheet
  8. Format Excel cells so that the data looks as shown in the following table:
    YearInflation Rate Buffer RateMonthly RentYearly Rent
    120101.3%2.0%$700.00$8,400.00
    220112.4%2.0%$723.10$8,677.20
    320121.1%2.0%$754.92$9,059.00
    42013-0.1%2.0%$778.32$9,339.83
    520141.0%2.0%$793.11$9,517.28
    620151.1%2.0%$816.90$9,802.80
    720161.8%2.0%$842.22$10,106.69
    820172.1%2.0%$874.23$10,490.74
    920182.7%2.0%$910.07$10,920.86
    1020192.3%0.0%$952.85$11,434.14
    1120200.8%0.0%$974.76$11,697.13
    1220212.8%0.0%$982.56$11,790.71
    1320226.9%0.0%$1,010.07$12,120.84
    1420233.9%0.0%$1,079.77$12,957.18
    1520242.6%0.0%$1,121.88$13,462.51
    1620252.1%0.0%$1,151.04$13,812.54
    Select the cells you want to format, right-click (on Windows) or control-click (on MacOS) on these selected cells, and then choose "Format Cells" item from the drop down menu.
    In the opened "Format Cells" window, you can choose Category of data, Number format, Alignment, etc.
  9. Although they are shown as literal numbers, the "Yearly Rent" data are actually calculated from the "Monthly Rent" multiplied by 12. In column G, enter the title "Calculated Yearly Rent" as its title, and in row 2 of column G, try to enter an Excel formula to perform the calculation. Compare your calculated yearly rent in column G with the literal values given in column F.
  10. Add a new worksheet and rename the worksheet as "HR Data".
  11. The following paragraphs show a sample of the information about an organization's members. Extract the data from the information, design and store your data with proper types in the worksheet "HR Data":
    A volunteer organization has the following members in year 2026:
    Oliver is 38 years old and joined the organization on September 9th, 2015. His occupation is elementary teacher. He is given an ID of 1379 with the organization.

    Marsha joined the organization on June 12th, 2018 when she was 33 years old. Her current occupation is medical doctor. She is given an ID of 2933.

    Robert is 42 years old and works as a constructor. He joined the organization on March 15th, 2012. His organizatin ID is 2733.

    Jane has the organization ID of 3282. When she was 25 years old, she joined the organization on May 5th, 2019. She has been working as a theatre technician.

    You can expect more descriptions containing similar information about the organization's other members.
  12. Save the workbook to either your U: drive or One Drive with proper file name and extention name (.xlsx).

There is an assignment, Assignment 1, following this lab.