Use java method to find minimum among entered five numbers
write a program that will find the day of the week from a date and will also prepare a calendar on a monthly basis. (Science: day of the week). July 20, 1973 is a FRIDAY using Zeller’s congruence is an algorithm developed by Christian Zeller
h=(q+[26(m+1)/10] + y +[y/4] + 6 * [y/100]+[y/400]) % 7
Where,
■ h is the day of the week (0: Saturday, 1: Sunday, 2: Monday.....)
■ q is the day of the month
■ m is the month (3: March, 4: April, ….., 12: December)
■ y is the year
NOTE: In this algorithm, January and February are counted as months 13 and 14 of the previous year. E.g. if it is February 2, 2010, the algorithm counts the date as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format). Consequently, for January and February, the year y should be replaced by y – 1. Suffice to say, the month m should also be replaced by m + 12 then.
Sample Input/Output :
Input: Enter year: 2005 Enter month (1-12): 1 Enter day: 21
Output: January 21, 2005 is FRIDAY
Correct the following code make it run easily and explain each step that what is happening in the code.Also attach the picture of the code when you code successfully runs...
public class DLL {private Node start;private Node end;private int count;public DLL()
{start = end = null;count = 0;}
public void insertAtStart(Data d)
{Node tn = new Node(d, null, null);
if (count == 0) {start = end = tn;} else {tn.next = start;start.prev = tn;start = tn;}
count++;}
public void insertAtEnd(Data d) {if (count == 0) {insertAtStart(d);}
else {Node tn = new Node(d, null, end);
end.next = tn;end = tn;count++;}}
public void insertAt(Data d, int index) {if (count == 0 || index == 0) {insertAtStart(d);} else if (index >= count) {insertAtEnd(d);} else {Node temp = start;for (int i = 0; i < index; i++, temp =temp.next);Node tn = new Node(d, temp, temp.prev);
temp.prev.next = tn;temp.prev = tn;}}}
public class Node {Data d;Node next;Node prev;public Node(Data d, Node n, Node p) {this.d = d;next = n;prev = p;}}
Write an algorithm to find the total number of units of memory allocated/deallocated by the server one after processing all the request
Write a program that involving 2 hash sets populate with 5 members coming from the user. Perform the set operation (UNION, INTERSECTION)
write a program that uses a class employee to display employee details. The class should include the following members.
Data members: Empno, Empname, basic pay, house allowances ,medical allowances.
Member function: to read employee details to calculate gross salary and not net salary.
Calculate gross salary and net salary.
Gross salary= baasic +house allowances+medical allowances
Net salay=Gross salary - tax
Develop a c++ program having a class called mathematics used to calculate sum for two integer values. The program should create an object of the class int main ( ) program
out of 2 testcases, only 1 testcase is getting fail where its loged in console as NAN. write a Javascript function to return the final value finalValue with the given appreciation percentage and time period. Input
The first line of input contains a number principal
The second line (optional) of input contains a number time
The third line (optional) of input contains a number apprPercentage
Output
The output should be a single line containing the finalValue
Final Value with Appreciation:The formula to calculate the final value with appreciation is, finalValue = principal * (1 + time * appreciation / 100).
Given principal amount
principal as an input, time period in years time and appreciation percentage apprPercentage as optional inputs, write a Javascript function to return the final value finalValue with the given appreciation percentage and time period. The default values for time and apprPercentage are 2 and 5 respectively.
Input1:
1000
2
3
Expected
1060
input2:
2000
Expected
2200
If we change the integer argument of the call method for Fact into 10, what happens? Explain your answer
C++ full program that calculate the value of U. U=a+g*power(v,2) where g=constant