Java Week1a
Java Week1a
• What is Programming?
programming is the set of instructions given
to the computer to perform a particular task.
• Why Programming?
Computer programming is essential because it
enables the creation, operation, and
enhancement of software that powers modern
technology and digital devices, solving complex
problems and improving human Prepared
life by Linda Otoo
Introduction to Programming and C++
• Algorithms:
Algorithms are the sequential step by step set of
instructions given to a computer to perform a
particular task.
• Computer programming languages:
These are formal languages that enables
communication to the computer
Eg.
System.out.println("what is your name?"); // this is a comment
• Multi-line Comments
Multi-line comments start with the statements with one forward slash and asterisks (/*) and ends
with asterisks and forward slash (*/). Any text found in between /* and */ will not be executed.
Eg.
/* I am a student programmer learning about comments in Java */
Prepared
Dear Student, kindly note that comments in Java is the same as we discussed by Linda Otoo
in C++.
Use of the output syntax
1. Pick a special character symbol(s) of your
choice and use it to design your full name
and print to the console
2. Use a special character symbol(s) of your
choice and create shapes such as square,
rectangle, triangle, trapezoid, circle, etc and
print to the console
3. Use a special character symbol(s) of your
choice to design any object (footballer, MTN
logo, bicycle, android, apple, etc.)
Questions and Answers
Thank You!!!