(Solved) : Pa 2 Ccin Chapter 7 Exercise User Dafined Bimpla Deta Typas Namdras Atring Type Goalss Lab Q41367698 . . .

Pa 2 CCIN CHAPTER 7 EXERCISE User-Dafined Bimpla Deta Typas, NamDRAs and the atring Type Goalss In this lab assianment. studeGRo Kate the output Report File abudent Anal.bxt in the tallowinn format: Lantinm ntMama M.Takl Tt2 Teat Tast4 inaliattnnda ACSCI4 Lab 4 Page 4 3.004.00 83%-88% BO%-82% 2.8714.00 B- C+ 77%-79% 2.334.00 C 73%-76% 2.004.00 70% -72% 1.6714.00 Dr 67% -69Styles Lab 4 CSC134 Paga 5 PART B: (STRING) Program Description Write a wood poosk program thakseas an input data file for aPa 2 CCIN CHAPTER 7 EXERCISE User-Dafined Bimpla Deta Typas, NamDRAs and the atring Type Goalss In this lab assianment. students will demonstrate the abitlitv to: Learn how to create User-Defined Simple Data Types, NmaARCes and use the string type in C++. Gradiaa Be sure to follow the Coding Standard Guidelines. You must properly indent and comment vour code. Each proaram is worth 50 points Grading rubric: Indent code and insert comments to document your program. [5 pts) Program must be implemented and run as instructed. 140 ptsl Al & minimum, include: Source file (Lab4A.cpp) and executable (Lab4A.exe) are placed in a folder called Lab4A YourName. The folder is zipped up into a file called (Lab4A YourName.zip or Lab4A YourName.zipx, or Lab4A YourName.rar). The zipped file is submitted to Blackboard. Please use these file names exactly. [5 pts Use a similar format for Part B (i.e. LabAB.cpp and Lab4B.exe, etc.). Make sure to include input files (if applicable). Instructions Please read this lab exercise thoroughly, before attempting to code. Il would be a good idea to use pencil and gaper to organize your thoughts on how best to solve this exercise PART A Program Descriptinn: Write a progrem to geusuate a report bast4 on inut coctcd L a l fle Suppose 1e input eal ile student grades.txt coaas Hhe studeal Last Dau Fast geue SN Test Test2, Test 3, and Test4 i.e. 49.0 83.0 Allalfa Aloysius 123-45-6789 90.0 100.0 GRo Kate the output Report File abudent Anal.bxt in the tallowinn format: Lantinm ntMama M.Takl Tt2 Teat Tast4 inaliattnnda Aalta Aloyalus 123-45-6709 90.0 100.0 83.0 49.0 C+ Last aame First oama SSN Testi Test2 Test3 Test4 Final Grade The program must be aitteo to use the eaum latter..orade: eQualetter..orede (A, A PLUS, A MINUS, B,B PLUS, B_MINUS, C, C_PLUS, C MINUS,D,D_PLUS, D MINUS,F) Use the followlna tunction prototype for derlvlna latter grade 1 Letterarade declxeGrade(double avecage); (test1 + test2 + test3 + test4)/4.0 The avesaae is calculated as (allows The tuoctinn derlxeGrade.sbaulddesive the letter..acode of the studant basad on the lollowaA Ocadioa scale. Letter Orade Peroentage OPA 07% 4 334 00 or 4.004 00 92%9 4 0e4 00 O%-2% 6714 00 A 87%% Focus CSCI4 Lab 4 Page 4 3.004.00 83%-88% BO%-82% 2.8714.00 B- C+ 77%-79% 2.334.00 C 73%-76% 2.004.00 70% -72% 1.6714.00 Dr 67% -69% 1334.00 D 63%-66% 1 Co4.00 Dr 60%-62% 0674.00 F 0.004.00 05-59% Also prRvide the following function: string convertToText(letter..grade grade); //This function converts, a letterarade type to a string type. NOTES Place the napseace in a header file (i.e. gredah and place both the enue, type and ietlearade luoction in the oawesnce stdGcade Styles Lab 4 CSC134 Paga 5 PART B: (STRING) Program Description Write a wood poosk program thakseas an input data file for a wood apocißed by the user. The program should display the ouoo of times the wDed anpea the input data file. In addition, the program ghouid count and diaplay the ouohs af chaatecs in the input data flie that are not woupls ouRprogram must do this by pARddRa the telawra RSHRRS: woid ococessFle(Ustoeao SunElo, string Suad, int BadCouat, int BpopMawaCauat): woid disnlauResulstring woand, int wand.Count, int oonMoveelCount) Both tunctions.sbould.be.caled tram maint). No non-constant global variables sbould be ueed. Test your program using the file provided “paragraph.dat”. Show transcribed image text Pa 2 CCIN CHAPTER 7 EXERCISE User-Dafined Bimpla Deta Typas, NamDRAs and the atring Type Goalss In this lab assianment. students will demonstrate the abitlitv to: Learn how to create User-Defined Simple Data Types, NmaARCes and use the string type in C++. Gradiaa Be sure to follow the Coding Standard Guidelines. You must properly indent and comment vour code. Each proaram is worth 50 points Grading rubric: Indent code and insert comments to document your program. [5 pts) Program must be implemented and run as instructed. 140 ptsl Al & minimum, include: Source file (Lab4A.cpp) and executable (Lab4A.exe) are placed in a folder called Lab4A YourName. The folder is zipped up into a file called (Lab4A YourName.zip or Lab4A YourName.zipx, or Lab4A YourName.rar). The zipped file is submitted to Blackboard. Please use these file names exactly. [5 pts Use a similar format for Part B (i.e. LabAB.cpp and Lab4B.exe, etc.). Make sure to include input files (if applicable). Instructions Please read this lab exercise thoroughly, before attempting to code. Il would be a good idea to use pencil and gaper to organize your thoughts on how best to solve this exercise PART A Program Descriptinn: Write a progrem to geusuate a report bast4 on inut coctcd L a l fle Suppose 1e input eal ile student grades.txt coaas Hhe studeal Last Dau Fast geue SN Test Test2, Test 3, and Test4 i.e. 49.0 83.0 Allalfa Aloysius 123-45-6789 90.0 100.0
GRo Kate the output Report File abudent Anal.bxt in the tallowinn format: Lantinm ntMama M.Takl Tt2 Teat Tast4 inaliattnnda Aalta Aloyalus 123-45-6709 90.0 100.0 83.0 49.0 C+ Last aame First oama SSN Testi Test2 Test3 Test4 Final Grade The program must be aitteo to use the eaum latter..orade: eQualetter..orede (A, A PLUS, A MINUS, B,B PLUS, B_MINUS, C, C_PLUS, C MINUS,D,D_PLUS, D MINUS,F) Use the followlna tunction prototype for derlvlna latter grade 1 Letterarade declxeGrade(double avecage); (test1 + test2 + test3 + test4)/4.0 The avesaae is calculated as (allows The tuoctinn derlxeGrade.sbaulddesive the letter..acode of the studant basad on the lollowaA Ocadioa scale. Letter Orade Peroentage OPA 07% 4 334 00 or 4.004 00 92%9 4 0e4 00 O%-2% 6714 00 A 87%% Focus
CSCI4 Lab 4 Page 4 3.004.00 83%-88% BO%-82% 2.8714.00 B- C+ 77%-79% 2.334.00 C 73%-76% 2.004.00 70% -72% 1.6714.00 Dr 67% -69% 1334.00 D 63%-66% 1 Co4.00 Dr 60%-62% 0674.00 F 0.004.00 05-59% Also prRvide the following function: string convertToText(letter..grade grade); //This function converts, a letterarade type to a string type. NOTES Place the napseace in a header file (i.e. gredah and place both the enue, type and ietlearade luoction in the oawesnce stdGcade
Styles Lab 4 CSC134 Paga 5 PART B: (STRING) Program Description Write a wood poosk program thakseas an input data file for a wood apocißed by the user. The program should display the ouoo of times the wDed anpea the input data file. In addition, the program ghouid count and diaplay the ouohs af chaatecs in the input data flie that are not woupls ouRprogram must do this by pARddRa the telawra RSHRRS: woid ococessFle(Ustoeao SunElo, string Suad, int BadCouat, int BpopMawaCauat): woid disnlauResulstring woand, int wand.Count, int oonMoveelCount) Both tunctions.sbould.be.caled tram maint). No non-constant global variables sbould be ueed. Test your program using the file provided “paragraph.dat”.

Expert Answer


Answer to Pa 2 CCIN CHAPTER 7 EXERCISE User-Dafined Bimpla Deta Typas, NamDRAs and the atring Type Goalss In this lab assianment. …