Discover Company wants to display the salary (net income) of their employees every payday. To compute the salary of an employee, the company requires the following input data such as: rate per hour, number of hours per day, number of days per week, and
number of weeks per month.
Obligatory deduction of each employee which allocated for SSS contribution, Philhealth contribution, Tax contribution, and Pagibig contribution.
For pagibig contribution, the deduction is fixed to P200.00 and rest of each deduction value are coming from the data entry or inputs of the user.
Gross Income = the product of rate per hour, number of hours per day, number
of days per week, and number of weeks per month.
Total Deduction = the sum of SSS, Philhealth, Tax and Pagibig contribution.
Net Income= difference between Gross Income and Total Deduction.
Note: Computed net income is the equivalent salary of an employee per payday.
Create a pseudocode and flowchart. Phoenix store wants a daily sales transaction. Computer will compute and display total sales per transaction and discount amount given to senior citizen, person with disabilities and with membership card. This store only sells the following books. English 1, English 2, English 3, Physics 1, Physics 2, Physics 3, Introduction to Computer Science, Python, WPF, Web Development, Psychology, Chemistry 2, Our Daily Bread. Price are not permanent and depends based on entry of staff. The books not sold per transaction, corresponding prices equivalent to zero, books sold per transaction and prices of each book vary to entry of the staff. Get the total sales and discount amount.
Total sales= sum of the prices each book sells by bookstore
Discount for Senior Citizen= 30% of total sales per transaction
Discount for PWD=20% of total sales per transaction
Discount for Members=15% of total sales per transaction
Note: no discounts will be given to regular customers
Using Serialization to persist business data
Q1) Define an array list and take inputs from the user and fill the array list so this array list values I want to serialize it into xml file using Soap formatter so implement this functionality.
Q2) Now create a class Customer with the following attributes
class Customer
{
public int CustomerID { set; get; }
public string CustomerName { set; get; }
public string City { set; get; }
}
Now serialize this class customer and fill the inputs into it and what values u have filled using properties of this class that customer filled object u serialize into binary format using Binary formatter and then again try to read the file and deserilize the customer object stored in binary format in that file .
U can use .dat files or .txt files as well .
for this inputs
5
0 -2
3 6
4 7
1 -3
2 -1
5
0 1
1 2
2 -4
3 3
4 5
expected output is
12x^4 + 9x^3 - 5x^2 - x - 1but output is
12x^4 + 9x^3 - 5x^2 - 1x - 1for question #206080
The Airplane always needs to check with the Airport to see if it has an
available runway before it's able to take off or land. Simulate the above-
mentioned scenario using multi-threading.
Write a program which takes as input a huge array of numbers. This array is
split into n sub-arrays and n threads apply a bubble sort on each of the n
sub-arrays. Lastly, another thread merges the n sorted sub-arrays into one
with the same size as the original array. Of course, the resulting array
should be sorted.by using Multi-Threading
Q3. A customer getting offers from different banks for deposit amount. From SBI customer is getting offer for 7.5 rate of interest , from PNB Bank getting offer for 8.5 rate of interest and from OBC Bank getting offer 9.5 rate of interest. Create an application where you have to create one base class named "ReserveBank" which has given instructions to all bank to give some rate of interest in deposit amount. Find out the amount after applying rate of interest from all these banks.
write a program to get given output for the given input.
input:[[1,2,3],[2],[3,4],[1,2,5,6],[5,7,8]]
output:[1,2,3,4,5,6,7,8]
in python.