CSci 151 Spring 2015
Lab Assignment 1: Input, Processing and Output
Develop a program to compute total points earned on lab assignments, quizzes and
exams. Use your leomailName (e.g. nDale1) as the source file name. Attach this
file to an email sent tom.brown at the domain tamuc.edu on or before Friday 30
January. Include our course code (i.e. CS151), your leomailName, and the
assignment number (i.e. 1) in the subject line of this email.
Steps:
Define variables for your first and last names, lab points, quiz points,
final exam points, and totalPoints; (2 points possible)
Prompt and input values for your first and last names, plus points earned on:
labs, quizzes, and final exam; (3 points)
Assign to totalPoints the sum for labs, quizzes, and exam; (2 points)
Output a descriptive title that includes your whole name on one line, and
the values for totalPoints beside a descriptive label (3 points).
Example prompts and example input values:
Your first and last names? Nell Dale
Lab points? 92
Quizzes? 90
Final Exam? 88
Example output:
Grade Report for Nell Dale
Total points = 270
Notes:
1. Class exercises provide background and examples for this assignment. Our
Webpage has links to program examples and other resources (C++ Tutorial)
that may be useful. It is recommended that you analyze and implement the
exercises and examples. By adapting fragments of these examples to the
problem to be solved, it should be possible to obtain a correct solution.
2. To maximize points earned, submit a "deliverable product" when due.