1. Engineering
  2. Computer Science
  3. using static namespace and pause same details like the pic...

Question: using static namespace and pause same details like the pic...

Question details
Using static namespace and pause
o Objects (th Edition)-pd- Adobe Acrobat Rnader DC 4%,1134 hapter 6 Functions 12. Star Search A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performers final score is determined by dropping the highest and lowest score received, then aver- aging the three remaining scores. Write a program that uses this method to calculate contestants score. It should include the following functions: void get JudgeData() should ask the user for a judges score, store it in a reference parameter variable, and validate it. This function should be called by nain once for each of the five judges void calcscore() should calculate and display the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the five scores The last two functions, described below, should be called by calcScore, which uses the returned information to determae which of the scores to drop. · int f í ndLowes t ( ) should find and return the lowest of the five scores passed to it . int findHighest) should find and return the highest of the five scores passed to it. Input Validation: Do not accept judge scores lower than O or bigher than 10 Write a program that calculates the average number of days a companys employees are absent. The program should have the following functions 13. Days Out e A function called by main that asks the user for the number of employees in the
Same details like the pic below same exact thing !
司Mattpakbaz-Functions,Practice, Microsoft Visual Studio Fie Edlt View Project Build Increcdibuild Debug RTools Analyze Test Local Windows Debugger Team Tools le Edit View Project Build x main.cpp a (Global Scope MattPakbaz Functions Practice 1 E//Matt Pakbaz 2 1/1/22/2019 3 //Functions class practice E#include<iostream> 5 6 ainclude<string> using namespace std; 9 IIFunction prototype 10 void printInfo(string, double); 11 double getMax(double, double, double); 12 void add(double numl, double num2, double& sum); 13 void addone); 14 15 lint main() 17 //Call the addone function for (int i -0; i < 10; i++) addone ); dout ss count; cout くく endl; 2e string name; double salary; cout What is your nane? Show cutput, from Debug tions Practice.exe (3n2): Loaded Cvindows syswuwb4\sechost.dCannot ind attrakpaz Funct The thread exldic has exited with code (e8) The thread 6x1234 has exited with code (00) The thread 0xlece has exited with code 8 (0x0) Tha thread 0xibfe has exited with code 0 (0x0) The progran 163921 MattPakbat Functions Practice.exe has exited with code (ox arch Windows HP LE220w
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution