Question: In C please! Thank you code.cX 4 New Exit Full Screen 1 #include 2 #include 3 #include 4 #include 5 6 int main(void) { 7

 In C please! Thank you code.cX 4 New Exit Full Screen1 #include 2 #include 3 #include 4 #include 5 6 int main(void){ 7 8 // create a 3x3 array of doubles called floatiand initialize it with 1.0, 2.0, ... 9 10 //add 100.1 to

In C please! Thank you

code.cX 4 New Exit Full Screen 1 #include 2 #include 3 #include 4 #include 5 6 int main(void) { 7 8 // create a 3x3 array of doubles called floati and initialize it with 1.0, 2.0, ... 9 10 //add 100.1 to the elements on the diagonal of floati 11 12 1/print all the elements of floati by row, 13 // with the elements separated by tabs and 14 // zero padded, formatted as nnnnnn.nnn 15 16 return (0); 17 } 18 | O Exit Full Screen code.c + New 1 #include 2 #include 3 #include 4 #include 5 6- int main(void) { 7 8 // create a 2x2x2 array of doubles called float2 w/o any initial values 9 10 // HOW MANY VALUES ARE IN THIS ARRAY: 11 12 // use nested for loops to prompt the user for the data 13 // "Enter value [%d] [%d][%d]: ". 14 15 // use nested loops to print the data in float2, formatted as: 16 // float[x][x][x]: 17 18 19 return (0); 20 } 21 code.c New Exit Full Screen 1 #include 2 #include 3 #include 4 #include 5 6 // REFERENCE 7 // http://www.cplusplus.com/reference/cstdio/ 8 // http://www.cplusplus.com/reference/cstring/ 9 10 - int main(void) { 11 // create a 50 character string named s1 and initialize it to 12 // "This is test string 1!!" 13 14 // create a 100 character string named s2 15 16 // print string si followed by a new line 17 18 // use a while loop and a character function to count the alphabetic characters in si 19 // and print the result as: "# of alphabetic characters: " 20 21 //use for loop and a character function to count the words in the word 22 23 24 return (0); 25 } 26 O Exit Full Screen code.c New 1 #include 2 #include 3 #include 4 #include 5 6 // REFERENCE 7 // http://www.cplusplus.com/reference/cstdio/ 8 // http://www.cplusplus.com/reference/cstring/ 9 10 - int main(void) { 11 // create a 50 character string named si 12 13 // create a 100 character string named s2 14 15 printf("Enter s1 (up to 50 characters): "); 16 // use fgets to read up to 50 characters into string s1 17 // don't forget to handle the new line character! 18 19 // use a string function to copy si to s2 AND append "!!!!" on one line 20 // then print s2 one character at a time on a single line using a for loop: 21 // s2 = "" 22 23 // create a 50 character string named s3 24 25 // use a string function to copy the first 13 characters from s2 to s3 and 26 // print s3 right justified: s3 = " string here" 27 28

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!