0% found this document useful (0 votes)
27 views2 pages

Laboratory 4

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)
27 views2 pages

Laboratory 4

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/ 2

LABORATORY 4: GUI DESIGN WITH C++: UNIT CONVERSION APPLICATION

PROGRAM: Bachelor in Engineering Technology


ELECTRICAL ENGINEERING
SUBJECT: SOFTWARE ENGINEERING 2A
DATE: 2023
DURATION: 60 minutes
TOTAL MARKS: 40 (Activity 1 + Activity 2)

Objective
This laboratory is designed to further your knowledge of building UI interfaces with Windows
Form using Visual C++ codes. The overall theme of this laboratory is to demonstrate the
building of conversion software, which are important in engineering design. 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 course 2
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
ACTIVITY 1: THE FOREIGN CURRENCY CONVERTER APP (To be graded within
the Laboratory period)
In this laboratory, a simple foreign exchange (FOREX) currency converter app will be
developed with GUI using Windows form and written in C++. This app should be able to
convert the South Africa Rand to another global currency. Using pair programming, you may
brainstorm with your partner on ways and techniques to execute this task.
You may employ tactics such as using rough sketches and pseudo-codes to determine the
best way to design this GUI frontend. It is entirely up to you and your partner to determine the
number and nature of GUI elements required to complete this task. Your creativity is
important, ZERO creativity in the execution of your design will often attract ZERO marks as
the case may apply. A total of 8 (eight) global currencies and their equivalent exchange rates,
relative to the South African Rand, are given below. Please, take note of these exchange rates
as they are useful in helping you to complete your conversion tasks for your GUI design. You
are advised to understand the mathematics therein properly.

PREVAILING GLOBAL EXCHANGE RATES AGAINST SOUTH AFRICAN RAND

1 US Dollar = 14.57 Rand


1 Indian Rupee = 0.20 Rand
1 Euro = 16.10 Rand
1 Botswanan Pula = 1.34 Rand
1 Danish Krone = 2.15 Rand
1 Australian Dollar = 9.85 Rand
1 UK Pound = 18.95 Rand
1 Swiss Franc = 14.97 Rand

Procedure: You need to create a windows form for this laboratory. To create a windows form,
you need to do strictly follow the instructions given to you during the tutorial sessions to
prepare a new Windows Form.

On programming your GUI, build the solution and confirm if it works properly, debug and run
your GUI. Approach any available tutor for your assessment and grading when you are ready.

ACTIVITY 2: TEMPERATURE CONVERTER APP (To be submitted as a report by


Tuesday Class period)
Just like the FOREX converter App, you are to design a GUI converter app for the purpose of
converting temperature from one unit to another. This app should be able to convert
temperature from Celcius Unit to both Fahrenheit and Kelvin Units. Using pair programming,
you may brainstorm with your partner on ways and techniques to execute this task. Your
creativity is important, ZERO creativity in the execution of your design will often attract ZERO
marks as the case may apply. The conversion functions to assist you in your GUI development
are as below:

9
Fahrenheit = [ × 𝐶𝑒𝑙𝑐𝑖𝑢𝑠] + 32
5

Kelvin = 273.15 + 𝐶𝑒𝑙𝑐𝑖𝑢𝑠

At the end of this design, you must submit your report and visual studio solution file on
blackboard for assessment on or before the deadline.

You might also like