User Tools

Site Tools


haas:fall2021:cprog:projects:cos0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

haas:fall2021:cprog:projects:cos0 [2020/10/19 20:14] – external edit 127.0.0.1haas:fall2021:cprog:projects:cos0 [2021/10/03 20:02] (current) wedge
Line 15: Line 15:
   * can obtain information from the command-line (argc/argv)   * can obtain information from the command-line (argc/argv)
   * can call functions from a library (gd).   * can call functions from a library (gd).
 +
 =====Background===== =====Background=====
 We've spent our time so far this semester covering the basic concepts of programming, in C. Variables, selection statements, iteration, functions, structs, etc. We've spent our time so far this semester covering the basic concepts of programming, in C. Variables, selection statements, iteration, functions, structs, etc.
Line 60: Line 61:
  
 <cli> <cli>
-lab46:~/src/cprog$ grabit cprog cos0+lab46:~/src/SEMESTER/cprog$ grabit cprog cos0
 make: Entering directory '/var/public/SEMESTER/cprog/cos0' make: Entering directory '/var/public/SEMESTER/cprog/cos0'
-‘/var/public/SEMESTER/cprog/cos0/Makefile’ -> ‘/home/USERNAME/src/cprog/cos0/Makefile’ +‘/var/public/SEMESTER/cprog/cos0/Makefile’ -> ‘/home/USERNAME/src/SEMESTER/cprog/cos0/Makefile’ 
-‘/var/public/SEMESTER/cprog/cos0/cos0.c’ -> ‘/home/USERNAME/src/cprog/cos0/cos0.c’+‘/var/public/SEMESTER/cprog/cos0/cos0.c’ -> ‘/home/USERNAME/src/SEMESTER/cprog/cos0/cos0.c’
 make: Leaving directory '/var/public/SEMESTER/cprog/cos0' make: Leaving directory '/var/public/SEMESTER/cprog/cos0'
-lab46:~/src/cprog$ cd cos0 +lab46:~/src/SEMESTER/cprog$ cd cos0 
-lab46:~/src/cprog/cos0$ ls+lab46:~/src/SEMESTER/cprog/cos0$ ls
 Makefile  cos0.c Makefile  cos0.c
-lab46:~/src/cprog/cos0$ +lab46:~/src/SEMESTER/cprog/cos0$ 
 </cli> </cli>
  
Line 87: Line 88:
 You've got a monitor and keyboard hooked up to your pi that you are using (preferred method for class). You've got a monitor and keyboard hooked up to your pi that you are using (preferred method for class).
  
-Open a file browser, web browser, or image viewer and navigate to/open up your **cos0.png** image in your **~/src/desig/cos0/** directory.+Open a file browser, web browser, or image viewer and navigate to/open up your **cos0.png** image in your **~/src/SEMESTER/DESIG/cos0/** directory.
  
 Rinse and repeat as you go through revisions. Rinse and repeat as you go through revisions.
Line 97: Line 98:
  
 <cli> <cli>
-yourpi:~/src/desig/cos0$ ./cos0+yourpi:~/src/SEMESTER/DESIG/cos0$ ./cos0
 </cli> </cli>
  
Line 103: Line 104:
  
 <cli> <cli>
-yourpi:~/src/desig/cos0$ scp cos0.png yourusername@lab46.g7n.org:public_html/+yourpi:~/src/SEMESTER/DESIG/cos0$ scp cos0.png yourusername@lab46.g7n.org:public_html/
 </cli> </cli>
  
-Note that you will be prompted for your lab46 password.+Note that you may be prompted for your lab46 password.
  
 Then over on lab46, run this: Then over on lab46, run this:
Line 116: Line 117:
 Then, point a web browser at the following URL: Then, point a web browser at the following URL:
  
-  * https://lab46.g7n.org/~yourusername/con0.png+  * https://lab46.g7n.org/~yourusername/cos0.png
  
 NOTE: sometimes the web browser caches previous results, you may have to refresh a few times on revisions to get changes to manifest. NOTE: sometimes the web browser caches previous results, you may have to refresh a few times on revisions to get changes to manifest.
 +
 =====Submission===== =====Submission=====
 To successfully complete this project, the following criteria must be met: To successfully complete this project, the following criteria must be met:
Line 135: Line 137:
  
 <cli> <cli>
-$ submit cprog cos0 cos0.c +lab46:~/src/SEMESTER/DESIG/cos0make submit
-Submitting cprog project "cos0": +
-    -> cos0.c(OK) +
- +
-SUCCESSFULLY SUBMITTED+
 </cli> </cli>
  
haas/fall2021/cprog/projects/cos0.1603138494.txt.gz · Last modified: 2020/10/19 20:14 by 127.0.0.1