Question: This program has to be done in CCS Lab # 8 Continued ELEC 420 Exercise 8-1 Objective: Write programs using arrays. Requires: E3 module, USB

 This program has to be done in CCS Lab # 8

This program has to be done in CCS

Lab # 8 Continued ELEC 420 Exercise 8-1 Objective: Write programs using arrays. Requires: E3 module, USB cable, PC. Steps/Technical Procedure 1. Consider the following declarations: Notes char str 1 []="Hello EET!"; char str2[] = "CET with EET": char str3[40]; char str4[40]; char str5[] = "SET": Implement these items into program that use the strcpy() function to copy stri into str2, SET students into str3, and strs into str4. Output stri, str2, str3, str4, and str5, afterwards. Ex: stri = xx Use a void function to accomplish this task. 2. Consider the following function that counts the number of words in a string: void words (char string(1) int result=0, i=0; while (data[i] !=0) if(data[i++) =='') result++; if (data[0] !=0) result++; return (result); See page 115 of your textbook. Use this function to write a program to enter a string up to 100 characters and output the number of words. Trial Data- EET and CET are our majors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!