Given a string, find the count of elements that are not vowels.
Write a program which reads salaries of 10 employees of an organization. The program will tell, what the maximum salary is and what the minimum salary is
Write a program that takes the marks from the user and tells the grade corresponding to the marks. The marks and corresponding grades are mentioned below:
Marks Grades
Greater than 90 A
Greater than or equal to 86 and less than 90 A-
Greater than or equal to 81 and less than 86 B+
Greater than or equal to 77 and less than 81 B
Greater than or equal to 72 and less than 77 B-
Greater than or equal to 68 and less than 72 C+
Greater than or equal to 63 and less than 68 C
Greater than or equal to 58 and less than 63 C-
Greater than or equal to 54 and less than 58 D+
Greater than or equal to 50 and less than 54 D
Below 50 F
a python program to Count of negative elements in the list (-7-9 3 4 5 -6 -8 2)
Write a program that able to compute the pay of both types of employees: retired one’s and employed, the retired employees will receive pension and it will be computed and displayed with proper variables and messages. The pension of the employer will be fixed and will be computed on the basis of age, if the age of the retired employer is between 60 to 70 years then its pension will be 30000 and if the age is greater than 70 then the pension will be 40000. The pay of the employer will be computed on daily worked hours and the net pay will be shown with the proper messages of gross salary. The pay of the employer will be 1000 rupees per day if he/she worked for 8 hours and if it works more than 8 hours, then he will be paid 300 rupees per hour but the extra time can only be utilized at maximum of 3 hours.
Create a class Person with attributes string Name, string Address and int age and define getter setter
method using Auto Implementation Property
• Create a class PersonImplementation and implement the below given methods:
1. GetName(IList<Person> person) display the name and address of all the persons in the List
2. Average(List<Player> players) to calculate the
average age of all the persons.
3. Max(IList<Player> players) to find the maximum age of the person.
Program Specifications. Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number of people attending, the average number of slices per person and the cost of one pizza. Dollar values are output with two decimals. For example, System.out.printf("Cost: $%.2f", cost);
Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress.
Step 1 (2 pts). Read from input the number of people (int), average slices per person (double) and cost of one pizza (double). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the Math.ceil() method to round up to the nearest whole number and convert to an integer. Calculate and output the cost for all pizzas. Submit for grading to confirm 1 test passes.
Program Specifications Write a program to calculate the cost for replacing carpet for a single room. Carpet is priced by square foot. Total cost includes carpet, labor and sales tax. Dollar values are output with two decimals. For example, System.out.printf("Cost: $%.2f", cost);
Note: This program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress.
Step 1 (2 pts). Read from input the carpet price per square foot (double), room width (int) and room length (int). Calculate the room area in square feet. Calculate the carpet price based on square feet with an additional 20% for waste. Output square feet and carpet cost. Submit for grading to confirm 1 test passes.
A local pizza shop is selling a large pizza for $9.99. Given the number of pizzas to order as input, output the subtotal for the pizzas, and then output the total after applying a sales tax of 6%.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
System.out.printf("Subtotal: %.2f\n", yourValue);
Ex: If the input is:
3the output is:
Subtotal: $29.97
Total due: $31.77Question 2a: Explain further on the three main principles of Object-Oriented Programming
2b: More Details on each one How it works on C++ with 2 examples each