subject

ELEN 1301 Programming Assignment #5 Due date: Specified on the web site. (Due at the end of the day.) Please submit: 1. A flowchart of this program. (2 pts) 2. Printout of your C++ program with a heading comment (with proper spacing and indentation). 3. Copy of two screenshots after your program is executed. Your average must show 3 digits below the decimal point. (Hint: use setw, fixed, setprecision.) You are required to show the minimum value of the entered numbers. You are required to show the maximum value of the entered numbers. (8 pts – You must include your program and those two results) Due date Purpose of the program : Calculate an average of four numbers. Section 1 : Enter four numbers. Section 2 : Calculate the average and display the answer. Section 3 : Calculate the average and display the answer. #include using namespace std; int main() int ni, n2, n3, n4, a; double b; // Section 1. cout << "Enter last digit of your Student ID : "; cin >> ni; cout << "Enter last digit of your Student ID +1: "; cin >> n2; cout << "Enter last digit of your Student ID + 2 : "; cin >> n3; cout << "Enter last digit of your Student ID + 4 : "; cin >> n4; // Section 2. a = (nl + n2 + n3 + 04) / 4; cout << "The average is : " < a << endl; 1/ Section 3. b = (nl + n2 + n3 + n4) / 4.0; cout << "The average is : " << b << endl; ; return ) // main

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What must you do before formatting a paragraph?
Answers: 1
question
Computers and Technology, 22.06.2019 10:20
Shown below is the start of a coding region within the fist exon of a gene. 5'--3' 3'--5' how many cas9 pam sequences are present?
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which option should u select to ignore all tracked changes in a document
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
You know the right answer?
ELEN 1301 Programming Assignment #5 Due date: Specified on the web site. (Due at the end of the day....
Questions
question
Mathematics, 03.01.2021 20:30
question
Mathematics, 03.01.2021 20:30
question
Mathematics, 03.01.2021 20:30
Questions on the website: 13722361