0% found this document useful (0 votes)
42 views

Oel #2pf Lab Spring 2023.

The document describes an assessment activity for an open-ended lab on creating a "Guess the Number" game in C++. It provides requirements for the lab task, such as generating a random number and allowing limited guesses, and instructions for students. It also lists attributes for open-ended labs, including no predetermined procedure or results, encountering technical issues, requiring in-depth engineering knowledge, and creative thinking. The student received 6% marks out of 100 for their performance on the activity based on criteria like their method selection, work implementation, and output discussion.

Uploaded by

Talha Tariq
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Oel #2pf Lab Spring 2023.

The document describes an assessment activity for an open-ended lab on creating a "Guess the Number" game in C++. It provides requirements for the lab task, such as generating a random number and allowing limited guesses, and instructions for students. It also lists attributes for open-ended labs, including no predetermined procedure or results, encountering technical issues, requiring in-depth engineering knowledge, and creative thinking. The student received 6% marks out of 100 for their performance on the activity based on criteria like their method selection, work implementation, and output discussion.

Uploaded by

Talha Tariq
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Activity Marks: 06 ASSESSMENT ACTIVITY Obtained Marks:

%age Marks out of 100: 6 % Open Ended Lab #2 %age Marks Obtained:
Student Name: TEACHER: Activity Date: 7-9-23
Student ID: Engr. Shafique Ahmed Soomro Due Date:14-9-23
Problem Complexity (WP/EP): WP-1 COURSE CODE) & TITLE: SEMESTER: 2nd semester
Knowledge Area / Sub Area (WK): WK-2 (EE-121A) OFFERED IN: Spring 2023
Washington Accord Attribute (WA): WA- Programming Fundamentals Lab FOR THE BATCH: Fall 22
5,9
OBE Attainment (Course): OBE Attainment Taxonomy): OBE Attainment (Program):
Course Learning Outcomes(CLO): Domain: Cognitive Program Learning Outcome ( PLO)
CLO-1 Level: P-3 PLO: 5

CLO Statement:

Objective: create a C++ program that allows the user to play a "Guess the Number" game with
the computer.
OPEN ENDED LAB PERFORMANCE

Excellent Average Poor


S.No. Aspects of Marks
(75-100%) (50-75%) (<50%)
Assessments
Method of an Open-Ended Understand and select relevant methods Partially understand and select Lack of identification of selecting a
1 Lab to solve an open-ended engineering relevant methods to solve an open- relevant method to solve an open-
problem related to lab task. ended engineering problem-related ended problem related to lab task.
lab task.

Working of an Open- OEL hardware/Simulation is complete OEL hardware/Simulation is OEL hardware/simulation is


2 Ended Lab and is producing desired results partially complete and is producing incomplete and is not producing
partially satisfactory results desired results

3 Discussion of output/ The output is correct for a variety of The output is correct for a The output are incorrect for any input
/Simulation input in terms of input parameters few specific input but not parameters rating
rating able to deal with all types of
inputs parameters rating

Total Marks: 6

Graded by Engineer: _ Date:

Remarks:
Department of Electrical Engineering, FEST, Indus University, Karachi

Instructions/Steps
1. Begin by setting up a new C++ project in your preferred development environment.
2. Write the code for the "Guess the Number" game, following the requirements and bonus challenges
as desired.
3. Test your program thoroughly to ensure it works correctly, handles user input gracefully, and
provides appropriate feedback.
4. Encourage students to be creative in how they implement the game and to comment their code well
for clarity.
5. Provide students with opportunities to showcase their programs to the class and discuss their
approaches and any challenges they encountered.
Deliverables:
 Algorithm
 Pseudo Code
 Complete Code
 Output Screen
 Report
 Presentation

Requirements for Lab Task:

1. he program should generate a random number between 1 and 100 and store it as the target number.

2. The program should provide the user with a limited number of attempts (e.g., 5) to guess the target number.

3. For each attempt, the program should:

 Prompt the user to enter their guess.

 Check if the guess is correct, too high, or too low compared to the target number.

 Provide feedback to the user about the result of their guess.

4. The program should keep track of the number of attempts made by the user and display this information after
each guess.

5. If the user correctly guesses the number within the allowed number of attempts, the program should
congratulate them and display the number of attempts it took.

6. If the user exhausts all their attempts without guessing the correct number, the program should reveal the target
number and inform the user that they have lost.

7. The program should include error handling for invalid user input (e.g., non-numeric input or out-of-range
guesses).

8. Use functions to modularize the code and make it more organized


Department of Electrical Engineering, FEST, Indus University, Karachi
Attributes of OEL

The attributes of open ended labs are against each task.

Attributes Description

No pre-defined procedure and no pre-determined result.


(i.e. students are required to design their own experiments Displays the current state of
and procedures) the game board.

Encounter wide range technical issues in designing.


(i.e. choice of components, their tolerances and their Provides flexibility to
ranges of outputs, etc. extend the game to more
players in the future.

Involves acquisition of in depth engineering


knowledge, part of which, is delivered through class You can expand upon them
lectures and some labs, and remaining knowledge gaps and add more attributes as
are filled by student self-directed learning needed to enhance the
functionality and user
experience of the game.

Involves creative thinking process as in the design


of open ended labs, students are expected to encounter Challenges students to
issues they haven’t faced in their previous course of understand networking
studies concepts and
communication between
multiple instances of the
game.

Examiner Signature: Total Marks:

You might also like