Skip to main content\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 9.7 Practice Your Logic Statements!
Subsection 9.7.1 Days of the Month
Activity 9.5.
You’d like to print the ordinal day of the month (i.e. 1st, 2nd, 3rd) in the following form based on the cardinal input provided (i.e. 1, 2, 3).
"Today is the 2nd day of the month."
"Today is the 21st day of the month."
Complete the following C-program so that it will accomplish this task.
admin.....open in new window
Subsection 9.7.2 Constant or Vowel?
Activity 9.6.
Write a C program that reads from the user input a letter and that prints out whether this letter is a vowel or a consonant.
For example, if the user input is ’b’, the program’s output should be:
"The letter b is a consonant."
If, on the other hand, the user input is ’E’, for example, then the program’s output should be:
"The letter E is a vowel."
admin.....open in new window
When you are done, please put your code you added into the code submission box below: