Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zyx-0314/cp1-basics-part-1

A C++ console app that demonstrates basic input, output, and conditional statements. Users input their name, age, and favorite letter/number to interact with the system, which checks eligibility for schooling and handles errors. Features include switch statements and screen clearing.
https://github.com/zyx-0314/cp1-basics-part-1

basic-programming cpp school-project

Last synced: 2 months ago
JSON representation

A C++ console app that demonstrates basic input, output, and conditional statements. Users input their name, age, and favorite letter/number to interact with the system, which checks eligibility for schooling and handles errors. Features include switch statements and screen clearing.

Awesome Lists containing this project

README

        






Nyebe

Basic Input, Output, and Conditionals



A basic C++ console application demonstrating the use of input, output, and conditionals.


![](https://visit-counter.vercel.app/counter.png?page=zyx-0314/CP1-Basics-Part-1)

---

Table of Contents



  1. Overview

    1. Key Features

    2. Technology



  2. Roadmap

  3. Resources

---

## Overview

**Basic Input, Output, and Conditionals** is a simple C++ console application that demonstrates basic programming concepts such as input/output handling, conditionals, and switch statements. It collects the user's name and age, checks if the user is eligible for schooling, and provides feedback based on the age input. Additionally, it shows an example of character and number-based switch-case logic.

### Key Features

- **User Input**: Collects the user's name, age, and favorite letter and number.
- **Conditionals**: Uses `if`, `else if`, and `else` statements to determine if the user can go to school based on their age.
- **Error Handling**: Provides error handling for invalid age inputs.
- **Switch-Case Logic**: Responds to the user’s favorite letter and number using a `switch` statement.
- **Screen Cleaning**: Clears the terminal screen between inputs for better user experience.

### Technology

![C++](https://img.shields.io/badge/C++-00599C?style=for-the-badge&logo=c%2B%2B&logoColor=white)

## Resources

| Title | Purpose | Link |
|----------------------------|-----------------------------------------------|---------------------------------------------|
| C++ Documentation | Reference for C++ language features | https://cplusplus.com/doc/ |
| Console Applications in C++| Guide to building console apps in C++ | https://www.learncpp.com/ |

(back to top)