compute Reimann sum of the function f(x)=e^(-x^2) for n=4 and n=10 by choosing ck at the right end of the point of the interval [0,2]
A function has different forms such as function call ,declaration, definition .in your opinion which form of function is called prototype and why?
Do a C++ program for the following string manipulation assignment:
Prompt the user for their first name, last name, phone number, and social security number. Make sure to let the user knows to not enter any dashes or parenthesis for phone number and social security number.
Validate each number for the number of characters (phone number must be 10 characters and SSN must be 9). Make sure to insist for a valid number that is if the number length is incorrect display an error message and prompt again, again, and again until valid number was entered.
Take the phone number and social security number and place proper dashes or parenthesis and display the result.Also display their full name and their reversed full name.
Create a class in C++ and name it phone. Declare data members (cost of phone and number of sim slots) inside the class.
Create three objects of the Phone class: (You are going to have three brands of phone) Assign values to the data members declared
Display cost of the three objects of phone created
Display sim slots of the three objects created.
Draw a flowchart and develop an application that will store the salesperson’s code, which is to be entered in the codeTextBox, in an Integer variable named code. The application will need to store the sales amount, which is to be entered in the salesTextBox, in a decimal variable named sales. Display the result of the calculation, or the error message, in the messageLabel. Name your Program SalesAccount.
Write a program to calculate the net pay of an employee. Input the basic pay, pass basic pay to user defined function PayCalculate(), calculate net pay and return to main function. Calculate the net pay of an employee should be stored in a file along with its complete detail such as emp_no, emp_name, emp-designation and next time if user want to view it can easily view it.
House Rent is 45% of basic pay.
Medical Allowance is 5% of basic pay if pay is greater than Rs.4000, it is 7% of basic pay if basic pay is less than or equal to Rs.4000.
Conveyance Allowance is Rs.200 of basic pay if pay is greater than Rs.4000, it is Rs.435 of basic pay if basic pay is less than or equal to Rs.4000.
Net pay is calculated by adding house rent, medical allowance ,conveyance allowance and basic pay.
Create an array of 5 objects of
calculator. Use parameterized constructor to initialize the values. Display output of all four
arithmetic operations.
Prompt user to enter only one character. The characters are as follows: {‘A’ , ‘a’ ,’B’, ‘b’}.Then display whether it is uppercase or lowercase letter by using switch.. case statement. If the user enters incorrect character, display the sentence “incorrect input”.
Create program using appropriate control structure.
3. Suria is ready to develop a system that will automate the process of calculating payroll for employees worked at Infinity Design Solution Sdn. Bhd. Each employee will be recognized by employee ID. The system will receive gross income, allowance, overtime, income tax and loan deduction. The system will automatically calculate the total income, total deduction and net salary for the employee. System will calculate the total income based total deduction. Help Suria to create the program.
Create program using appropriate control structure.
Position Discount
1. Food Item 5 %
2. Health Item 6%
3. Electric Item 9%
4. Cloth Item 4 %
2. Write a program that prompts the user to input two number and symbol ( + , - , * , /). The program should then output the number and message saying result of the operation.