AI Summary
[DOCUMENT_TYPE: user_assignment]
**What This Document Is**
This is a lab assignment for CEG 210 (PC Networking I) at Wright State University, specifically Lab 2 (CEG 2170). It focuses on foundational programming concepts within the C language. The lab is designed to provide practical application of control flow structures – specifically, iterative loops and decision-making statements – to solve defined problems. It requires students to write, test, and document C programs.
**Why This Document Matters**
This lab is crucial for students enrolled in introductory PC Networking courses that incorporate programming. A solid understanding of looping and conditional logic is essential not only for this course but also for more advanced networking topics where scripting and automation are frequently used. Students who successfully complete this assignment will strengthen their ability to translate problem statements into functional code, a skill highly valued in the field of computer engineering and related disciplines. It’s particularly helpful when preparing for projects that require data processing or user interaction.
**Common Limitations or Challenges**
This lab assignment provides the problem descriptions and expected outcomes, but it does *not* offer pre-written code, step-by-step instructions, or debugging assistance. Students are expected to leverage their understanding of C syntax and programming logic to independently develop solutions. It assumes a basic familiarity with a C development environment and compilation process. The assignment focuses on the core concepts of loops and switches and doesn’t cover advanced C features or error handling beyond the specified input validation.
**What This Document Provides**
* Two distinct programming tasks, each targeting a specific control flow structure.
* Detailed descriptions of the requirements for each task, including input parameters and expected outputs.
* Specific criteria for input validation to ensure program robustness.
* A sample interaction demonstrating the expected user experience and output format.
* Guidance on program documentation standards for submission.