Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# programing Write a program the calculates the total cost a user will purchase and determine if they qualify for a discount. In order to

C# programing

Write a program the calculates the total cost a user will purchase and determine if they qualify for a discount. In order to do this, write the following series of statements:

  • Declare three variables of type double.
  • Collect input to be read into those three variables.
  • Calculate the total cost and display the result in currency format.
  • Determine if customer can get a discount. The message "Eligible for 10% Discount" will display if the total cost is greater than or equal $100.00. If customer is not elgible, then the message will not be displayed.

Note: Include these statements inside a main method definition! Assume the system and system.console namespace was already declared.

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

More Books

Students also viewed these Databases questions