Wednesday, November 23, 2016

Modify the code to be able to input an undetermined number of students. – Online Homework Help


  1. Modify the code to be able to input an undetermined number of students. You will still only have 3 exams for each student. Support your experimentation with screen captures of executing the new code. 
  2. Prepare a new test table with at least 3 distinct test cases listing input and expected output for the code you created after step 1. 
  3. What is the line of code doing?      char StudentName[100];

  4. (Hint: We haven’t covered arrays, but a String can be thought of as an array of characters) ?
    4. What would happen if you moved the Set Sum = 0.0 from inside the for loop to right after the declaration. For example:
    // Declare variables
    Declare StudentName as String Declare ExamValue, Sum, Avg as Float
    // Initialize Sum Set Sum = 0.0;
    Support your experimentation with screen captures of executing the new code. 

No comments:

Post a Comment