Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write in C language and please notice the requirements thank you so much! Write a C program that prints a variant, as outlined below,

image text in transcribed

Please write in C language and please notice the requirements thank you so much!

Write a C program that prints a variant, as outlined below, given an input character: - if the input is: ' h ' or ' H ', then the output is two smiley faces. Printing new lines in between each face. - if the input is: ' s ' or ' S ', then the output is two sad faces. Printing new lines in between each face. Requirements: - Writing your own function called smile that accepts no parameters and returns nothing. When the input is: ' h ' or ' H ', your program should call the smile function two times, printing new lines in between each call, to produce the above output. - Writing your own function called cry that accepts no parameters and returns nothing. When the input is: 's' or ' S ', your program should call the cry function two times, printing new lines in between each call, to produce the above output

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Prove that 1-3+2-4+3-5+ for every positive integer n.

Answered: 1 week ago

Question

Group Size and Communication

Answered: 1 week ago

Question

Understanding Group Roles

Answered: 1 week ago