0% found this document useful (0 votes)
67 views3 pages

Laboratory 2

Uploaded by

floydmustang1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views3 pages

Laboratory 2

Uploaded by

floydmustang1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

LABORATORY 2: OOP and Arrays with C++: Simple Database Management with

MS-Excel
PROGRAM: Bachelor in Engineering Technology
ELECTRICAL ENGINEERING
SUBJECT: SOFTWARE ENGINEERING 2A
DATE: 2023
DURATION: 60 minutes
TOTAL POINTS: 40 (Activity 1 + Activity 2)

Objective
This assignment is concerned OOP and simple database management in C++ language.
The demonstration of your knowledge for archiving database outputs from your OOP
program(s) into MS Excel platforms is important. You are to perform this practical/task using
pair programming technique (in groups of two’s). Any group exceeding more than two
participants per workstation will neither be attended to nor graded.

Procedure
Follow the instructions as follows:
1. Open up 2019 Microsoft Visual Studio on your laboratory desktop.
2. Read out the instructions in your laboratory manuals properly.
3. Write out the codes in the Visual Studio C++ editor as indicated in the manual. Make
sure you save your codes at intervals.
4. Build and debug your code, if possible for every line. Make sure you print out your
output screen/interface and codes in your report.
5. Submit a report for the two activities on blackboard. However, the first activity will be
graded by the end of the lab.

Grading Rubric (Copy this Rubric onto the first page of your report)

BENCHMARK COMMENTS POINTS Ex 1 Ex 2 Ex 3


IDE proficiency Includes the proficiency of the IDE employed in the 2
course of code/interface development
Specification Analytics Applies to the software specification. Pre-analysis, UML 2
and flow charts for design and implementation
Programming Skills Applies to the reasoning and analytics of software design 4
in code writing and interface design.
Programming Logic and Applies to the logic and flow of the of the written code and
Flow interface designs. A good programme must have the 5
appropriate flow and logic.
Output This is the overall performance of the code/interface
Specification/validation design. Satisfactory realisation of the specifications have 2
been met and validated.

Software Documentation Applies to written reports and software documentations


with respect to laboratory activities 5
TOTAL The sum total of the proposed benchmarks 20

1
ACTIVITY 1.1 (To be graded within the Laboratory period; Report must be submitted
with Activity 1.2)
Your client, a University Organisation, has requested that you develop a Student
Enrolment and Result software in C++ using OOP style. A summary of marks
obtained versus grade interpretation is given in the table below:

Table 1: Mark versus Grade Interpretation


MARK 97 - 100 93 - 96 90 - 92 87 - 89 83 - 86 80 - 82 77 - 79 73 - 76 70 - 72 67 - 69 63 - 66 60 – 62 < 60
GRADE A+ A A- B+ B B- C+ C C- D+ D D- F

Your Tasks (Creativity is very important):


1. Enrol a student information i.e. student number, initials and surname, sex
and for each module, the name of the module and corresponding student
mark with grade. Please, enrol student mark and grade for each module
according to the information in Table 1.
2. The client expects that enrolled information must be exported to Microsoft Excel
sheet as seen in the output of Table 2 below:
3. The enrolment information given in Table 2 must thus be used as inputs/arguments
for the OOP function being proposed.

Table 2: Example of Student Enrolment and Result with Software EXCEL output

ACTIVITY 1.2 (To be submitted as a report on Blackboard by Monday)


Consider the formulation for the partial distribution of voltage flowing through any material being described
by the following mathematical function:
𝛼2 −𝛽
[−( )]
𝑣 = 𝑣𝑜 𝑠𝑖𝑛(𝜉 ) 𝑒 𝜔 𝑣𝑜𝑙𝑡𝑠

𝑘𝜔
𝜉= , in Unit of degrees
𝜔𝑝

Where the following definitions for the parameters are valid:

𝑣𝑜 is the maximum voltage flowing through the material at any time


𝑘 is the Gregg’s surface number of any material
𝜔 and 𝜔𝑝 are the intrinsic angular frequency and peak angular frequency in rad/s
respectively
𝛼 is the index current factor
𝛽 is the material resistive factor

2
Assume the following parameters are constants in your programme:

𝜔𝑝 = 12 rad/s,
𝛼 is 5.32, and,
𝑣𝑜 is 50 V.

Your Tasks (Creativity is very important):


1. Write a C++ program for the function, PartialVoltage(ω,k,β)using OOP style
such that ω,k and β are the function arguments which are also variables
(parameters to be passed).
2. The output for the following pair of parameters:
ω = 1800 rad/s, k = 0.15 and β = 1.5
ω = 1500 rad/s, k = 1.5 and β = 1.1
3. You may explain how you arrived at your final source code by placing comments in
the code, printing out inputs and outputs and/or providing explanations to Tutors
during laboratory.
4. Your codes will be tested for different scenarios of ω,k and β and will be graded
accordingly.
5. Make sure you upload your codes and MS-DOS output on blackboard afterwards.

You might also like