Write a Program: Competition Score
Your goal is to create a program that will determine the average score for an
athlete in a competition. There are 10 judges who each award a score between 0
and 10. The lowest and highest scores are thrown out, and the athlete’s score is
the average of the eight remaining scores.
You need to create a scorecard file in a text editor or type it into onlineGDB. The
scorecard should have the first and the last name of the athlete on the first line
and 10 space-separated numbers between 0 and 10 on the second line. The
numbers should have at most 1 digit after the decimal point.
Create an Algorithm, Flowchart and C++ program based on the requirements below:
Problem:
Output: 2 Sample Scenario
Even or Odd
Enter a number: 50
The number 50 is Even!
-------------------------------------
Even or Odd
Enter a number: 71
The number 71 is Odd!
Make a program that will compute the quiz,online laboratory,exam scores of the students. The program will input scores for quiz, online laboratory, exam rating. Display also the scores equivalent and if the scores of the students is greater than 75 then remarks will be passed otherwise failed loose and selection and repetion structures. Use these formula.
Enter your full name:
Enter your year and section
Input quiz: score and items
Quiz 1: score and item
11 11
Quiz 2: score and item
10 15
Quiz 3: score and item
10 20
Quiz 10% = 10
Input online laboratory activities: score and items
Lab 1: score and item
15 15
Lab 2: score and item
10 20
Lab 3: score and item
7 20
Lab 30%=30
Input exam: score and items
Exam 1: score and items
20 50
Exam 2: score and items
40 50
Exam 3: score and items
35 50
Exam 1: 20%
Exam 2: 20%
Exam 3: 20%
Final grade = quiz + online laboratory + exam 1 + exam 2 + exam 3
Write a function, triangleShape, that takes as parameters three numbers, each of which
represents the length of a side of the triangle. The function should return the shape of the triangle.
(Note: In a triangle, the sum of the lengths of any two sides is greater than the length of the third
side.)
Write a program that prompts the user to input the length of the sides of a triangle and outputs
the shape of the triangle.
Write a program in C++ that implements a simple arithmetic calculator using enumerator. Create
Operation enumerator with the elements (Add, Sub, Mul, Div). The function Calculate receives two
integer numbers and operation and returns the answer.
Write a program in C++ that creates an enumerator Fruit. Presents the list of fruits to the user and
displays the fruit name according to the number provided by the user.
Write a program, maxmin.c, which finds the maximum and minimum of a set of
floats stored in the file samplesin.txt. You can assume that the number of values in the input file is less than 100.
Your main must use the following steps:
open the two files samplesin.txt and maxminout.txt.
read the values from samplesin.txt into the array x.
compute the maximum and minimum values found in the array x.
write the maximum and minimum values to the le maxminout.txt.
Your output file should look like :
There are 80 values in the array
The maximum value in the array is 63.605999
The minimum value in the array is 4.808900
Let
T:
R3→R2
be a linear transformation such that
(1,1,1) = (1,0),
(1,1,0) = (2, −1) and
(1,0,0) =
(4,3). What is
(2, −3,5)?
Write a program that displays the following menu to the user:
Press 1 for Permanent Employee
Press 2 for Daily wages Employee
After selecting the appropriate employee calculate salary and medical charges for the employees. Following menu would be displayed:
Press a to calculate Salary
Press b to calculate medical charges.
The daily wages employees are paid 400 per hour while permanent employees are paid 800 per hour.When you would calculate the salary, first you need to ask for the number of hours for which the employee has worked so far. The permanent employees are paid 5% medical charges of their total salary while daily wages are paid 3% of medical charges. For calculating medical allowance no further selection/input is required.