Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Writefa program to ask the user to enter the subject code, subject name, and credit points. Then displaythe enrolment information exactly like the following example.
Writefa program to ask the user to enter the subject code, subject name, and credit points.
Then display the enrolment information exactly like the following example.
The first column occupies 10 spaces and is in the left alignment.
The second column occupies 40 spaces and is in the left alignment.
The last column occupies 15 spaces and is in the center alignment.
For example:
Input | Result |
---|---|
CSIT110 Programming with Python 6 CSIT128 Web Technology 6 | Enter the first subject code: CSIT110 Enter the first subject name: Programming with Python Enter the first credit point: 6 Enter the second subject code: CSIT128 Enter the second subject name: Web Technology Enter the second credit point: 6 Your enrolment details are as follows: Code Name Credit CSIT110 Programming with Python 6 CSIT128 Web Technology 6 Total 12 |
CSIT111 Programming Fundamentals 6 CSIT242 Mobile Application Development 3 | Enter the first subject code: CSIT111 Enter the first subject name: Programming Fundamentals Enter the first credit point: 6 Enter the second subject code: CSIT242 Enter the second subject name: Mobile Application Development Enter the second credit point: 3 Your enrolment details are as follows: Code Name Credit CSIT111 Programming Fundamentals 6 CSIT242 Mobile Application Development 3 Total 9 |
Step by Step Solution
★★★★★
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Prompt the user and read for code name and credit points for first subject firsts...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started