{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw2 - CS1372 Fall 2006 HW 02 Conditionals and for loops The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS1372 Fall 2006 HW 02 – Conditionals and for loops The aim of this introductory assignment is for you to familiarize yourself with data types, conditional statements and for loops. A basic Visual Studio Solution is accessible to you on the class web site as a zip file. Use this for the environment for solving the following problems. The Assignment The assignment is for you to program one C program that does the following: 1. Demonstrates the behavior of C programs with different data structures 2. Converts a numerical grade as a percentage to a letter grade 3. Wraps the conditional code in a for loop. The program must: Use one file only – name it basic.cpp Compile (very important – you get 0 if it doesn’t compile) Have a “main” function and have no other functions Use printf to output text to the screen, NOT cout or fprintf . Implement all three parts of the assignment within the “main” function Return properly Part 1 – Verify the behavior of C data types
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

hw2 - CS1372 Fall 2006 HW 02 Conditionals and for loops The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online