Title | CS 1428 - Lab 2 |
---|---|
Course | Foundations of Computer Science I |
Institution | Texas State University |
Pages | 2 |
File Size | 24.8 KB |
File Type | |
Total Downloads | 78 |
Total Views | 145 |
Lab 2 for CS 1428 Ziliang Zong
Grade 100...
//Author: Rowan Rollman //Date: 14 September 2020 //Class: CS1428 HL1 //Description: This program will automatically review students for admissions // at a university. #include #include using namespace std; int main(){ //Define variables ofstream outFile; string lastName; float gpa, adjgpa; int extact, zip; //get user input and store in appropriate variables cout > lastName; cout > gpa; cout > extact; cout > zip; //open the output file stream in append mode using open("accepted.txt", std::fstream::app) outFile.open("accepted.txt", std::fstream::app); //adjust gpa using extracurricular activities if (extact...