Question #02 Print your Result Card using required escape sequences? Print all other…
- User
Question #02
Print your Result Card using required escape sequences? Print all other information as it is but get input from user in obtained marks and calculate the percentage of entered marks?
Output:
Result Card
Name: ABC
Reg. #: ID/
Session: Fall-24
Semester: 1
Subjects
Obtained Marks
Digital Logic Design
user input
Electronics-I
user input
English
user input
Total Marks
100
100
100
Percentage = %
- Assistant
To create a result card that uses escape sequences and calculates the percentage based on user input, you can use Python's input and print functions. Here's a script that accomplishes this:
python - User
Question #02
Print your Result Card using required escape sequences? Print all other information as it is but get input from user in obtained marks and calculate the percentage of entered marks?
Output:
Result Card
Name: ABC
Reg. #: ID/
Session: Fall-24
Semester: 1
Subjects
Obtained Marks
Digital Logic Design
user input
Electronics-I
user input
English
user input
Total Marks
100
100
100
Percentage = %
- Assistant
To generate the specified result card with the required formatting and compute the percentage based on user input, you can use the following Python script. This script uses escape sequences to format the output neatly.
python - User
Question #02
Print your Result Card using required escape sequences? Print all other information as it is but get input from user in obtained marks and calculate the percentage of entered marks?
Output:
Result Card
Name: ABC
Reg. #: ID/
Session: Fall-24
Semester: 1
Subjects
Obtained Marks
Digital Logic Design
user input
Electronics-I
user input
English
user input
Total Marks
100
100
100
Percentage = % Perform this operation in C++ program
- Assistant