Question: Needing some help in starting this code in C#. Legend: Declare constants with values: decimal fuel Price85 = 1.94m; decimal fuelPrice87 = 2.02m; decimal fuelPrice

Needing some help in starting this code in C#.
Needing some help in starting this code in C#. Legend: Declare constants
with values: decimal fuel Price85 = 1.94m; decimal fuelPrice87 = 2.02m; decimal

Legend: Declare constants with values: decimal fuel Price85 = 1.94m; decimal fuelPrice87 = 2.02m; decimal fuelPrice 90 = 2.11m; Declare Variables with data type: isDebitCard as string cardNumber as double pinNumber as int zipCode as int isVerified as boolean printReceipt as string wants Car Wash as string costorwash as decimal hasFuelDiscount Code as string discount Code as int discountRate as decimal fuelGrade as int pricePer Gallon as decimal IsFuelPumping as boolean quantity as decimal totalAmount as decimal swipe as new CardReader() bank as new Bank) pump as new Fuel PumpSensor() fuelPrice85: price fuel grade 85% fuelPrice87: price of fuel grade 87% fuelPrice90: price of fuel grade 90% isDebitCard: true or false, true identifies a debit card. false means credit card, cardNumber: 16 digit card# that is read from the swipe card reader pinNumber: 4 digit debit card pin number zipCode: 5 digit zipcode isVerified: true mean card is validated by the banke, false means bank rejects the card. printReceipt true or false, true means a receipt should be printed at the end of the transaction. wants CarWash: true or false. true means customers wants a car wash. costOfWash: cost of the car wash selected by customer hasFuelDiscount Code- true or false true means customer wants to use a fuel discount. True means yes wants to use discount Code: 6 digit code for discounts discountRate: rate of the discount in decimal form, e.g., 0.10 for 10% fuelGrade: number indicating the grade of fuel: 85 87, or 90 pricePerGallon: price per gallon of the fuel the customer selected IsFuelPumping true or false, true means fuel sensor reports gas is still pumping. false means pumping has stopped. quantity amount of fuel dispensed in gallons totalAmount total cost of the transaction including optional services and discount swipe as new Card Reader(): an object of a predefined class called CardReader). Responsible for reading the card number when the customer swipes the card bank as new Bank: an object of predefined class called Bank Responsible for validating the debit card or credit card pump as new FuelPumpSensor an object of predefined class called Fuel Pump Sensoro. Responsible for reporting when the fuel is pumping or stopped Output "Welcome. Insert and quickly remove card to start transaction." cardNumber = swide ReadCardNumber CONumber swipe ReadCardNumber Promp is Debit Card Is this a debit card? Press yor " Assume user will enter y for yes and n' for no Assume user will enter 4 dicipin number Assume user will enter 5 digit zip code consider testing here Ise s Debit Card Prompt zip Code 'Emer your billing zip code Prompt pinNumber Enter your number Be sure to cover the keypad for security Jis venified bank. ViidateCredit Cardcard Number, ZipCode) ventied bank widateDebit Card(cardNumber, pinNumber) sider testing here fases Verified true and we booleans without quotes Use true or false. Do not use quotes true also Output Card is not authored Please see Prompt Recept "Oo you want a recept Press yorn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!