Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C language #include #include #include int main(void) { char name[80]; system(cls); printf(Enter your full name : ); gets(name); printf( Your name is %s , name);

C language

image text in transcribed

#include #include #include int main(void) { char name[80]; system("cls"); printf("Enter your full name : "); gets(name); printf(" Your name is %s ", name); system("pause"); return } Modify the program as follows: 1) Modify the program Lab7A.C to print your name using a function myPrintf(char* name). Your main function pass the string to function myPrintf(char* name), the function prints your name the same as Lab7A.C does. Save the program as Lab7B.C. 2) Modify the program Lab7A.C to count the number of characters in the name and display the number of characters. Do not count spaces as characters. The ASCII code for a space is 32 or' 'as a character. The program must use the function countChar(char* name) Save the program as Lab7C.C. Hint: "O' will be at end of every string

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_2

Step: 3

blur-text-image_3

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago