Unit 1-02
Learning Outcome
At the end of this lesson, you will be able to:
- Understand how to navigate the Linux Terminal (Unix Server)
- create an application that does something useful
- review the 6 computer steps to solving a structured problem
Silent Watching
- watch this video
- then this video
Review
- make sure you have your notebook formatted correctly
- ensure you have an entry for EVERY class we have
- why is the "Hello World" program important
- one of the biggest hurdles in programming is getting through all the "little things", just to make something show up
Lesson
- go over Programming Style Guide, the code you write is not just for you, it is for other people too!
- what is a comment
- you MUST have the header on every file of code
- if I do not know it is from you, I can not give you the marks!
/****************************************************************************
*
* Created by: Mr. Coxall
* Modified by: Mr. Atkinson
* Created on: Mar 2016
* Last Modified on: Dec 2018
* This program calculates the number of logs that will fit on a truck,
* if you know their length
*
****************************************************************************/
Activity
- Review the topics in this Linux Tutorial in order to become more comfortable navigating the Unix Server
- read "Problem Solving", Chapter 2, Computer Based Problem Solving
Daily Assignment
- read the following problem:
- Depending on the logging company, maple logs are cut into lengths of either 0.25 m, 0.5 m or 1m.
- Maple logs weigh 20 kg/m and a logging truck can carry 1100 kg.
- How many maple logs should be placed on a truck if you know the lengths of the logs? (Note: a truck will only take 1 length type of logs at a time).
- create the first 3 steps of a "Computer Programming 6 Step" problem-solving model for the above question
- do it in Google Docs using "proper" flowchart symbols and show me before proceeding
- you might want to use Lucidchart to make your flowchart
- use your school Google account to login and it is free
- you might want to use Lucidchart to make your flowchart
- once your first 3 steps are approved, do the next 3 in Java so that a person can select the company and the program tells the user how many logs can go on a truck
- post the solution and then the final program on your website
- top-down design
- flow-chart
- pseudo-code
- at least three (3) test cases calculated out using some other method then your program (ensure you show how you calculated each one of them out!)
- actual code
- three screenshots of the program working (with actual values from your test cases above)
- link and screenshot of Github repo
Extra
- do the above in a second language