

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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:
The program must:
Part 1 – Verify the behavior of C data types
Part 2 – Convert a random numerical grade to a letter grade
Grade: 78; letter grade: C
#include <stdio.h> #include <stdlib.h>
int main(void) { srand(0); // do this once at the top of your program int x = rand(); // use this for each random number printf("Random number %d; max is %d\n", x, RAND_MAX); getchar(); return 0; }
Part 3 – Iteration using a for loop
Submission
basic.cpp to the WebCT Vista2 website (http://webct.gatech.edu/gtvista2).