- Import features from the Java Standard Library
- Declare and instantiate a
Scanner
- Get input from the user using a
Scanner
- Use a
while
loop to get the computer to repeat instructions - Use a
for
loop to get the computer to repeat instructions - Use a
switch/case
structure to get the computer to make a decision - Use nested loops and decisions to control the flow of a program
- Accumulate a total in a variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Title : FSE100 Project – SPYN Disability Pick-up Car | |
% Version : v1.1.4 | |
% File Name : auto.m | |
% | |
% Description : | |
% Autonomous assistive vehicle developed for object pick-up support. | |
% It navigates using forward motion, detects colored tiles (red for stop, | |
% blue/green for manual override), and uses touch and ultrasonic sensors | |
% to detect and avoid obstacles. |
I often find myself explaining how to do this. It’s time I get wise and write a generic doc on it.
We’ll assume you want to add a binary, named binary
on macOS and Linux, and binary.exe
on Windows, to your PATH
. (How original, I know).
Enjoy.
macOS and Linux CLI #
Note: ${HOME}
is also known as ~
OlderNewer