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
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 yearHow 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 EMI of the loanhow 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 max and min - RUPhow 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 Questionshow 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 arrayC 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 monthHow 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
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
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
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 averagecalculate 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
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
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
calculate averagecalculate 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