

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Computers and Programming I are Assign Value, Single-Subscripted Array, Class Members, Current Precision, Elementary School, Complete Program, Fibonacci Sequence, Programming Errors. Main points of this homework are: Programming Errors, Programming Errors, Correct, Function Definition, Maximum, Include, Void Printname, Ming Zhang, Void Printname
Typology: Lecture notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Read the following programs, find out the programming errors and correct them.
Question 1
// 5 errors #include
int main { cout << “My first name is:Ming”
endl cout << “My last name is: Zhang” << endl;
Question 2 // 5 errors
#include
Question 3 // 5 errors
int main( )
{int count = 0; cout <<“The initial value of count is”<<count<<endl; ++count; cout >>“count is now ”>> count >> endl; ++count, ++count; cout <<“count is now”<< count <<endl; return(0);}
Question 4
// 5 errors #inlude