C# how to calculate discount

C# how to calculate discount

We are selling Monitors. We have decided to give discounts based on the following items.

i. CRT monitors attract 10% discount

User is required to provide all the details mentioned in the following registration form If user fails to enter for example User Name then the Message box should pop up with â??Please Enter your User Nameâ?? .It should be same for all the fields. When user enters all the details then all the details should be displayed in a Label.

ii.LCD monitors are of 2 types

a. 21 inch attracts 8% discount

b. 23 inch attracts 5% discount Ask the user to enter the type of monitor. If the user enter CRT, display the appropriate message. If the user enter LCD, ask the user to enter the size. Based on the size entered by the user, display appropriate messages.

Hint: - use 'If...else' construct - use Relational operators

View Answers

May 6, 2012 at 12:39 PM

help this problem plsss









Related Tutorials/Questions & Answers:
Calculate Entropy using C++
Calculate Entropy using C++  # include <iostream> # include <cmath> using namespace std; int main() { float S0,S1,S2,S3; float Hs,Hs3; float
How to calculate attending hours?
How to calculate attending hours?  I need to calculate attending hours of a employee in a day in my project to make their monthly salary . By using work starting time and ending time. How should I do it using Date class? Or any
Advertisements
How to calculate days in a year
How to calculate days in a year  Hi, How to calculate no of days in a year? I want a program that calculates no of days in a year by specifying year a parameter. Thanks   Hi, Please check the thread example
How to calculate the average in Hibernate?
How to calculate the average in Hibernate?  Hi, I have to calculate the average in Hibernate. How to calculate the average in Hibernate? Thanks   Hi, You can use the project in Hibernate. Here is the example code
how to calculate the price on the option box
how to calculate the price on the option box  How i calculate the value when i using a option box with 2 option..first option i used for product name... to calculate this value
how to calculate EMI of the loan
how to calculate EMI of the loan   package carloanapp; import java.io.FileWriter; import java.io.IOException; public class CarLoan { Customer gObjCustomer = null; double gDbRequestedLoanAmount = 0; double
How to calculate average of array in Java?
How to calculate average of array in Java?  Hi, I have an integer array and I want to calculate the average of the values in it. How to calculate... the elements of array and then calculate sum. Then divide it with the length
How to calculate area of rectangle
How to Calculate Area of Rectangle       In this section we will learn how to calculate area... In this program explain the static method how to display the rectangle values. First
How to calculate Date Difference in Java?
How to calculate Date Difference in Java?  Hi, I have two dates variable. How to calculate Date Difference in Java? Thanks   Hi, You can use the Calendar class for calculating the date difference in Java. Get data
how to calculate the employee tax - JSP-Servlet
how to calculate the employee tax  How to calculate the employee tax.Can u please send to me calculation tables
How to calculate sum of HH:MM:SS Format?
How to calculate sum of HH:MM:SS Format?  how to calculate sum of HH:MM:SS? for example: 10:25:36+26:50:56 calculate sum of these values
how to calculate max and min - RUP
how to calculate max and min  hye!i'm a new for the java and i want to ask a question . Could anyone help me to teach how to calculate the maximum and minimum using java language.  Hi friend, In Math class having two
how can i calculate loan - Java Interview Questions
how can i calculate loan  negotiating a consumer loan is not always straightforward.one form of loan is the discount installment loan, which works.... the program should then calculate the face value required in order
C calculate sum of first and last element of array
C calculate sum of first and last element of array In this section, you will learn how to calculate sum of first and last element from the array of five numbers. You can see in the given example, we have allowed the user to enter five
How to calculate number of weeks in a specified month
How to calculate number of weeks in a specified month  I am create one program that contain three combo box. 1.cmbyear 2.cmbmonth 3.cmbweek i am select year and month. then automatically calculate number of weeks in a specified
the discount system.
the discount system.  hi.. im a beginner here in java. sadly i was asked to code this one. about inheritance. and i absolutely dont know how.. will someone will help me with this? please. i was asked to write a discount system
the discount system.
the discount system.  hi.. im a beginner here in java. sadly i was asked to code this one. about inheritance. and i absolutely dont know how.. will someone will help me with this? please. i was asked to write a discount system
How to calculate area of triangle
.style1 { margin-right: 0px; } How to Calculate...; In this section we will learn how to calculate area of triangle. We... in this program we will fine the how to the display massage the area
ModuleNotFoundError: No module named 'discount'
'discount' How to remove the ModuleNotFoundError: No module named 'discount...ModuleNotFoundError: No module named 'discount'  Hi, My Python... to install padas library. You can install discount python with following
how to calculate max and min in the loop - Java Beginners
how to calculate max and min in the loop  thanks coz giving me the answer for my question. i want to know is there possible calculation for the max and min value in the loop. the input is from the user. could u teach me. thanks
discount system.
discount system.   i was asked to write a discount system... receive a discount of 20%, 15%, and 10% respectively, for all services provided. Customers without membership receive no discount. all members receives a flat 10
how to calculate salary of all the employees 10%extra then actual salary - SQL
how to calculate salary of all the employees 10%extra then actual salary  how to calculate salary of all the employees 10% extra then actual salary  Hi Friend, We are providing you a code that will calculate
c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area
c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70
how to acces file in c - WebSevices
how to acces file in c  How to acces file in c.... I have doubt on visual c++ ... how to create dialog control in visual c
How to create dynamic array in C?
How to create dynamic array in C?  How to create dynamic array in c programming language?   Dynamic Array in C Tutorial
ModuleNotFoundError: No module named 'kw-discount'
'kw-discount' How to remove the ModuleNotFoundError: No module named 'kw-discount' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'kw-discount'  Hi, My Python
ModuleNotFoundError: No module named 'kw-discount'
'kw-discount' How to remove the ModuleNotFoundError: No module named 'kw-discount' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'kw-discount'  Hi, My Python
ModuleNotFoundError: No module named 'm9s-purchase-discount'
: No module named 'm9s-purchase-discount' How to remove the ModuleNotFoundError: No module named 'm9s-purchase-discount' error? Thanks   Hi...ModuleNotFoundError: No module named 'm9s-purchase-discount'  Hi
ModuleNotFoundError: No module named 'm9s-purchase-discount'
: No module named 'm9s-purchase-discount' How to remove the ModuleNotFoundError: No module named 'm9s-purchase-discount' error? Thanks   Hi...ModuleNotFoundError: No module named 'm9s-purchase-discount'  Hi
ModuleNotFoundError: No module named 'm9s-sale-discount'
named 'm9s-sale-discount' How to remove the ModuleNotFoundError: No module named 'm9s-sale-discount' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'm9s-sale-discount'  Hi, My
ModuleNotFoundError: No module named 'a4t-sale-discount'
named 'a4t-sale-discount' How to remove the ModuleNotFoundError: No module named 'a4t-sale-discount' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'a4t-sale-discount'  Hi, My
C++
C++  How can i write this in dev c
c#
c#  how to find out the size of the BMP image in C
C++
C++  How can i write this in dev c
c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70
how can you calculate you your age in daies??
how can you calculate you your age in daies??  **hi, I am beginner in java! can any one help me to write programm to calculate age in daies???**   Hi Friend,ADS_TO_REPLACE_1 Try the following code: import
calculate average
calculate average  Question 2 cont.d Test case c: home works/labs 10 9 9 9 10 10 9 9 10 10 9 9 10 test scores: 65 89 note, the program should work with different numbers of home works/labs
how to read from dictionary c
how to read from dictionary c  how to read elements from dictionary in c programming
c++
c++  Write the definition of the class dayType that implements... on an object of type dayType: a. Set the day. b. Print the day. c. Return the day. d. Return the next day. e. Return the previous day. f. Calculate and return
How to read user input in C++
How to read user input in C++  How can i get an input from the users in C++?   You can use the standard input "cin" to get the input from user.. For example: int age; cin >> age
How to calculate minimum in Hibernate using the min() Function
How to calculate minimum in Hibernate using the min() Function The min() function of Hibernate API translates it to the SQL query and execute it against... will teach you how to use the HQL min() function in your Hibernate based
c#
c#  how to find out the size of the BMP image
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
problem 1 = C#
C# how to calculate discount   We are selling Monitors. We have...% discount User is required to provide all the details mentioned... attracts 8% discount b. 23 inch attracts 5% discount Ask the user to enter
how to calculate addition of two distances in feets and inches using objects as functions arguments
how to calculate addition of two distances in feets and inches using objects as functions arguments  how to calculate addition of two distances in feets and inches using objects as functions arguments in java
calculate average
calculate average   Design and write a java program to determine all... to the original number. abc = a^3 + b^3 + C^3 ( NOTE 407 is one of them) 2.Design and write a program and calculate your final average in this course. The details
ModuleNotFoundError: No module named 'm9s-account-invoice-discount'
: No module named 'm9s-account-invoice-discount' How to remove the ModuleNotFoundError: No module named 'm9s-account-invoice-discount' error...ModuleNotFoundError: No module named 'm9s-account-invoice-discount'  
ModuleNotFoundError: No module named 'm9s-account-invoice-discount'
: No module named 'm9s-account-invoice-discount' How to remove the ModuleNotFoundError: No module named 'm9s-account-invoice-discount' error...ModuleNotFoundError: No module named 'm9s-account-invoice-discount'  
ModuleNotFoundError: No module named 'm9s-account-invoice-discount'
: No module named 'm9s-account-invoice-discount' How to remove the ModuleNotFoundError: No module named 'm9s-account-invoice-discount' error...ModuleNotFoundError: No module named 'm9s-account-invoice-discount'  

Ads