) The following C++ program executes infinitely. Identify the statements which are causing this program to run infinitely, correct the program to stop infinite execution of this program, and write the...


) The following C++ program executes infinitely. Identify the statements which are

causing this program to run infinitely, correct the program to stop infinite execution
of this program, and write the output of the program after it is corrected.
#include
using namespace std;
int main(void)
{
int Number =6;
int iterator=0;
int L_cont = 0;
while(iterator<>
{
L_cont = iterator+1;
while(L_cont>0)
{
L_cont++;
cout<>
}
cout<>


}
return 0;
}
b) The students of GCET study 4 modules at level 0, Program design and

Implementation, Engineering Experimentation, Professional and academic Skills,
and Foundation Mathematics. You are required to write a C++ program which

will take the marks of all modules and then will display the average result

based on classification boundaries as follows:
i. 70% or 70%+ First class honours
ii. 60%-69% Upper second class
iii. 50%-59% Lower second Class
iv. 40%-49% Third Class
v. 0-39% Fail

End of Ex



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here