In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee's salary is input by the user write a program to find his gross salary.
Design a class TBills to include customer_id, customer_name, phone number, calls and usagecost and also include the following member functions
-getCustomerData()- To input customer data(customer_id, customer_name, phone number,calls)
-usage_cost() - to calculate the monthly telephone bills and calculate the usage cost of telephone bill as per the following rule:
• Minimum Rs. 200 for upto 100 calls.
• Plus Rs. 0.60 per call for next 50 calls.
• Plus Rs. 0.50 per call for next 50 calls.
• Plus Rs. 0.40 per call for any call beyond 200 calls.
-monthlyTelephoneBills() - to display monthly telephone bills of customer
Define a Class to get length and breadth of a rectangle. Get length and breadth from the user, calculate and display its area.
You need to find which digit occurs most number of times across the four given input numbers.
input1, input2, input3 and input4 are the four given input numbers.
The program is expected to find and print the most frequent digit.
Example1 –
If input1=123, input2=234, input3=345, input4=673
We see that across these four numbers,
1, 5, 6 and 7 occur once,
2 and 4 occur twice, and
3 occurs four times.
Therefore, 3 is the most frequent digit and so the program must print 3
NOTE: If more than a digit occurs the same number of most times, then the smallest of those digits should be the result. Below example illustrates this.
Example2 –
If input1=123, input2=456, input3=345, input4=5043
We see that
0, 1, 2 and 6 occur once, and
3, 4 and 5 occur thrice.
As there are three digits (3, 4 and 5) that occur most number of times, the result will be the smallest (min) digit out of these three. Hence, the result should be 3
I don't really understand this
Day:
Month:
Year: Then, your program should ask the user to select from a menu of choices using this formatting:
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
Please enter a date
Day: 5
Month: 5
Year: 1984
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
1
31Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
31Please enter a date
Day: 21
Month: 6
Year: 2016
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
2
193Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
193An algorithm that request a user to input their name and then stores their name in a variable called first name. Subsequently, algorithm should print out first name alone with the phrase "Hello,World".
define in detail datatypes in SQL server?
Example code to create a web page with HTML and CSS
Sample run
Let’s roll some dice!
You rolled a 3
You rolled a 5
You rolled a 4
You rolled a 1
You rolled a 6
You rolled a 1
You rolled a 4
You rolled a 2
You rolled a 3
You rolled a 5
Three in a row in 10 rolls.
How to Implement a Linked List class to store the following information about students:
Registration number of the student
Name of the student
CGPA of the student