/*
CS371p: Quiz #4 (5 pts)
*/

/* -----------------------------------------------------------------------
1. In the 1970s Alan Kay developed what language, heavily influenced by
   Simula? [Sec. 1.6, Pg. 18]
   (1 pt)

Smalltalk
*/

/* -----------------------------------------------------------------------
2. What is the output of the following program?
   (3 pts)

xxx3.14
3.14159
3.142yy
*/

#include <iomanip>  // setfill, setprecision, setw
#include <iostream> // cout, endl, fixed, left

using namespace std;

int main () {
    const double pi = 3.1415926536;
    cout << setfill('x') << setprecision(3) << setw(7) << pi << endl;
    cout << fixed << left << setfill('y') << setprecision(5) << pi << endl;
    cout << setprecision(3) << setw(7) << pi << endl;
    return 0;}


syntax highlighted by Code2HTML, v. 0.9.1