C++: Mathematical Functions - <cmath>
Tue Jul 29 2025
Dive into C++’s essential mathematical functions like pow, sqrt, abs, round, ceil, floor, sin, cos, and tan. This post explores real-world examples, mixed-type expressions, and operator precedence to help beginners master integer vs. floating‑point arithmetic in practical programming scenarios.
Read MoreC++ Type Conversion
Mon Jul 28 2025
Updated: Tue Jul 29 2025
Learn how to master type conversion in C++ with clear examples of static_cast, to_string, stoi, stod, stof, and stoll. This guide breaks down implicit vs. explicit casting, highlights common errors, and shows how to convert between strings and numbers safely. Perfect for beginners and intermediate programmers looking to strengthen their understanding of C++ type safety and conversions.
Read MoreC++ Assignment: Simple Calculator
Mon Jul 14 2025
- c++
- assignment
- input
- output
- arithmetic
Practice input, output, and arithmetic with this simple calculator. In this assignment you will read 2 values from the user, add/subtract/multiply/divide the two values read in, then output the results of the arithmetic.
Read MoreC++ Lab: 1B
Mon Jun 23 2025
- c++
- lab
- input
- output
- arithmetic
- floating-point arithmetic
- integer arithmetic
C++ Lab 1B builds on Lab 1A by diving into arithmetic expressions, constants, and type behavior in C++. This lab challenges students to explore how different data types affect calculations, including the impact of integer division and floating-point precision. It also introduces the const keyword and emphasizes good programming practices such as using symbolic constants. Aimed at students in their first programming course, Lab 1B bridges the gap between syntax familiarity and logical reasoning with data, giving learners a clearer grasp of how C++ handles computation under the hood.
Read MoreC++ Lab: 1A
Mon Jun 23 2025
C++ Lab 1A is the first hands-on lab exercise in an introductory computer science sequence, focused on building a strong foundation in C++ syntax. This lab teaches students how to declare and use variables, handle user input/output using cin and cout, and understand the behavior of different data types. It's ideal for first-time programmers and CS students looking to reinforce early concepts in a structured, practice-based format. By completing this lab, learners will gain confidence in writing basic C++ programs that interact with users and perform simple operations.
Read MoreC++ Assignment: Nails For Sale!
Mon Jun 23 2025
- c++
- assignment
- input
- output
- arithmetic
The AS1: Nails for Sale assignment offers a practical introduction to programming in C++ by simulating a real-world sales scenario. Designed for students in early computer science courses, this project reinforces skills in arithmetic operations, input/output handling, and conditional logic. Students build a program that interacts with the user, processes numeric data, and outputs formatted results—mirroring the kind of logical thinking required in real-world development. Ideal for educators seeking scaffolded CS assignments or learners looking to strengthen their core programming skills, this assignment is a stepping stone toward more complex C++ applications.
Read MoreC++ Assignment: Door to Door Salesman
Mon Jun 23 2025
- c++
- assignment
- input
- output
- arithmetic
The AS1: Door to Door programming assignment is a hands-on introduction to core systems programming concepts in C++. Tailored for students in early CS courses, this project simulates a simple logistics workflow, teaching students how to work with input/output streams, file processing, conditional logic, and command-line programs. It reinforces best practices in clean code and modular design while providing a realistic example of how data can be validated, processed, and reported across multiple "steps" or "doors" in a pipeline. Whether you're a computer science educator building curriculum or a student seeking to strengthen your programming fundamentals, this assignment provides a strong foundation for mastering low-level logic and I/O control in C++.
Read MoreC++ Assignment: The UNLV CS Shop Part 1
Thu Jun 19 2025
- c++
- assignment
- input
- output
- arithmetic
In this beginner-friendly C++ assignment, students will build a simple point-of-sale (POS) system for The UNLV CS Shop. Through real-world retail scenarios, students practice using `cin`, `getline()`, arithmetic operations, and output using `cout`. The program calculates subtotals, tax, and change, and outputs a formatted receipt.
Key concepts covered include input/output, variable types, basic math, and receipt-style console output. This project lays the foundation for more advanced topics like conditionals, loops, and functions in future assignments.
Read MoreC++ Assignment: The UNLV CS Shop Introduction
Thu Jun 19 2025
Welcome to The UNLV CS Shop — a fictional retail store designed to help beginner C++ students apply real-world logic to programming fundamentals. In this assignment, students will build a simplified sales system that mimics point-of-sale operations. From input/output handling and arithmetic operations to control flow, validation, and receipt formatting, this hands-on exercise simulates the logic used in modern retail software systems. Featuring a product catalog full of student essentials like laptops, chargers, coffee, and more, this assignment strengthens your programming skills while grounding them in relatable, real-world scenarios.
Whether you're learning how to capture user input or calculate totals with sales tax, this module lays the groundwork for more advanced programming projects. Perfect for introductory computer science students at UNLV and anyone looking to learn C++ through practical retail simulations.
Read MoreLab: Simple Arithmetic
Tue Jun 17 2025
This lab introduces students to working with floating-point and integer data types by combining user input, arithmetic operations, and formatted output. Students will write a program that takes two numbers as floating-point inputs, performs arithmetic operations (addition, subtraction, multiplication, division) using floating-point calculations, and then converts the inputs to integers to demonstrate integer division. This lab emphasizes the differences between floating-point and integer arithmetic, reinforcing key programming concepts that are fundamental for understanding data types and numerical operations in programming.
Read MoreC++ Arithmetic Operators
Tue Jun 17 2025
- c++
- arithmetic
- integer arithmetic
- floating-point arithmetic
- mixed expressions
- compound assignment
Master the fundamentals of C++ arithmetic with this comprehensive guide designed for beginners. Learn how to use arithmetic operators—including addition, subtraction, multiplication, division, and modulus—through clear explanations, real-world examples, and interactive code-based questions. Understand how integer and floating-point operations differ, how mixed-type expressions work, and how operator precedence (PEMDAS) affects your calculations. With hands-on programming exercises, evaluation drills, and conceptual breakdowns, this post equips you with the essential skills needed to perform accurate mathematical operations in C++ programming.
Read MoreC++ Assignment and Input
Tue Feb 18 2025
Learn the fundamentals of C++ input and output with this beginner-friendly guide. Explore key concepts such as variable assignment, user input with cin and getline(), handling strings, and avoiding common pitfalls when mixing input methods. Understand how the C++ input stream works, why getline() may be skipped after >>, and how to correctly prompt users for input. Perfect for new programmers looking to master C++ data handling, improve their coding efficiency, and build a strong foundation for more advanced programming concepts
Read MoreC++ Variables
Mon Feb 17 2025
Learn everything you need to know about C++ variables, including memory allocation, identifiers, keywords, data types, and best practices for variable declaration and initialization. This guide covers common compilation errors, debugging tips, and provides real-world C++ code examples to help you write error-free programs. Whether you're a beginner or an experienced programmer, this post will enhance your understanding of C++ variable management and help you avoid common pitfalls.
Read MoreASCII Table
Thu Feb 13 2025
Updated: Fri Feb 14 2025
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns unique numeric values (0-127 -- 128-255 for extended) to letters, digits, punctuation marks, and control characters. Widely used in computer programming, data communication, and text processing, ASCII enables seamless text representation and interoperability across different systems. Learn how ASCII characters work, explore the ASCII table, and understand its role in C, C++, Python, and other programming languages.
Read MoreC++ Data Types
Thu Feb 13 2025
Explore a comprehensive guide to C++ data types, covering integral types (int, short, long long, unsigned), floating-point types (float, double), booleans, characters, strings, and escape sequences. Learn about memory allocation, value ranges, and best practices for choosing the right data type. This essential resource is perfect for C++ beginners, programmers, and students looking to deepen their understanding of strongly typed data structures in modern C++ programming.
Read MoreC++ Assignment: Hello World ASCII Art
Wed Feb 12 2025
This assignment introduces the fundamental concepts of basic output in C++ by creating a simple program that prints a custom message to the terminal. The tasks include using preprocessor directives, managing namespaces, and structuring a basic C++ program, with an emphasis on familiarizing with CodeGrade for submitting and evaluating assignments. These foundational skills are critical for future programming tasks and lay the groundwork for more complex coding challenges. Completing this assignment builds confidence in writing, compiling, and running simple programs, which are crucial skills in both academic and professional settings.
Read MoreC++ Output
Sun Feb 09 2025
Updated: Mon Feb 10 2025
Master C++ output operations with this in-depth guide, featuring thought-provoking questions to reinforce fundamental concepts. Learn how to use the <iostream> library, output stream (cout), and stream insertion operator (<<) to efficiently display text in the terminal. Explore key formatting techniques, including multiple output statements, whitespace handling, and manipulators like endl for line breaks. Dive into ASCII art generation and understand the impact of line breaks on terminal output. Perfect for beginners and those looking to strengthen their C++ programming skills, this article covers essential concepts with practical insights.
Read MoreWriting and Running a Basic C++ Program
Fri Feb 07 2025
Updated: Sun Feb 09 2025
- c++
- main
- compiler
- preprocessor
Learn how to write, compile, and execute a basic C++ program with this beginner-friendly guide. This post explains the structure of a C++ program, including the essential main() function, preprocessor directives, and standard input/output operations. It also covers compiling C++ code using GCC, the compilation process (preprocessing, compiling, and linking), and how to run an executable program in a terminal. Whether you're new to C++ or looking for a clear breakdown of how C++ programs are executed, this guide provides a step-by-step approach to mastering the fundamentals. Perfect for beginners in C++ programming, software development, and computer science.
Read MoreC++ Assignment: Setting up a Programming Environment
Thu Jan 30 2025
Updated: Mon Jul 14 2025
Practice setting up a programming environment to be ready to write code in C++. This assignment will prepare you to write C++ code on either Mac or Windows using Visual Studio Code (VSC) and the g++ compiler.
Read MoreSetting up a C++ Programming Environment
Tue Jan 28 2025
Updated: Fri Jun 27 2025
- visual studio code
- vsc
- compiler
Learn how to set up a C++ programming environment with this beginner-friendly guide. Discover why traditional text editors fall short for coding and how an Integrated Development Environment (IDE) simplifies programming. This post highlights Visual Studio Code (VSC), a free and lightweight IDE perfect for learning C++ and other programming languages. Explore its key features, including a code editor, built-in terminal, compiler, debugger, and version control integration. Step-by-step instructions to download and install Visual Studio Code and a compiler are included, making it easy to start your programming journey. Perfect for beginners looking to code efficiently!
Read MoreC++ Problem-Solving Process
Tue Jan 28 2025
Updated: Mon Jul 14 2025
- c++
- computer
- processing programs
- syntax
- semantics
This post walks you through the full process of solving real-world problems with code—from analyzing requirements to writing, compiling, and debugging C++ programs. Using the example of building a login system for an MMORPG, it shows how to break down complex tasks, design effective algorithms, and translate ideas into working software. Perfect for beginners and CS students, it also explains how C++ code is turned into executable programs step by step.
Read MoreRemote Access
Tue Jan 28 2025
Updated: Mon Jul 14 2025
This guide explains what servers are and how they’re used to store, process, and serve data across networks. It walks through how to securely access remote servers using SSH, covering everything from authentication to terminal interaction. It also introduces SCP, a secure way to transfer files between local and remote machines. With real command-line examples and practical context, it’s a great starting point for anyone learning systems administration, remote development, or the fundamentals of networking.
Read MoreBasic Unix Commands
Tue Jan 28 2025
Updated: Sun Jul 13 2025
This hands-on guide walks through essential Unix commands for working with files and directories in a terminal environment. You'll learn how to navigate the file system with pwd, ls, and cd, create and remove files and folders using touch, mkdir, and rm, and view file contents using cat, head, and tail. Each command is paired with real output from a terminal session, making it easy to follow along and practice. Perfect for students, developers, and anyone getting started with Unix-based systems like macOS or Linux.
Read MoreCommand Line Interpreters
Tue Jan 28 2025
Updated: Sun Jul 13 2025
- computer
- directories
- files
- terminal
- command line
- unix commands
Get comfortable navigating your file system without relying on a GUI—learn how to use the command line across different operating systems. Whether you’re on macOS, Linux, native Windows Command Prompt, or Windows Subsystem for Linux (WSL), this guide walks you through opening a terminal, understanding the prompt, and using core Unix commands (like ls) to explore directories and handle files. Ideal for anyone looking to streamline workflows, automate tasks, or level up their programming environment with more powerful tools.
Read MorePhysical Computers and Operating Systems
Tue Jan 28 2025
Updated: Sun Jul 06 2025
- computer
- operating systems
- macOS
- linux
- windows
This guide walks through how modern computers are built from the ground up—starting with physical components like the CPU, RAM, and storage, and moving into how operating systems bring them to life. It explains core responsibilities of an OS, including process management, memory allocation, device I/O, and file systems, all through accessible examples. It also compares major operating systems—macOS, Linux, and Windows—highlighting how they structure data, manage hardware, and differ in openness and design philosophy. Whether you're just getting into computer science or trying to understand what makes your system tick, this is a solid introduction to how software and hardware come together.
Read MoreData Representation
Tue Jan 28 2025
Updated: Mon Jul 14 2025
- computer
- memory units
- conversion
- binary
- hexadecimal
- ascii
From bytes and kilobytes to petabytes and beyond, this guide explains how computers group and measure data in memory—and why powers of 1024 matter. It walks through step-by-step algorithms for converting between decimal, binary, and hexadecimal systems, with clear examples for each. You'll also learn how characters on your keyboard are stored as binary data using ASCII. Whether you're a CS student or just curious how computers think in 1s and 0s, this is a practical introduction to the logic behind data representation and memory structure.
Read MoreComputer Basics
Mon Jan 27 2025
Updated: Sat Jul 05 2025
This comprehensive guide delves into the fundamental concepts of computer architecture and operation, offering clear and accessible explanations for new programmers. It covers the Von Neumann architecture, including its core components such as input devices, output devices, the central processing unit (CPU), and both primary (RAM) and secondary memory (storage). The article explains the digital nature of computers, focusing on the significance of bits and their groupings—such as bytes, 32-bit, and 64-bit instructions—and how these form the foundation of machine language. Additionally, it emphasizes the role of high-level programming languages in making programming more intuitive by abstracting the complexities of machine code. Complete with definitions and examples, this resource is perfect for beginners seeking to understand how computers process data and execute instructions.
Read MoreComputer Science Bridge Syllabus
Sun Jan 26 2025
Updated: Mon Jul 14 2025
Syllabus for the Computer Science Bridge Course at the University of Nevada, Las Vegas (UNLV).
Read MoreCS 135 Lab Syllabus
Sun Jan 26 2025
Syllabus for Computer Science 135 Lab (CS1 Lab) at the University of Nevada, Las Vegas (UNLV).
Read MoreCS 135 Syllabus
Sun Jan 26 2025
Syllabus for Computer Science 135 (CS1) at the University of Nevada, Las Vegas (UNLV).
Read More