1. Write a program that uses getchar to accept any string but uses putchar to print only the uppercase letters separated by spaces. 2. Modify the preceding program in C9.1 to use only getc and putc....


1. Write a program that uses getchar to accept any string but uses putchar to print only the uppercase letters separated by spaces.


2. Modify the preceding program in C9.1 to use only getc and putc. How can you run this program from the shell of the operating system?


3. Use getchar and switch in a program to accept from the keyboard a string comprising only letters and then print the number of vowels and consonants in the string.


4. Develop a menu-based program that fi rst prompts for an integer and then presents three options of printing that number in octal, decimal or hex.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here