Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This application will provide the user with an option to choose to buy either New or Used trading cards. For either option, you will allow

This application will provide the user with an option to choose to buy either New or Used trading cards. For either option, you will allow the user to enter in the number of cards to purchase, and then display the sales price. If the user enters an invalid input or option at any time, your application will inform the user that there is an error. Your program should do the following: 1.) Print a welcome message for your application. 2.) Prompt a menu prompt with two options: to purchase either New or Used trading cards. 3.) If the user chooses the New option, prompt the user how many cards they wish to purchase, and then calculate and display the total cost. Each new card should cost $0.85. 4.) If the user chooses the Used option, prompt the user how many cards they wish to purchase, and then calculate and display the total cost. Each used card should cost $0.57. 5.) If the user chooses an invalid menu option, inform the user of this error. 6.) If the user enters a numeric card quantity value that is 0 or less, inform the user that the entered value is too low. 7.) If the user enters a non-numeric value for card quantity, inform the user of this error. Notes Use formatting characters to provide clean program prompts and outputs Display currency values using currency formatting Your program should not crash under any combination of inputs, so test thoroughly!

This needs to be coded in C#

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions