1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
// Headers and Other Technical Items
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
// Function Prototypes
void pause(void);
// Variables
ifstream inData;
ofstream outData;
char Carlos
char Jonathan
char Carmen
char Kathy
char Natalie
char John
char Sean
char Doug
char Yasmin
char Brad
int test_1, test_2, test_3, test_4, test_5;
int test_6, test_7, test_8, test_9, test_10;
int test_11, test_12, test_13, test_14, test_15;
int test_16, test_17, test_18, test_19, test_20;
int test_21, test_22, test_23, test_24, test_25;
int test_26, test_27, test_28, test_29, test_30;
int test_31, test_32, test_33, test_34, test_35;
int test_36, test_37, test_38, test_39, test_40;
int test_41, test_42, test_43, test_44, test_45;
int test_46, test_47, test_48, test_49, test_50;
//******************************************************
// main
//******************************************************
int main()
{
//Open files
inData.open ("Names.txt"); //open input file
outData.open ("Grades.txt"); //open output file
//code for data manipulation
cout << setw (1) << Carlos << end1;
cout << setw (1) << Jonathan << end1;
cout << setw (1) << Carmen << end1;
cout << setw (1) << Kathy << end1;
cout << setw (1) << Natalie << end1;
cout << setw (1) << John << end1;
cout << setw (1) << Sean << end1;
cout << setw (1) << Doug << end1;
cout << setw (1) << Yasmin << end1;
cout << setw (1) << Brad << end1;
//close files
inData.close();
outData.close();
return 0;
}
|