Question: The program first reads integer certificateCount from input, representing the number of pairs of inputs to be read. Each pair has a string and an
The program first reads integer certificateCount from input, representing the number of pairs of inputs to be read. Each pair has a string and an integer, representing the certificate's holder and level, respectively. One Certificate object is created for each pair and added to vector certificateList. Output "Average certificate level: ; followed by the average level of all the Certificate objects as an integer: End with a newline. Ex If the input is: 4 Noa 16 Mai 1 Huy 3 Gil 8 then the output is: Average certificate level: 7 Note: The Arraylist has at least one element. \#include = newHolder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
