General Specifications 1. You are allowed to use ONLY the following header files: iostream, fstream, iomanip, and cmath. 2. User-defined functions are not allowed. 3. Use of string data type is not allowed. 4. There will be no console input. All input data must be read from a file. Output must be displayed on screen. 5. Test your program before submitting. Input: First line of input contains the number of data to be evaluated. Each line contains a non-negative whole number N, where 0 < or = N < or = 1000000. Output: For each line of input, return the number converted into the correct amount format. If the number N exceeds or is below the limit, output “--.--". Since we are dealing with amounts, all must be properly right aligned. Sample Input: 4 1000 20100 3031 1 Sample Output _1,000.00 20,100.00 _3,031.00 _____1.00 |
Input: First line of input contains the number of teams T in the competition and the number of rounds R they have competed. The succeeding lines contain the teams with their corresponding scores for the rounds. Assume that each round is worth 100 points. Output: You are to return the name of the teams with their corresponding scores arranged from first to fifth place. Assume that no teams will have the same general average. Sample Input: 6 4 A 10 20 10 20 P 20 20 20 80 T 100 80 90 100 H 80 80 80 80 K 90 90 90 90 G 100 0 0 100 Sample Output: 1: T 92.5 2: K 90 3: H 80 4: G 50 5: P 35 |
|
|