lab13_24926.pdf - CSE1222 Spring 2018 CS&E 1222 Lab 13...

This preview shows page 1 - 2 out of 4 pages.

CSE1222 – Spring 2018 CSE1222 Lab 13 1 CS&E 1222 Lab 13 – Classes & Write to Files Lab Assignment – 20 points ü The lab must be accomplished solely by you: Ø DO NOT look at anyone’s code other than your own, including code from another’s student in your section or another section of the course, or any third party source, e.g. the Internet Ø DO NOT share or copy anyone else’s code for any graded assignment Ø DO NOT work in pairs or groups ü All cases of academic misconduct will be reported to the Committee On Academic Misconduct (COAM). Setting up the Programming Environment Effective commenting and tabbing will affect your grade. The “style” of your program should follow the style of the sample programs in the lecture notes. Also see the example code from Lab #1. Your program should have the file name, your name, creation and last modification dates and a brief description of the program in the comments. In addition, read the document on “Commenting” found in the Content tab on Carmen under “Tutorials” . 1. At the Linux command line type mkdir lab13 . This will create a new directory named lab13 . Work out of this directory. In order to do that, type cd lab13 . This changes the current working directory to the directory lab13 . 2. If you have created the directory lab13 , then just type cd lab13 . 3. Copy the file temps_template.cpp by typing cp /class/cse1222/24926/lab13/temps_template.cpp temps.cpp 4. Copy the file temps_solution.exe into the current directory. cp /class/cse1222/24926/lab13/temps_solution.exe . Be sure to include 24926 (this is your course section indicator) and the period, “.”. Programming Assignment Write a program that will collect from the user a list of temperature samples taken throughout a single day. Each temperature sample consists of a temperature (degrees Fahrenheit) and a time (military time in hours and minutes only). The hours in military time is an integer between 0 and

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture