subject

Day of the week. This program takes in three integers, representing day month year in that order, and should output the day of the week associated with the given date. The formula used to calculate the date is: day is the day of the month (1, 2, 3, etc.).
weekday (day + month + 1) = 24) - warport - warpers | Lantury ) +5 o century)
century is equal to (year / 100). For 2019, century would be 20. years part is the year within the century (year mod 100).
month is the month of the year, we typically associate the months as January. For 2019, year would be 19.
March = 3, etc. This is the case for this program for all cases except for January and February. Due to the way the formula works, specifically January and February must be entered into the above formula as months 13 and 14 of the previous year. This is to say that if you wanted to know which day of the week January 5, 1997 fell on, you would need month = 13, day = 5, year = 1996 when the values enter the formula. Your program should take them in as regular format 5 1 1997 and treat them differently once they have been read.
• The value weekday resulting from the equation will be a number [0,6] where Saturday = 0, Sunday = 1, etc.
The output of your program should be a single string name of the appropriate weekday. If the formula outputs 0, your output will be Saturday and so on.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
question
Computers and Technology, 25.06.2019 04:30
Which relativos possible when two tables share the same primary key? a.) one-to-one b.) one-to-many c.) many-to-one d.) many-to-many
Answers: 2
question
Computers and Technology, 25.06.2019 04:40
1. instructions: in your response, make an argument for whether for whether it is better for waketown to build its new wake heights subdivision or to preserve the wake wetlan to preserve the wake wetland preserve. use evidence from at least two of the sources below to support your claim. be sure to introduce your precise claim, develop the claim with evidence from the sources, and demonstrate relationships between ideas. (15 points)
Answers: 2
You know the right answer?
Day of the week. This program takes in three integers, representing day month year in that order, an...
Questions
question
Mathematics, 06.04.2021 19:00
question
History, 06.04.2021 19:00
question
Mathematics, 06.04.2021 19:00
Questions on the website: 13722359