Object Oriented Programming with Java
ToledoSlackGitHub Org 1GitHub Org 2
Primary version
Primary version
  • About this Course
  • Introduction to Computer Programming
    • Introduction to Computer Programming
    • Challenges
    • Multiple Choice
  • Basic Building Blocks
    • Basic Building Blocks
    • Challenges
    • Multiple Choice
  • Starting in Java
    • Starting in Java
    • Challenges
    • Multiple Choice
  • Storing and Processing Data
    • Storing and Processing Data
    • Challenges
    • Multiple Choice
  • Making Decisions
    • Making Decisions
    • Challenges
    • Test Yourself
    • Multiple Choice
  • Loop Constructs
    • Loop Constructs
    • Challenges
    • Multiple Choice
  • Strings
    • Strings
    • Challenges
    • Multiple Choice
  • Arrays
    • Arrays
    • Challenges
    • Multiple Choice
  • Object Oriented Thinking
    • Object Oriented Thinking
  • All About Objects
    • All About Objects
    • Multiple Choice
  • Defining Classes
    • Defining Classes
    • Challenges
    • Multiple Choice
  • Methods
    • Methods
    • Challenges
    • Multiple Choice
  • Constructors
    • Constructors
    • Multiple Choice
  • Inheritance
    • Inheritance
  • Starting with JavaFX
    • Starting with JavaFX
  • Hands On
    • Hands on MQTT
    • Hands on GSON
  • Hack @ IT
    • Hack @ IT
    • Caesar Encryption
      • Solution
    • Complex Numbers
  • Assignments
    • Number Characteristics
    • Linear Equation
    • LineSegment
  • Videos
    • Videos
  • Sources
    • Sources
Powered by GitBook
On this page
  • Smartphone
  • Car or Motorcycle
  • BMI Personalization
  • BMI Adult Check
  • Student Grader
  • Rectangle Area
  • Summing a List of Numbers
  1. Basic Building Blocks

Challenges

Smartphone

Take a look at the CoolBlue website for one of the latest models of smartphones. What data would you require to store some of the most common properties of a smartphone product? Propose names for variables for each.

Car or Motorcycle

Image you needed to create a website to sell cars or motorcycles (pick for yourself). What data would you need to store about each car? Name at least 5. Propose names for variables for each.

BMI Personalization

Extend the BMI example (section on operators) to ask the user for his/her name and gender so a more personalized message can be outputted to the terminal.

What if the person did not like to provide its name. How would you handle that? Can you model it in the flowchart?

BMI Adult Check

Extend the BMI example (section on operators) to ask the user for his/her age. If the persons age is below 18, output a message that the calculated BMI is not accurate as the person is not an adult.

Student Grader

Model an application using a flowchart that asks the user to give his/her grade for a particular course. If its below average output an encouraging message, if its above average give a well done. If it's a perfect score output an original message.

Rectangle Area

Use a flowchart to model an application that calculates the area of a rectangle (width times height). Request the data from the user.

Summing a List of Numbers

Create a flowchart of a process that asks the user for 5 numbers. Make the sum of all the numbers the user gave. Output the result to the terminal. Also list the variables that you expect to need for this.

PreviousBasic Building BlocksNextMultiple Choice

Last updated 6 years ago