Challenge 1: Make Robo Say Hello! 🚀
Welcome to this challenge! Work with Robo 🤖 to solve this problem step-by-step using algorithms and flowcharts.
🎬 The Story
Imagine you want to program Robo to welcome visitors when they walk into a room. Your task is to make Robo display the message: "Hello!".
📝 The Algorithm
- Start (Begin the program)
- Display "Hello!" (Print the message)
- Stop (End the program)
📊 The Flowchart
Here is how the flowchart looks. Notice how we use the Terminal shape for Start/Stop and the Input/Output shape for the print command.
💻 From Flowchart to Code
Here is how to implement this output logic in Python, Java, and C:
- Python
- Java
- C
# Display the greeting
print("Hello!")
public class Greet {
public static void main(String[] args) {
// Display the greeting
System.out.println("Hello!");
}
}
#include <stdio.h>
int main() {
// Display the greeting
printf("Hello!\n");
return 0;
}