

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSCI261 Lecture Questions Simple C++
This worksheet is for your use during and after lecture. It will not be collected or graded, but I think you will find it a useful tool as you learn C++ and study for the exams. Explain all false answers for the “True or False” questions; in general, show enough work and provide enough explanation so that this sheet is a useful pre-exam review. I will be happy to review your answers with you during office-hours, via Email, or instant messaging.
(b) Write the aforementioned comment across multiple lines in C++.
CSCI261 Lecture Questions Simple C++
(b) Suppose your program has a variable named user_pi declared as a double variable type. Write a C++ statement that reads a value for user_pi from the keyboard.
(c) Now, write a C++ statment that prints user_pi to the console.
Page 2