diff options
| author | Bold Demchig <[email protected]> | 2022-11-02 20:55:52 -0700 |
|---|---|---|
| committer | Bold Demchig <[email protected]> | 2022-11-02 20:55:52 -0700 |
| commit | e3a548321784429e3a2dc0bbf2de7fccf13da001 (patch) | |
| tree | 04e542dd16a71176b00c0230374f42f167f1ae72 | |
| parent | Initial commit (diff) | |
| download | cst116-ch11-debugging-batbold74-e3a548321784429e3a2dc0bbf2de7fccf13da001.tar.xz cst116-ch11-debugging-batbold74-e3a548321784429e3a2dc0bbf2de7fccf13da001.zip | |
Hello Professor Martha, I had to push my Midterm
Exam here. I could not get into Canvas.!
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 7 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 1 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters | 3 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp | 29 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/TEMPChap_11_Report.txt | 0 | ||||
| -rw-r--r-- | CST116-MidterExam-Bold.txt | 26 |
6 files changed, 62 insertions, 4 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..afcde83 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -68,8 +68,7 @@ const int EMPLOYEES = 20; const int MAX = 21; int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[]); -void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[], - int counter); +void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[], int counter); void PrintTotalsAndSummary(ofstream& out, int totalRecords); int main() @@ -81,9 +80,9 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + ofstream outFile("C:\TEMP\Chap_11_Report.txt"); - inFile.open("C:\\TEMP\\Chap_11_data.txt"); + inFile.open("C:\TEMP\Chap_11_data.txt"); if (inFile.is_open()) { diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj index 2073e5b..1c15d13 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj @@ -128,6 +128,7 @@ </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="CST116-Ch11-Debugging.cpp" /> + <ClCompile Include="CST116-Midterm-Bold-Demchig.cpp" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters index 2029dc7..9003692 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters @@ -18,5 +18,8 @@ <ClCompile Include="CST116-Ch11-Debugging.cpp"> <Filter>Source Files</Filter> </ClCompile> + <ClCompile Include="CST116-Midterm-Bold-Demchig.cpp"> + <Filter>Source Files</Filter> + </ClCompile> </ItemGroup> </Project>
\ No newline at end of file diff --git a/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp b/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp new file mode 100644 index 0000000..29a40b2 --- /dev/null +++ b/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp @@ -0,0 +1,29 @@ +/* +DEMCHIG BOLD +MIDTERM EXAM +*/ + +#include <iostream> + +using std::cin; +using std::cout; +using std::endl; + +int main() { + + int array[10]; + int class_number = 0; + char name; + float gpa = 0; + + cout << "Please enter class number: " << endl; + for (int i = 0; i < 10; i++) + { + cin >> array[i]; + } + + cout << "Class number: " << array; + + + return 0; +}
\ No newline at end of file diff --git a/CST116-Ch11-Debugging/TEMPChap_11_Report.txt b/CST116-Ch11-Debugging/TEMPChap_11_Report.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/CST116-Ch11-Debugging/TEMPChap_11_Report.txt diff --git a/CST116-MidterExam-Bold.txt b/CST116-MidterExam-Bold.txt new file mode 100644 index 0000000..f5329d7 --- /dev/null +++ b/CST116-MidterExam-Bold.txt @@ -0,0 +1,26 @@ +/* +DEMCHIG BOLD +MIDTERM EXAM +*/ + +#include <iostream> + +using std::cin; +using std::cout; +using std::lengl; + +int main(){ + +int array[10]; +int class = 0; +char name; +flot gpa =0; + +cout <<"Please enter class number: " <<endl; +for (int i=0; i) + + + + +return 0; +}
\ No newline at end of file |