Freelancing(Developer & Trainer). Undertaking projects/assignments. Open for short & long term contracts.
C#/CSharp Reservation WinForms
Get link
Facebook
X
Pinterest
Email
Other Apps
C#/CSharp Reservation WinForms.
Get hands on with DateTime and DateTimePicker class. This example is
made using using only text editor and bash/shell. You just need dot net
SDK 2.0 or above. Download code here.
Problem Statement: Suppose that billingAmount is a double variable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or 1% of the billingAmount, whichever is smaller, as a credit on your next bill; If you pay at least 50% of the billingAmount, the penalty is 5% of the balance; If you pay at least 20% of the billingAmount and less than 50% of the billingAmount, the penalty is 10% of the balance; otherwise the penalty is 20% of the balance. Design an algorithm that prompts the user to enter the billing amount and the desired payment. The algorithm then calculates and outputs the credit or the remaining balance. If the amount is not paid in full, the algorithm should also output the penalty amount. Possible Solution: Begin Declare billingAmount as Real Declare paidAmount as Real Declare credit as Real Declare penalty as Real Declare amount as Real Declare percent as Real Set credit = 0 Set penalty = 0 Set amount = 0 Outp...
Comments
Post a Comment