Write c# equivalent statements for the following: A bank is offering Gold and Silver Credit Cards to its customers. Gold Card allows a credit limit up to 100,000 rupees per month while the Silver Card offers a credit limit up to 50,000 rupees per month. Design a program which will take following inputs from user. • Account_Title • CNIC_Number • Account_Number • Card_Type • Credit_Amount If user enters “Gold”, an object of Gold type would be instantiated, whereas, if the user enters “Silver”, an object of Silver type would be instantiated. Upon requesting of credit from bank, the system will check the limit depending on the card type of the user. If the Credit_Amount entered by user exceeds the limit, a failure exception would be shown along with the account information and if the Credit_Amount is within the defined limit, the system would prompt a Success message with account information. use inheritance (COMPULSORY)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 1PP
icon
Related questions
Question

Write c# equivalent statements for the following:

A bank is offering Gold and Silver Credit Cards to its customers. Gold Card allows a

credit limit up to 100,000 rupees per month while the Silver Card offers a credit limit up

to 50,000 rupees per month. Design a program which will take following inputs from

user.

• Account_Title

• CNIC_Number

• Account_Number

• Card_Type

• Credit_Amount

If user enters “Gold”, an object of Gold type would be instantiated, whereas, if the user

enters “Silver”, an object of Silver type would be instantiated. Upon requesting of credit

from bank, the system will check the limit depending on the card type of the user. If the

Credit_Amount entered by user exceeds the limit, a failure exception would be shown

along with the account information and if the Credit_Amount is within the defined limit,

the system would prompt a Success message with account information.

use inheritance (COMPULSORY)

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning