Answered step by step
Verified Expert Solution
Link Copied!

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:

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

Step: 1

Prompt the user and read for code name and credit points for first subject firsts... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions