Question: C# problem: This problem uses a single ternary conditional operator . a.Prompt the user for a purchase amount (dollars and cents). Assume that the user
C# problem:
This problem uses a single ternary conditional operator.
a.Prompt the user for a purchase amount (dollars and cents). Assume that the user will enter valid number, so no data validation is required.
b.If the value entered is greater than a credit limit of $5,000.00, display an error message. Otherwise, display the amount and purchase is approved
c.Use of variables and appropriate data types is required.
d.Make sure to display the purchase amount as a currency value.
e.Note that the value from the user is displayed with comma formatting.

Example output 1: *** CHALLENGE PROBLEM *** Enter a purchase amount: 25.25 $25.25 is approved Example output 2: *** CHALLENGE PROBLEM *** Enter a purchase amount: 5001 $5,001.00 is rejected
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
