C Programming Challenges

Introduction

The following problems are available so you can practice your new skills in C programming. After you type in your program for a problem you will receive an accepted or wrong answer message based on running your program with some test data. Scarky has more information about error messages you may receive if your code is incorrect or does not compile.

These problems will not affect your grade so try as many times as needed to get a correct answer. Also feel free to help each other with these problems.

The chapter numbers correspond to our textbook: C Programming for the Absolute Beginner.

If you are looking for where to turn in your code for programming assignments, please go to http://ego.cse.msstate.edu

Sample

The sample programming challenge is provided along with a solution so you can see how the code submission process works. You will also see the message to expect when your code works correctly.

Sample Programming Challenge

Chapter 1

The chapter 1 programming challenges deal with printing output from a program. Their answers are very similar to the Sample Programming Challenge.

Chapter 1 Programming Challenges

Chapter 2

The chapter 2 programming challenges deal with

Chapter 2 Programming Challenges

Chapter 3

The chapter 3 programming challenges deal with making choices within programs. They can be completed by using if and switch...case statements.

Chapter 3 Programming Challenges




Please send any comments to , Computer Science and Engineering Instructor at Mississippi State University