CS 100 Exam 1
Roll Number: _________________
Question 1: (5 points) Find meaningful names for the
function and the variables used in the program below. Also
describe in one line the purpose of this program, including a
description of what usand themrefers to in the output.
#include <iostream>
#include <vector>
#include <string>
auto a(std::vector<int> b, int c) {
auto d = c / 10000;
auto e = d % 100;
auto f = 0;
auto g = 0;
auto h = 0;
for (auto i: b) {
auto j = i / 10000;
a
b
c
d
e
f
g
h
i
j