Question

This needs to be written in C.

8. Create a calendar program using the current month (similar to the one shown in Figure 1.6).

5. Create a program that uses escape sequence \ to print your favorite quote. 6. Create a program that uses escape sequence

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Your answers : ::

Problem 5 ::

#include<stdio.h>
int main()
   {
       printf (" \"Enter your quote here...\" \n");
}
kiddo@kiddo-TravelMate-P243-M:~/Desktop kiddo@kiddo-TravelMate-P243-M:~/Desktop$ gcc prob6.c kiddo@kiddo-TraveLMate-P243-M-/D

Problem 6 ::

#include<stdio.h>
int main()
   {

       printf("c:\\cygwin\\home\\administrator.");
}

39 kiddo@kiddo-TravelMate-P243-M: /Desktop kiddo@kiddo-TravelMate-P243-M~/DesktopS gcc prob5.c kiddo@kiddo-TravelMate-P243-M:

Problem 7 ::

#include<stdio.h>
void main()
{
int a,b,n;

printf("Input Length:");
scanf("%d",&n);
for(a=0;a<n;a++)
{
for(b=a;b<n-1;b++)
{
printf(" ");
}
for(b=0;b<=2*a;b++)   
{
if(b==0||b==2*a)   
{
printf("*");
}
else   
{
printf(" ");
}
}
printf("\n");
}
for(a=n-1;a>=1;a--)
{
for(b=a;b<n;b++)
{
printf(" ");
}
for(b=1;b<2*a;b++)
{
if(b==1||b==2*a-1)   
{
printf("*");
}
else
{
printf(" ");
}
}
printf("\n");
}
}

kiddo@kiddo-TravelMate-P243-M:~/Desktop kiddo@kiddo-TravelMate-P243-M:~/Desktop$ gcc prob7.c kiddo@kiddo-TravelMate-P243-M:~/

Problem 8 ::

#include<stdio.h>

int main()

   {
       printf ("Sun\tMon\tTue\tWed\tThus\tFri\tSat\n"); //Printing the days in a month of a time table ...
      
       // Printing the dates on par with the days using \t tab-spaces....

       printf (" \t \t \t 1 \t 2 \t 3 \t 4\n");
       printf (" 5 \t 6 \t 7 \t 8 \t 9 \t10 \t 11\n");
       printf ("12 \t13 \t14 \t15 \t 16 \t17 \t 18\n");
       printf ("19 \t20 \t21 \t22 \t 23 \t24 \t 25\n");
       printf ("26 \t27 \t28 \t29 \t 30 \t31\n");

   }

kiddo@kiddo-TravelMate-P243-M: /Desktop kiddo@kiddo-TravelMate-P243-M:~/Desktop$ gcc prob8.c Wed kiddo@kiddo-TravelMate-P243-

Add a comment
Know the answer?
Add Answer to:
This needs to be written in C. 8. Create a calendar program using the current month (similar to t...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a C# program that prints a calendar for a given year. Call this program calendar....

    Write a C# program that prints a calendar for a given year. Call this program calendar. This program needs to use Switch Case in order to call the methods and format to print each month. The program prompts the user for two inputs:       1) The year for which you are generating the calendar.       2) The day of the week that January first is on, you will use the following notation to set the day of the week:      ...

  • Write a C# program that prints a calendar for a given year. Call this program calendar....

    Write a C# program that prints a calendar for a given year. Call this program calendar. The program prompts the user for two inputs:       1) The year for which you are generating the calendar.       2) The day of the week that January first is on, you will use the following notation to set the day of the week:             0 Sunday                     1 Monday                   2 Tuesday                   3 Wednesday       4 Thursday                 5 Friday                      6 Saturday Your program should...

  • 1) Write a Python program that prompts the user to enter the current month name and...

    1) Write a Python program that prompts the user to enter the current month name and prints the season for that month. Hint: If the user enters March, the output should be "Spring"; if the user enters June, the output should be "Summer". 2 )Write a Python program using the recursive/loop structure to print out an equilateral triangle below (double spacing and one space between any two adjacent asterisks in the same row).          *      * * * *...

  • Write a program that, given a month and year, prints a calendar, such as June 2016...

    Write a program that, given a month and year, prints a calendar, such as June 2016 Su Mo Tu We Th Fr Sa 5 6 7 8 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 To find out the weekday of the first day of the month, call this function: Computes the weekday of a given date. @param year the year @param month the month (1=January 12=...

  • using C programming Date Write a program that reads a month and a day in that...

    using C programming Date Write a program that reads a month and a day in that month and prints the date in format "month day". The input is two integers, one between 1 and 12 (inclusive) and one between 1 and 31 (inclusive) and the output is a single line in format "month day". For example, for input 2 10 the program will print "February 10th". The day will always have the ordinal indicator, e.g. 1st, 2nd, 3rd, 4th. Example...

  • ***This program is to be created using PyCharm Pro*** 1. Print “This program manipulates text from...

    ***This program is to be created using PyCharm Pro*** 1. Print “This program manipulates text from files and the clipboard and performs other string, file, and directory manipulation tasks.” 2. Output the current working directory of the program. 3. Ask the user to enter the directory where they would like files to be stored, make that directory, and store files in the program in that directory. 4. Write the following three lines to file_one.txt (without bullet points): • Line 1...

  • Write a python program and pseudocode The Program Using Windows Notepad (or similar program), create a...

    Write a python program and pseudocode The Program Using Windows Notepad (or similar program), create a file called Numbers.txt in your the same folder as your Python program. This file should contain a list on floating point numbers, one on each line. The number should be greater than zero but less than one million. Your program should read the following and display: The number of numbers in the file (i.e. count them) (counter) The maximum number in the file (maximum)...

  • Write a C program that does the following: • Displays a menu (similar to what you...

    Write a C program that does the following: • Displays a menu (similar to what you see in a Bank ATM machine) that prompts the user to enter a single character S or D or Q and then prints a shape of Square, Diamond (with selected height and selected symbol), or Quits if user entered Q. Apart from these 2 other shapes, add a new shape of your choice for any related character. • Program then prompts the user to...

  • This C++ Programs should be written in Visual studio 2017 PROGRAM 1: Comparing Using Arrays to...

    This C++ Programs should be written in Visual studio 2017 PROGRAM 1: Comparing Using Arrays to Using Individual Variables One of the main advantages of using arrays instead of individual variables to store values is that the program code becomes much smaller. Write two versions of a program, one using arrays to hold the input values, and one using individual variables to hold the input values. The programs should ask the user to enter 10 integer values, and then it...

  • Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a...

    Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a shell file called by (your name), your enrollment number, your program and the courses you study. Use the appropriate variables and display the above to the standard output (screen). . 2. Write A Shell Script to perform the following: Display the files and directories Print the date in 24 hour format Display the System id Display the current working directory Print the status of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT