The WeVideo Academy holds a competition to find new talented video producers. Candidates need to prepare...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these operating system questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Revvit is an online motorcycle equipment store that sells motorcycle helmets, boots, jackets, and more. With no brick-and-mortar stores, Revvit relies on many systems to provide an excellent customer...
-
Daniel Kaffe, CFO of Kendrick Enterprises, is evaluating a 10-year, 7.5 percent loan with gross proceeds of $4,450,000. The interest payments on the loan will be made annually. Flotation costs are...
-
Each of the matrices in Problem is the result of performing a single row operation on the matrix A shown below. Identify the row operation. -3 %3D 6. -3 12
-
Clickety Ltd is preparing a master budget for the first quarter of the financial year ending 31 March 2025, and has compiled the following data. 1. The firm sells a single product at a price of $26...
-
High school seniors with strong academic records apply to the nations most selective colleges in greater numbers each year. Because the number of slots remains relatively stable, some colleges reject...
-
A 200 mm reinforced concrete wall carries a dead load of 140 kN/m including self-weight and a live load of 60 kN/m. It is to be carried by 500 mm thick footing with its bottom 1.5 m below NGL. Soil...
-
What is meant by the term "double taxation" as applied to the corporate form of business organization? Explain.
-
Who selects members of the Board of Governors? Does Congress play a role? Who selects the Boards chair and vice chair? Who selects senior officers of Reserve Banks?
-
Explain why and how the following features affect mortgage borrowing interest rates: monthly payments, amortization, an escrow account for taxes and hazard insurance.
-
Does a positive aggregate demand shock have the same effect on output and inflation as a positive supply shock? How do inflation expectations come into play?
-
How do the consequences of a one-off shock differ from a more persistent shock? How do inflation expectations come into play?
-
If inflation expectations were to increase, what would be the implications for actual inflation? How would this affect the twin goals? What would be required to return inflation to its previous rate?
-
Complete the table ?? Undo L32 67899 16 17 Cash 19 20 21 18 Accounts recieveable Inventories 2273848885 26 Clipboard 29 A Assets ($ millions) fx 31 32 133 34 35 36 Total current assets Net plant and...
-
Find the radius of convergence in two ways: (a) Directly by the CauchyHadamard formula in Sec. 15.2. (b) From a series of simpler terms by using Theorem 3 or Theorem 4.
-
Show that in separable convex programming, it is never optimal to have x ki > 0 when x k 1, i is not at its upper bound.
-
GECO is contracted for the next 4 years to supply four aircraft engines per year. Available production capacity and production costs vary from year to year. GECO can produce five engines in year 1,...
-
Formulate the Fairville tax problem, assuming that the town council is specifying an additional goal, G5, that requires gasoline tax to equal at least 10% of the total tax bill.
-
How did the Fed hit its target for the federal funds rate in the pre-2008 scarce-reserves regime?
-
Draw a demand and supply graph for the federal funds market to show the demand and supply of reserves in the current ample-reserves regime. How can the Fed increase the federal funds rate? Show the...
-
What is the zero lower bound in monetary policy? What tools can the Fed use if it wants to implement an expansionary monetary policy at the zero lower bound?
Study smarter with the SolutionInn App