SOLVE IN "C#" 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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 1TF
icon
Related questions
Question

SOLVE IN "C#"

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.

Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Mathematical functions
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning