code for calender design. Copied answers will be reported fp = fopen(note.bin, w); } fclose(fp); while (1)
Fantastic news! We've Found the answer you've been seeking!
Question:
code for calender design. Copied answers will be reported
Transcribed Image Text:
fp = fopen("note.bin", "w"); } fclose(fp); while (1) { month "); printf("1. printf("2. "); year: "); &year); printf("3. printf("4. Exit "); printf("Enter your choice: "); scanf(" %c", &choice); switch (choice) { case '1' printf("Enter the day, month and scanf("%d %d %d", &day, &month, printf("The day is : %s ", getName(getDayNumber (day, month, year))); break; fp); Find the day "); Print calendar of a Add Note "); case '2': printf("Enter the month and year: scanf("%d %d", &month, &year); printf("Please enter 's' to see the notes Press any other key to continue "); calendar (year, month); break; case '3': printf("Enter the day, month and year: "); ¬e.month, ¬e.year); opened "); scanf("%d %d %d", ¬e.day, flush(); printf("Enter the note: "); fgets (note.note, 255, stdin); fp = fopen("note.bin", "a+"); if (fp == NULL) { printf("File note.bin can not be } exit(1); fwrite(¬e, sizeof(Note), 1, printf("Note added sucessfully "); fp = fopen("note.bin", "w"); } fclose(fp); while (1) { month "); printf("1. printf("2. "); year: "); &year); printf("3. printf("4. Exit "); printf("Enter your choice: "); scanf(" %c", &choice); switch (choice) { case '1' printf("Enter the day, month and scanf("%d %d %d", &day, &month, printf("The day is : %s ", getName(getDayNumber (day, month, year))); break; fp); Find the day "); Print calendar of a Add Note "); case '2': printf("Enter the month and year: scanf("%d %d", &month, &year); printf("Please enter 's' to see the notes Press any other key to continue "); calendar (year, month); break; case '3': printf("Enter the day, month and year: "); ¬e.month, ¬e.year); opened "); scanf("%d %d %d", ¬e.day, flush(); printf("Enter the note: "); fgets (note.note, 255, stdin); fp = fopen("note.bin", "a+"); if (fp == NULL) { printf("File note.bin can not be } exit(1); fwrite(¬e, sizeof(Note), 1, printf("Note added sucessfully ");
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
A. What is the expected dividend in two years? Suppose NI = $85,000 B. What is Samsung's WACC? Samsung's capital structure is 65% ordinary equity and 35% debt. He has operating assets equal to...
-
Carrico Advertising Inc. performs advertising services for several Fortune 500 companies. The following information describes Carrico's activities during 2019. a. At the beginning of 2019, customers...
-
The Goodstone Tire Company produces a brand of tire called the Rain path. The annual demand at its distribution center is 12,400 tires per year. The transport and handling costs are $2600 each time a...
-
Let \(f(\theta)\) be the \(2 \pi\)-periodic function determined by the formula \[f(\theta)=|\sin \theta|, \quad \text { for }-\pi \leq \theta \leq \pi\] Show that the Fourier series for \(f\) is...
-
Brian and Gary are college friends planning a skiing trip to Killington before the New Year. They estimated the following costs for the trip: Requirements 1. Brian suggests that the costs be shared...
-
Discuss the complexities involved in international financial management, including foreign exchange risk management, global capital budgeting, and cross-border investment strategies.
-
Crystal Corporation processes its journal vouchers using batch procedures similar to the process outlined in Figure in the text. To improve customer satisfaction, the sales system is going to be...
-
Qualtric Inc. has a target capital structure of 35% debt and the remainder common equity. Qualtric Inc.s cost of debt on the first $3 million borrowed is 7.5%, but that cost of debt increases to 8.0%...
-
Which term is used to refer to signals that encourage effective communication? What are the 3 basic concepts of therapeutic communication?
-
After receiving a scholarship for $100,000, you decide to deposit that money in an account bearing an interest rate of 4% per semi-annual compounding period. You intend to let the interest accrue on...
-
Define securitized mortgages, or mortgage-backed securities. Describe one way in which this innovation helps banks (be specific).Also provide one way in which its misuse helped lead to the financial...
-
Describe the elements of oral communication using a sender-receiver process. What can impair communication?
-
Within a modern capital market system, shareholders can diversify their risk and invest across different industries. In view of this, define and evaluate the rationale for mergers and acquisition...
-
Measuring the amount of myelin basic protein (MBP) in the CSF can be used to monitor the course of: a. Hemorrhage b. Multiple sclerosis C. All answers are correct d. Meningitis
-
The slopes of the tangents at the points where the curve y = x2 - 4x intersects the X-axis is 1) 1 2) +2 3) +3 4) +4
-
A second-order reaction is to be carried out in a real reactor that gives the following outlet concentration for a step input: For 0 t < 10 min, then CT = 10 (1 e.1t) For 10 min t, then CT = 5 + 10...
-
Read through all the problems at the end of this chapter. Make up and solve an original problem based on the material in this chapter. (a) Use real data and reactions for further instructions. (b)...
-
What if you were asked to explore the example problems in this chapter to learn the effects of varying the different parameters? This sensitivity analysis can be carried out by downloading the...
-
Which ratio measures the ability of a company to collect its receivables? a. Current ratio b. Quick ratio c. Days sales in receivables d. Return on assets
-
In vertical analysis, the base used for comparison on the income statement is a. total expenses. b. total assets. c. net sales. d. gross profit.
-
A statement that lists the assets, liabilities, and stockholders equity of a company in percentages only with no dollar amounts is a a. common-size income statement. b. benchmarking analysis. c....
Study smarter with the SolutionInn App