Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Factor the polynomial. 125 - (4a - b) 3

Answered: 1 week ago