Skip to main content

Challenge 2: Remember a Friend's Name! 🚀

Welcome to this challenge! Work with Robo 🤖 to solve this problem step-by-step using algorithms and flowcharts.

🎬 The Story

Robo meets a new user. Instead of saying a generic hello, help Robo ask for their name, remember it, and say a personalized "Hello [Name]!".

📝 The Algorithm

  1. Start (Begin the program)
  2. Ask the user's name (Output prompt)
  3. Read the name and save it in a box called name (Input)
  4. Display "Hello " + name (Combined Output)
  5. Stop (End the program)

:::note What is a Variable? A Variable is like a labeled storage box in the computer's memory. In this challenge, we created a box labeled name to store whatever name the user types in. :::

📊 The Flowchart

Here, the parallelogram is used twice: once to read the input name, and once to output the combined message.


💻 From Flowchart to Code

Here is how to read input and combine it with a greeting in Python, Java, and C:

# Ask and read name
name = input("What's your name? ")
# Greet by name
print("Hello " + name + "!")

🔗 Next Steps

📍 Visit Us

🏫 VD Computer Tuition Surat

VD Computer Tuition
📍 Address
2/66 Faram Street, Rustompura
Surat395002, Gujarat, India
📞 Phone / WhatsApp
+91 84604 41384
🌐 Website

Computer Classes & Tuition — Areas We Serve in Surat

AdajanAlthanAmroliAthwaAthwalinesBhagalBhatarBhestanCanal RoadChowkCitylightDumasGaurav PathGhod Dod RoadHaziraJahangirpuraKamrejKapodraKatargamLimbayatMagdallaMajura GateMota VarachhaNanpuraNew CitylightOlpadPalPandesaraParle PointPiplodPunaRanderRing RoadRustampuraSachinSalabatpuraSarthanaSosyo CircleUdhnaVarachhaVed RoadVesuVIP Road
📞 Call Sir💬 WhatsApp Sir