Computer Science 340
Programming Languages
Fall 2023, Siena College
This problem set consists of several relatively short programming tasks and other questions. You may work alone or with a partner on this assignment.
Getting Set Up
In Canvas, you will find a link to follow to set up your GitHub repository, which will be named names-probset-yourgitname, for this problem set. Only one member of the group should follow the link to set up the repository on GitHub, then others should request a link to be granted write access.
All GitHub repositories must be created with all group members having write access and all group member names specified in the README.md file by 11:59 PM, Wednesday, October 25, 2023. This applies to those who choose to work alone as well!
Languages on noreaster
This assignment will ask you to write programs in four languages: C, C++, C#, and Java. Please make sure all programs run on noreaster. In case you never knew or have forgotten, here is how to compile and run a program in each of these languages (using examples from the late penalty calculators repository).
To compile:
gcc -o late late.c -lm
Note that -lm is needed only if linking with math library functions.
To run:
./late
To compile:
g++ -o late late.cc
To run:
./late
To compile:
mcs Late.cs
To run:
mono Late.exe
To compile:
javac Late.java
To run:
java Late
Questions and Programs
All programs required are to be treated as "Practice Programs" in terms of collaboration and grading. You are welcome to discuss them with your classmates, and I will grade only on correctness, not documentation, style, etc. Of course, you should still make sure your name is in every file you submit! Unless otherwise specified, all programs should be included in your submission and you should make sure they run on noreaster. Written responses may be in a PDF file included in your repository or in the repository's README.md file.
Submission
Commit and push!
Grading
This assignment will be graded out of 60 points.
Feature | Value | Score |
Q1: PS 6 | 6 | |
Q2: PS 7 | 6 | |
Q3: PS 8 | 6 | |
Q4: PS 9 | 6 | |
Q5: PS 10 | 6 | |
Q6: PE 5 | 12 | |
Q7: PE 6 | 8 | |
Q8: PE 7 | 10 | |
Total | 60 | |