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.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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.
Step by step
Solved in 3 steps with 4 images