build up whole program and have to make sure it worksELEX 4618: Object Oriented Design Lab 1

Craig Hennessey 11/12/2022 1

Lab 1 – User Input

1 Introduction
This lab introduces the development of a simple C++ program using the Standard Library and the C++
Programming language in a Windows (Microsoft Visual Studio) development environment.

2 Design Problem
Develop a software system that will help an Instructor at BCIT enter their course marking. The software
system will read as input from the console for each student their student number (char array), the lab
grade (float), the quiz grade (float), the midterm grade (float), and the final exam grade (float). Each
grade is a percentage out of 100, with the lab worth 40% of the course, the quiz 10%, the midterm 20% and
the final exam 30%. Create a C struct which holds each grade variable and assume the maximum class size
is 100 students (array of 100), stored as a global variable. Use a number_of_students variable to keep
track of the number of students in the class.
The software system should have a simple text menu which allows you to (A)dd a student, (E)dit a student,
(P)rint all the students data including the final course grade to the screen and (Q)uit to exit. Display the
main menu after each operation. An example of the system operation is shown below.
The design above commits several programming crimes (global variables, fixed 100 array, etc) which will
be fixed in the next lab.

3 Design Process
Develop the program described above all within one main.cpp file using the Microsoft Visual Studio
IDE. Each menu option should be executed in its own function (add_student, edit_student,
print_menu, print_grades). Note that adding a student is the same as creating a new blank student and
then editing that student (i.e. don’t duplicate the edit code).

4 Pre Lab Work (1)
Prior to coming to the lab, complete the following tasks:
A) Write the menu display portion of the project outlined above (print menu and wait for input). The menu
should be printed with a function print_menu and the other functions should be stubs (create as an empty
function, you don’t need to add any code for the pre lab mark). At the start of lab, demo the menu display
operation.

5 Lab Completion Demo (3)
Demonstrate the operation of the system by adding 3 students, then edit 1 student and print the grades.
Copy your CPP and H files into the lab hand in folder on D2L.

ELEX 4618: Object Oriented Design Lab 1

Craig Hennessey 11/12/2022 2

6 Example Operation
****************************************

ELEX4618 Grade System, by STUDENT NAME

****************************************

(A)dd student

(E)dit student

(P)rint grades

(Q)uit

CMD> A

Adding Student

Student Number: A00512345
Lab Grade: 77
Quiz Grade: 55.5
Midterm Grade: 66
Final Exam Grade: 80

****************************************

ELEX4618 Grade System, by STUDENT NAME

****************************************

(A)dd student

(E)dit student

(P)rint




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.