Writefa program to ask the user to enter the subject code, subject name, and credit points. Then
Fantastic news! We've Found the answer you've been seeking!
Question:
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 |
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: