Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that prompts for the user to input a word. Then check the word to make sure the first character is an alphabetic

Write a program that prompts for the user to input a word. Then check the word to make sure the first character is an alphabetic letter and capitalized, and it contains at least 8 characters. If it is not properly written, fix the word by bringing the alphabetic letter to uppercase if it was lowercase, or replace it with A if its not an alphabetic letter. If the words contains less than 8 characters, adding !s to the end to make it 8 characters long. Name your program word.c. Use getchar() to read in the input. The user input ends with the user pressing the enter key (a new line character). Example input/output: Input: hello Output: Hello!!! Input: 3littlepigs Output: Alittlepigs

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

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

Mercado del Algodon: 14 C 12 P H L LI T 02 12 12 10 11 12 10 14

Answered: 1 week ago

Question

understand the meaning of the terms discipline and grievance

Answered: 1 week ago