Skip to content

noasht/Introduction_to_Programming_Using_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Programming (C++)

📚 Introduction to Programming course assignments at SCE College of Engineering

Language: C++ | Topics: I/O, Loops, Functions, Arrays, Pointers, Recursion


📚 Course Overview

This repository contains all programming assignments completed during the Introduction to Programming course at SCE College of Engineering.

🗂️ Project Structure

├── HW1_Basics/
│   └── main.cpp
├── HW2_Chat_System/
│   └── main.cpp
├── HW3_Battleship/
│   ├── part1_arrays.cpp
│   ├── part2_strings.cpp
│   └── part3_battleship.cpp
├── HW4_Dictionary/
│   └── main.cpp
└── HW5_Recursion/
    └── main.cpp

📝 Assignments

Assignment 1: I/O, Basic Operations & Conditions

Topics: Input/Output, Operators, Conditional Statements, Switch-Case

Section Description
Case Change Converts characters between uppercase and lowercase
Digit Search Counts occurrences of a digit in a 4-digit number
Failed Check Calculates average of passing grades (≥56)
Arithmetic Progression Checks if 5 numbers form an arithmetic sequence
Palindrome Determines if a 5-digit number is a palindrome

Assignment 2: Loops, Nested Loops & Functions

Topics: Loops, Nested Loops, Functions, Input Validation

Project: SCE Internet Company Chat System 💬

Feature Description
🆕 New Client Registration Validates name, age, email, and credit card
👤 Existing Client Services Monthly billing, company info, support requests
🚪 Leave Company Request to leave with follow-up scheduling
🎨 Company Logo Dynamic ASCII art "S" logo with customizable size

Assignment 3: 2D Arrays & Strings

Topics: Arrays, Strings, 2D Arrays, Game Logic

Part 1: Array Comparison

Function equal() - Compares two arrays and returns count of matching indices.

Part 2: String Processing

Function words() - Finds and prints all words of a specific length.

Part 3: Battleship Game 🚢

Complete implementation of the classic Battleship game with random ship placement, attack system, and win detection.


Assignment 4: Pointers, Dynamic Allocation & Recursion

Topics: Pointers, Dynamic Memory, Recursion, Sorting

Project: English Dictionary 📖

Feature Description
📥 Data Input Words and definitions
✏️ Auto-Correction Capitalizes first letters
🔤 Sorting Lexicographic sorting (recursive)
🔍 Binary Search Efficient recursive word lookup

Assignment 5: Recursion & File I/O

Topics: Recursion, File Handling, String Processing

Function Description
balance_parenthesis Checks if parentheses in file are balanced
num_of_neg Counts negative numbers in array
num_of_odd_digits Counts odd digits in a number
equal_strings Case-insensitive string comparison
differentials Prints differences between consecutive elements

📄 License

Academic coursework at SCE College of Engineering.

About

Introduction to Programming course assignments (C++)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages