Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

i need help solving this exercises TEXAS SOUTHERN UNIVERSITY DEPARTMENT OF ENGINEERING (ELECTRICAL & COMPUTER) ECE 319: REAL TIME EMBEDDED SYSTEM LAB LAB EXERCISES @

image text in transcribed
i need help solving this exercises
TEXAS SOUTHERN UNIVERSITY DEPARTMENT OF ENGINEERING (ELECTRICAL & COMPUTER) ECE 319: REAL TIME EMBEDDED SYSTEM LAB LAB EXERCISES @ 02.21.2020 INSTRUCTIONS: Type and run the following C code in Microsoft Visual Studio /* C Programming using the scanf() */ #include int maino char ch; char str[100); printf("Enter any character: "); scanf("%c", &ch); printf("Entered character is: %c 'n", ch) printf("Enter any string (up to 100 character ) "); scanf("%s", &str) printf("Entered string is: %s ", str); NOTE: The format specifier %d is used in scanf() statement, so that, the value entered is received as an integer and %s for string. o Ampersand (&) is used before variable name "ch" in scanf() statement as &ch. It is just like in a pointer which is used to point to the variable. EXERCISE Amend the program above as follows: a) Declare an Array named ECE in the code above which is of size 4, that receives string. b) Use the scanf() to receive the following strings into corresponding position in the array as follows: ECE-236, ECE-330, ECE-433, ECE-430 c) Print the content of the Array ECE REPORT Write comprehensive Lab report based on your observations and the results obtained. The lab report must be submitted on or before the day of next lab. 1 (ECE 319_Spring2020) Lab @02.21.2020

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students explore these related Databases questions