Zeller’s congruence is an algorithm developed by Christian Zeller to calculate the day of the week. The formula is
h is the day of the week (0: Saturday, 1: Sunday, 2: Monday, 3: Tuesday, 4: Wednesday, 5: Thursday, 6: Friday).
q is the day of the month.
m is the month (3: March, 4: April, ..., 12: December). January and February are counted as months 13 and 14 of the previous year.
j is the century (i.e., ⌊year/100⌋).
k is the year of the century (i.e., year % 100).
Write a program that prompts the user to enter a year, month, and day of the month, and then it displays the name of the day of the week. Sample runs of program are given below:
For example, if the given seconds are 200. As 200 seconds is equal to 3 minutes and 20 seconds, and days, hours are zero, so ignore the days and hours. So the output should be "3 Minutes 20 Seconds
float x = 4.3, y = 9.2;
bool a = false;
1. ((x < 5) && (y < 10))
2. !((x < 5) && (y < 10))
3. ( !(x < 5) || !(y < 10))
4. (x >= 5) || (y >= 10))
5. !((x >= 5) || (y >= 10))
6. ( !(x >= 5) && !(y >= 10))
7. ((x < 5) && (y > 10))
8. ((x < 5) || !(y < 10))
9. !((x >= 5) && (y != 10))
10. !a && !(y >= 10))
EXP CURRENT VALUE OF x
1. x = 36; __________________
2. x += 13; __________________
3. x = x - 23; __________________
4. x -= 32; __________________
5. x++; __________________
6. x -= 2; __________________
7. x--; __________________
8. x = x + 6; __________________
9. x += 17; __________________
10. x -= 4; __________________
Rahul created a file and he saved some points from his notes to that file but while saving the points he added some n characters as hints at the end. Now he wants to create a new file in which he wants to copy that hints from file 1 to a new file so he can use that new file for exam preparation.
Write a program to complete the Rahul's task.
There is a secret organization and they want to create a secret language for the calculation to make the data secure. Now the manager of the organization asked his IT employee to make the program which will
function as follows:
a) + will subtract the numbers
b) - will divide the numbers
c) * will add the numbers
d) / will multiply the numbers
Rahul created a file and he saved some points from his notes to that file but while saving the points he added some n characters as hints at the end. Now he wants to create a new file in which he wants to copy that hints from file to a new file so he can use that new file for exam preparation. Write a program to complete the Rahul's task.
Make a C++ program that will print the output on the screen using do while loop. (NOTE: There are no spaces in between rows)
Make a C++ program that will print the output on the screen using do while loop
Make a C++ program that will print the output on the screen using do while loop. (NOTE: There are no spaces in between rows)
Make a C++ program that will print the output on the screen using do while loop. (NOTE: There are no spaces in between rows)