C++ pls use iostream
Write a program that prompts the user to enter 5 exam marks (design
your program such that It would be easy to change if we wanted it
to work for more than 5 earns). The program python displays the
average mark, the highest mark, and number of marks entered less
than the average mark
#include<iostream>
#include<limits.h>
#define n 5 //n denotes number of exam marks
using namespace std;
int main()
{
double arr[n], hmarks=(double)INT_MIN, sum=0, avg;
int i,count=0;
cout<<"Enter the marks in "<<n<<"Exam Marks"<<endl;
for(i=0;i<n;i++){
cin>>arr[i];
sum+=arr[i];
if(hmarks<arr[i])
hmarks = arr[i];
}
avg=sum/((double)n);
for(i=0;i<n;i++)
if(arr[i]<avg)
count++;
cout<<"Average Mark : "<<avg<<"\nHighest Marks : "<<hmarks<<"\nNumber of marks entered less than the average mark : "<<count<<endl;
return 0;
}
C++ pls use iostream Write a program that prompts the user to enter 5 exam marks...
c++ with pseudocodes Write a program that prompts the user to enter exam marks. The program then displays the average mark, the highest mark and number of marks entered less than the average mark.
C++ Write a program that prompts the user to enter integers or a sentinel to stop. The program prints the highest and lowest numbers entered, the sum and the average. DO NOT USE ARRAYS, only variables and loops. Write a program the prompts the user to input a positive integer. Keep asking the user until a positive integer is entered. Once a positive integer is entered, print a message if the integer is prime or not. (NOTE: A number is...
USE PYTHON 3Write a program that prompts the user to enter the number of students and each student's score, and displays the highest and second- highest scores.
Write a program in visual c# program named CheckMonth that prompts a user to enter a birth month. If the value entered is greater than 12 or less than 1, display an error message; otherwise, display the valid month with a message such as 3 is a valid month.
In ruby Write a program that prompts the user to enter a year and first day of the year, and displays the calendar table of that year. For example, if the user entered the year 2019, and 2 for Tuesday, January 1, 2019, your program should display the calendar for each month in the year 2019.
Write a Python program that prompts the user to enter integer values for each of two lists. It then should displays whether the lists are of the same length, whether the elements in each list sum to the same value, and whether there are any values that occur in both lists.
Write a program that prompts the user to enter a binary string and displays the corresponding decimal integer value. For example, binary string ‘10001’ is 17 (1*24 +0*23 +0*22 +0*2 + 1 = 17) A sample run : Enter a binary: 10001 17 Enter second integer: 110 6 Use python.
In c++ please .. Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order.
Write a C++ program that prompts a user to enter a temperature in Fahrenheit as a real number. After the temperature is entered display the temperature in Celsius. Your program will then prompt the user if they want to continue. If the character n or N is entered the program will stop; otherwise, the program will continue. After your program stops accepting temperatures display the average of all the temperatures entered in both Fahrenheit and Celsius. Be sure to use...
In Python:Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score. Assume that the number of students is at least 2.