Applications Programming --- Lab 1

Objective:

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. 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.
  4. Get familiar with a csv file. Download an example csv file that shows rent data of an appartment for the past 10 years.
  5. Open the downloaded csv file with your Excel
    yes, both csv file and Excel file can be opened by MS Excel
  6. Understand workbook and worksheet, find out the number of rows and columns in a worksheet
  7. Format Excel cells so that the data looks as shown in the following table:
    YearInflation RateMonthly Rent Yearly Rent
    120153.2%$700.00$8400.00
    220162.3%$736.40$8836.80
    320174.3%$768.07$9216.78
    420183.8%$816.45$9797.44
    520192.2%$863.81$10365.69
    620202.5%$900.09$10801.05
    720212.9%$940.59$11287.10
    820223.7%$986.68$11840.17
    920234.0%$1042.92$12515.05
    1020242.5%$1105.50$13265.96
    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.
  8. Add a new worksheet and rename the worksheet as "HR Data".
  9. 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 2024:
    Oliver is 38 years old and joined the organization at September 9th, 2015. His occupation is elementary teacher. He is given an ID of 1379 with the organization.

    Marsha joined the organization at 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 at March 15th, 2012. His organizatin ID is 2733.

    Jane has the organization ID of 3282. She is 25 years old and joined the organization at May 5th, 2019. She worked as a theatre technician.

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

There is No assignment following this lab.