User Tools

Site Tools


Sidebar

projects

wcp1 (due 20250129)
abc0 (due 20250205)
btt0 (due 20250205)
pct0 (bonus; due 20250205)
pct1 (bonus; due 20250205)
pct2 (due 20250205)
wcp2 (due 20250205)
mtb0 (due 20250212)
pct3 (bonus; due 20250212)
wcp3 (due 20250212)
haas:spring2025:cprog:projects:abc0

Corning Community College

CSCS1320 C/C++ Programming

PROJECT: Assorted Beginning Concepts (ABC0)

OBJECTIVE

To get started on the course and semester. Bootstrap your access and configuration of various resources, following instructions, contributing to documentation, and asking questions in the discord.

EDIT

You will want to go here to edit and fill in the various sections of the document:

ABC0

NOTE: this is a collaborative document among ALL my classes this semester. That means more people editing. Be mindful that only one person can edit the document at a time.

Only task headings have been provided. You are not expected to know how to do the task given just that description (although in some cases it can be adequately figured out). Instead, if no further information is yet present, ASK FOR DETAILS on the discord.

If something is present but needs polish: spruce it up.

If something is present but is incorrect: please fix it.

This is intended to be an informative, useful document that all can benefit from.

Those with prior experience, please be mindful not to gobble up all the low-hanging fruit from the newcomers.

Get on discord and into class channels

The link to the Lab46 discord server can be found at the top of each course home page.

Log into Lab46 (shell)

The first thing you need to do to get set up for the semester is log into the lab46 shell. If you are on a Windows or Linux device, this should be as simple as typing:

ssh jdoe123@lab46.g7n.org

into your terminal, replacing jdoe123 with the start of your CCC email

Change lab46 password
Clone lab46 semester repo on lab46 (fixrepo)

Once you have ssh'd into the lab, you will need to set up a repository for all of your projects for this semester.

This can be done with the fixrepo command, which will create an src/spring2025/ folder into your home folder. This folder has already been set up as a mercurial repository, and is ready to use.

Inside your spring2025 folder it might be wise to create a new folder(s) for your class/classes. This can be done with the mkdir command

mkdir FOLDERNAME

i.e

mkdir unix

will create a new folder named unix

Be sure to do this in your spring2025/ folder, or you will create the folder in the wrong place, and it will not be tracked!

Log into Lab46 wiki

Change lab46 wiki password (can be same as lab46)

Set up personal development system

Clone lab46 semester repo on your system

On your system of choice, Virtual Machine or Pi, open a terminal

Option 1

  • If on a Pi or Debian based distro the following command should work
    wget -q https://lab46.g7n.org/~wedge/piph/download -O piph
    bash ./piph

Option 2

  • Not taking the shortcut route, use these two commands
    hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER ~/src
    hg clone ssh://USER@lab46.g7n.org//var/repos/hg/user/USER/spring2025 ~/src/spring2025
Create info.text file with information

You can use a text editor like Vim or Nano to create info.text. Generally, it contains things like:

1) Your name

2) A good way to reach you (for example, email address)

3) Which program you are enrolled in

4) Your discord username

You can use “vim info.text” or “nano info.text” to create the file and start typing.

Create, compile, and execute hello.c

Create the hello.c file using a text editor

vim hello.c

Then write a simple program that outputs “Hello World” to the console

Finally, compile the file using GCC or some other compiler

gcc -Wall -std=gnu18 hello.c -o hello

To execute the code type in

./hello
Add, Commit, Push changes to repo
hg add

Once you have created files you need to add them to the repository. You can use hg add to automatically add all new files (with some exceptions)

hg add

You can use hg status to see what files have been added

hg commit

The command hg commit will save all of the changes that have been made (only the files that appear in hg status will be committed)

hg commit
hg push

Apply the changes to the repository with hg push

hg push

Pull and Update project changes on Lab46

hg pull

To get the changes from mercurial use hg pull from within src

cd ~/src
hg pull
hg update

To create files/apply changes use hg update from within src

hg update

Submit project files on lab46

Submit with “submit DESIG abc0 file1 file2 file3”

Customize journal title and intro, edit week1 entry

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

  • Project must be submit on time, by the deadline.
    • Late submissions will lose 33% credit per day, with the submission window closing on the 3rd day following the deadline.
  • All code must compile cleanly (no warnings or errors)
    • Compile with the -Wall and –std=gnu18 compiler flags
    • all requested functionality must conform to stated requirements (either on this document or in a comment banner in source code files themselves).
  • Executed programs must display in a manner similar to provided output
    • output formatted, where applicable, must match that of project requirements
  • Processing must be correct based on input given and output requested
  • Output, if applicable, must be correct based on values input
  • Code must be nicely and consistently indented
  • Code must be consistently written, to strive for readability from having a consistent style throughout
  • Code must be commented
    • Any “to be implemented” comments MUST be removed
      • these “to be implemented” comments, if still present at evaluation time, will result in points being deducted.
      • Sufficient comments explaining the point of provided logic MUST be present
  • No global variables (without instructor approval), no goto statements, no calling of main()!
  • Track/version the source code in your lab46 semester repository
  • Submit a copy of your source code to me using the submit tool (make submit on lab46 will do this) by the deadline.

Submit Tool Usage

Let's say you have completed work on the project, and are ready to submit, you would do the following:

lab46:~/src/SEMESTER/DESIG/PROJECT$ submit DESIG PROJECT file1 file2 file3 ... fileN

You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.

RUBRIC

I'll be evaluating the project based on the following criteria:

26:abc0:final tally of results (26/26)
*:abc0:submitted information for project by duedate [6/6]
*:abc0:got situated in and used class discord [6/6]
*:abc0:contributed to project documentation [2/2]
*:abc0:committed project related changes to semester repo [6/6]
*:abc0:logged into lab46 via SSH [6/6]

Pertaining to the collaborative authoring of project documentation

  • each class member is to participate in the contribution of relevant information and formatting of the documentation
    • minimal member contributions consist of:
      • within reasonable range of the the average edits (a value of at least four productive edits)
      • within reasonable range of the the content change average (a value of at least 1024 bytes (absolute value of data content change))
      • no zero-sum commits (adding in one commit then later removing in its entirety for the sake of satisfying edit requirements)
    • adding and formatting data in an organized fashion, aiming to create an informative and readable document that anyone in the class can reference
    • content contributions will be factored into a documentation coefficient, a value multiplied against your actual project submission to influence the end result:
      • no contributions, co-efficient is 0.50
      • less than minimum contributions is 0.75
      • met minimum contribution threshold is 1.00

Additionally

  • Solutions not abiding by spirit of project will be subject to a 50% overall deduction
  • Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction
  • Solutions not utilizing indentation to promote scope and clarity or otherwise maintaining consistency in code style and presentation will be subject to a 25% overall deduction
  • Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction
haas/spring2025/cprog/projects/abc0.txt · Last modified: 2025/01/22 21:05 by 127.0.0.1