Homework 1, Setting Up Your Environment.
Short Description:
Establish a basic working environment for the semester.
This assignment is worth 10 points.
Goals
When you finish this homework, you should have:
- Set up an programming environment for the semester.
- Logged into cslab103.cs.edinboro.edu
- Entered, compiled, debugged and run a program.
Formal Description
This assignment is designed to get you ready to start coding at Edinboro. The goals of the exercise are the same for everyone, but the way you accomplish this might be different.
We will discuss different environments in class, your job is to select one or two and make it work for you. This may be easy or it may be difficult. Please seek advice and assistance if you run into problems.
You have two weeks to accomplish this task. Please do not put it off until the last day. You may encounter difficulties that can not be overcome instantly. In addition, we will begin coding in class soon and you should be able to duplicate that in the environment you will be using.
- Start a word document.
- Please use the word format, not pdf or any other document format.
- Microsoft office is available for all students
- You can use office on line.
- You can use an open source document editor which saves in word format.
- Place your name and identifying information in this document.
- You will answer questions and place screen shots in this document for the next section.
- Please make sure you label each step clearly before your response for each section.
- Set up your home work environment
- You may do one or more of the following options.
- Windows, easy
- Install a text editor, I would suggest notepad++
- Install a file transfer program, I would suggest WinSCP
- Install a terminal emulator, I would suggest PuTTY.
- Windows, more challenging
- Install an IDE such as Code::Blocks
- You will still need to compile your code on cslab103 before submission.
- Install a file transfer program, I would suggest WinSCP
- Install a terminal emulator, I would suggest PuTTY.
- Linux, easy
- This assumes you have a linux setup at home.
- Install a text editor, I would suggest kate.
- Alternatively or additionally install an IDE like Code::Blocks
- Install a terminal editor, I use xterm, but any will do.
- Learn to use sftp, ssh to log into cslab103.
- Linux, more challenging
- DO NOT WIPE OUT YOUR WINDOWS INSTALL for linux unless you are really committed to this.
- Install linux on a computer or virtual machine.
- Do all the steps above.
- DO NOT WIPE OUT YOUR WINDOWS INSTALL for linux unless you are really committed to this.
- macOS
- I am not a mac user, but I would try the Linux, easy steps.
- Some other option, please document how you plan to edit, compile and execute code on cslab103.
- Decide only to work in the lab.
- Add a statement to your document declaring that this is your choice.
- For each option selected:
- Add a note in your document describing your choice.
- Take a screen shot of an editor, a sftp client and a pseudo-terminal in action and place this in your word document.
- Go to the lab and use one or more of the computers there.
- As you enter, Windows on the right, Linux on the left.
- Edit, compile and execute a program.
- Add a screen shot of this in action as in the previous step.
- Best option: Try both.
- From your home environment create, compile and run the following program.
- Type in the following program, replacing my name with yours.
- Compile this program on cslab103 with the following command
- Once all of the errors are removed, run the program on cslab103
- Take a screen shot of the code running on cslab103 and add this to your document.
- From the lab environment create, compile and run the following program.
Some Resources
- Some Local guides for using the system.
- If you need a password reset on the cslab machines please fill out a ticket at https://edinboro.samanage.com/
- Select New Problem Ticket
- The category should be Math & CS
- Please note, this is not your UNIVERSITY password, this is your math and computer science password.
- Please use my notes
- Please use your notes from class.
Required Files
A word document as described above.
Submission
Submit your word document to the Homework 1 D2L folder by the due date.