Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help in C Programming Language pleasee 1 Program descriptions You will write six programs for this project. Except where explicitly noted, your programs may
Need help in C Programming Language pleasee
1 Program descriptions You will write six programs for this project. Except where explicitly noted, your programs may assume that their inputs are properly formatted. However, your programs should be robust. Your program should not assume that it has received the proper number of arguments, for example, but should check and report an error where appropriate. Except where noted, programs should always terminate with exit code EXIT_SUCCESS (that is, return ( from main). 1.1 whisper: String operations Write a program whisper which behaves like echo, but more quietly. Like echo, whisper will print its arguments to standard output, separated by spaces, with the following differences 1. If whisper receives no arguments, it will print three periods (...), representing silence. 2. If whisper receives two or more arguments, it will surround its output with parentheses, representing quiet speech. 3. Any upper-case letters in the input will be replaced with lower-case letters. 4. Any exclamation points in the input will be replaced with periods. Usage $ ./whisper I love NASA (i love nasa) $ ./whisper 'I AM YELLING!' (i am yelling.) $ ./whisper Notes Use argc to determine the number of arguments. Print a single space between any two arguments. Arguments may be zero-length strings, which should not be handled specially. Do not attempt to reconstruct what the user may have typed on the shell: work with the strings your program receives. $ ./whisper $ ./whisper " () $ ./whisper a "b (a b)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started