


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
A set of instructions for exercise 2 in computer science 106 or computing in engineering and science. It covers numerical data types, basic input and output in c++, and how to prepare a file for submission. An assessment quiz and goals for the exercise.
Typology: Slides
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Larry Caretto Computer Science 106
2
3
4
5
6
7
8
9
10
11
cout << “ x = “ << x; x = 2
int x = 2; cout << x; 2
cout << “Name” Name
12
Type 1.4 -3.2 12.7
cout << “Enter x, y, and z: “; cin >> x >> y >>z;
cout << “Enter x: “; cin >> x; Type 2.3
Code Actions
19
20
#include
21
23
Results for programming exercise 2:
Larry Caretto February 9, 2006
Input value of x = 10 Input value of y = 3 Output value of z = x / y = 3.
Press any key to continue
blank lineblank line
blank line
blank line
Two Spaces
Note alignments
decimal result