Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The WeVideo Academy holds a competition to find new talented video producers. Candidates need to prepare video clips according to the theme given each

 

The WeVideo Academy holds a competition to find new talented video producers. Candidates need to prepare video clips according to the theme given each week. The video clips are judged based on SMS votes (50 %) and jury's marks (50%). Each week the candidate who has the lowest score is eliminated. Write C++ statements to do the following tasks: Consider the candidate's information comprise of candidate's ID, SMS votes, jury's marks, and total scores. Write a struct definition named candidates Info that stores the candidate's information. Use appropriate data type for each member of struct. Declare a variable of type candidates Info and initialize the values as follows: candidate's ID to "null string". SMS votes to 0, jury's marks to 0 and total scores to 0.0. Write a function named calcFinalscore() that receives a variable of type candidates Info through its parameter. This function then calculates and returns the total scores of candidates where the weightage of the SMS marks and jury's marks is FIFTY (50) percent each. Write a function named findHighLow() that receives a variable of type candidates Info, highest and lowest score through its parameter. This function will determine which candidate has the highest and lowest total score. Then, this function returns the updated highest and lowest score through passing by reference.

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_2

Step: 3

blur-text-image_3

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

Operations Research An Introduction

Authors: Hamdy A. Taha

11th Edition

0137625723, 978-0137625727

More Books

Students also viewed these Operating System questions