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.

C# problem: This problem uses a single ternary conditional operator. a.Prompt the

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

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!