Question: Introduction to Programming Languages (C++) Assignment (1) 1) You are given a list of students' names and their test scores. Design an algorithm that does
Introduction to Programming Languages (C++) Assignment (1) 1) You are given a list of students' names and their test scores. Design an algorithm that does the following: (CLO1) Calculates the average test scores. b. Determines and prints the names of all the students whose test scores are below the average test score. Determines the highest test score. d. Prints the names of all the students whose test scores are the same as the highest test score. (You must divide this problem into subproblems as follows: The first subproblem determines the average test score. The second subproblem determines and prints the names of all the students whose test scores are below the average test score. The third subproblem determines the highest test score. The fourth subproblem prints the names of all the students whose test scores are the same as the highest test score. The main algorithm combines the solutions of the subproblems.) 2. Suppose a, b, and sum are int variables and is a double variable. What value is assigned to each variable after each statement executes? Suppose a = 3, b=5, and c = 14.1. (CLO1) sum = a + b + c c/-a: baca a= 2 b + c 3. Write a program in C++ to read three number (X,Y,Z), and to display the following various type or arithmetic operation using mixed data type. (CLO2) 1. LEX/Y+Z 2. S= ((X+Y) *Z) - X 3. M= 12 +Y * Z/X
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
