Answered step by step
Verified Expert Solution
Question
1 Approved Answer
8. Write C statements to perform the following. To declare a suitable structure to store the following data of a student. Name, student_ID, email_ID and
8. Write C statements to perform the following. To declare a suitable structure to store the following data of a student. Name, student_ID, email_ID and CGPA. To declare an array of structures that can store this data for 100 students and to print the name and email_ID of the students under merit list. Students having CGPA of 3.5 and above are considered in the merit list. [4 marks] 9. Write C statements to perform the following. To declare and initialize a pointer to point a variable called weight. To assign 65 to weight using the pointer. To print the value of weight using the pointer. [2 marks] 10. Write a C program that prompts the user to answer the question "What is the capital of Malaysia? Print "Correct" and stop the program if the entered answer is matching with Kuala Lumpur". Print "Not correct" and allow them to enter it one more time. Print Answered correctly in second attempt if it is matching or print Your attempts are over" if it is not matching again
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started