Question: 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:

InputResult
CSIT110 Programming with Python 6 CSIT128 Web Technology 6Enter 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 3Enter 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

1 Expert Approved Answer
Step: 1 Unlock

Prompt the user and read for code name and credit points for first subject firsts... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!