Lab 5- Arrays Time left 159.07OBJECTIVEUpon completion of this lab, you will have demonstrated the ability to:+ Utiize arrays+ UseFile IO+ Construct modular code« Practice program...

This is a begigner coding class in C# no other launguage. I need need complex code


Lab 5- Arrays Time left 159.07 OBJECTIVE Upon completion of this lab, you will have demonstrated the ability to: + Utiize arrays + UseFile IO + Construct modular code « Practice program maintenance INTRODUCTION In this lab you will construct a practical program to calculate the grades as percentages, class average, and how many students passed and failed the assessment. The data of student grades will be loaded from a file. The file, which is supplied to you, will contain up to 25 student grades. PROJECTS Step 1: Create a C# Console App named CPSC1012-Labs- YourName where YourName s your first and last name. Step 2: Solve the problem below: Load quiz mark data from a file into an array, but not fill the array of an array size of 25. Process the array to find the class average and how many students passed/failed the assignment. ‘When reading the file, calculate the student's percentage, rounded to 2 decimal places. ‘The first line of the file contains the quiz total. The following is the data in the file (create your text file from this data): 3 ° = 5 = 2s = » = 7 = = ° 2 1 = % = 15 = 1.5 n = ‘You must use Methods in your solution and must have methods that do the following: « Load the array from a file + Display the array data as outined in the sample output below: + Calculate the average mark + Count the number of passing and failing marks (pass mark is 50% total / 2) Step 3: Test your program; here is some sample output Time left 1:58:49 Step 3: Test your program; here is some sample output Test 1: The file, ork \CPSC1812\Labs\Quiziarks. txt, does not exist! Test2: velcone to the Quiz Mark Calculator Quiz marks: quiz Total = 35 ark percentage oo eer 2.0 se.00% 13.0 s2.mex 3.0 71.43% 2s 7m 2.0 se.00% 2.0 s7.0% 2.0 se.00% 2e 77a 2.0 se.00% 2.0 se.00% oo eer 2.0 easx 10.0 s0.00% 2.0 se.00% 6.0 78.29% 3.0 71.43% me sna 2.0 se.00% 5 sek ze asa 2.0 se.00% The class average is 63.50% There were 17 passes and 5 fails. Step 4: Copy the code from your Program.cs file and paste to the text input field. Step 5: Upload the Program.cs file as an attachment using the file submission field. Upload screenshots of the console output for each test case using the file submission field (3 screenshots). Step 6: Click on the Finish attempt... button to submit the question. Step 7: Click on the Submit all and finish button to submit your quiz. CODING STANDARDS CODING STANDARDS Time left 1:58:36 ‘The following coding standards must be followed when developing your program: + An opening documentation at the beg + An opening documentation at the beg Example J7purgose: I/mmput Iovtput: Ifuritten by: Student tame Ifurstten for: Instructor Nene Isection: aos I/tast wodified pate: of the source file describing the purpose, input, process, output, author, last modified date of the program. of the source file describing the purpose, input, process, output, author, last modified date of the program. « Wite only one statement per line. « Wiite only one declaration per ine. + Use camelCase for local variable names. + Use PascalCase for constant variable names. «If continuation lines are not indented automatically, indent them one-tab stop (four spaces). + You are not allowed to use any of the following o array.sort() © array.Length «Hint: You can declare a class level variable as shown below if you are not using top-level statements: internal class Program { static double total; static void Main() { If you are using top-level statements then you can add the following to the end of Program.cs: public partial class Program { 3 This will allow you to get the quiz total from the first li a single value). For the method hints below, you can change the method signatures: © Hint: You can define a method to load data from the text file as shown below: static int LoadData(string dataFilePath, double[] marks) © Hint: You can define a method to print the array of marks as shown below: static void PrintMarks(double[] marks, int markCount) © Hint: You can define a method to print the return the average percentage as shown below: static double AveragePercentage(double[] marks, int markCount) © Hint Instead of creating a method to return the number of passes and the number of fails, you could define a method to print the number of passes and fails as shown below: static void PrintPassesAndFails(double[] marks, int markCount) static int total; ina method and the method can sill return of the file (a method can only retum 1 value thus you can assign a value to this class level variabl DEMONSTRATION/SUBMISSION REQUIREMENTS 1. Project should be uploaded to Moodle with screen shot of it working with al the test data that has been shown in the above examples MARKING RUBRIC [Mark| Description Excellent — program passes all test cases and coding follows best practices and class standards [Very Good — program passes all test cases, but coding does not follow best practices and class standards [Acceptable — coded all the requirements and program produces the expected results for some of the test cases| Needs Work — coded all the requirements but program fails to produce expected results Unsatisfactory — coded less than 50% of the requirements Not done or there are 1 or more build errors. ofan wala
Nov 19, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here