Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE DO THESE VARIATIONS: a) if date is divisible by 6 put an additional digit 6 to the immediate right of the actual date. b)

image text in transcribedPLEASE DO THESE VARIATIONS:

a) if date is divisible by 6 put an additional digit 6 to the immediate right of the actual date. b) isolate the third week (by keeping a counter) and isolate the Wednesday of that week. Make that date blank. c) Print the normal calendar, but while doing it must add up the numbers in the third row, and then at end of program test if that sum is divisible by 7, if so, say so at end of Calendar. d) increasing spacing for the separation of columns, with wider gaps as the columns are rightwards. e) Add numbers up in the fifth column and print the sum.

Calendar code:

#include #include

int main() { int i, start=3, days=31, p;

for (i=1; i

for (i=1; i 9. (14 points) (This is from a previous textbook) Write a program that prints a one-mont h calendar. The user specifies the number of days in the month and the day of the week on which the month begins: Enter number of days in month: 31 Enter starting day of the week (1-Sun, 7-Sat): 3 The month calendar is below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions