Skip to content

Sarlynoel020/assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸ“˜ Assignment

Goal

Validate fundamentals from today β€” #!/bin/bash, echo/printf, read -r, variables, numeric validation, if/elif/else, while + for loops, sleep, date, and basic menu flow.

Task

Write a script that:

  • Has a banner and comments.
  • Asks for name, age, and city (validate numeric age).
  • Uses one of the numeric comparison operators β€” for example, -ge.
  • Uses if/elif/else for decision-making.
  • Shows a menu or list of options and handles invalid input.
  • Simulates an order with sleep and prints time using date.
  • Wraps the flow in a while loop so the user can repeat or exit.
  • Ends with a closing message.

Deliverables (Screenshots)

1️⃣ cat your_script.sh showing header + banner
2️⃣ ls -l your_script.sh (permissions)
3️⃣ Successful run with name, age, and choice
4️⃣ Invalid age β†’ error
5️⃣ Invalid option β†’ message
6️⃣ While loop repeat + exit
7️⃣ Sleep + date output

Submission

  • Fork this repository (or download it and create your own repo).
  • Add your completed .sh script and screenshots (you can put them in a folder called screenshots/).
  • Commit and push your changes.
  • Share your GitHub repo link in zbc_general chat under the assignment post.
  • Add 2–3 short bullets: what worked, what was tricky, and one takeaway.

πŸ•’ Due: Before our next meeting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors