
Concept explainers
Write a fully annotated C program that does ALL of the following:
(a) Create a user defined type to represent a Student record that contains the
following descriptions:
Name Data Type Size
student_ID numeric 5
student_Name character 30
student_Address character 50
student_major Character 20
student_sex character 1
(b) Create 2 student records with the following information.
StudentOne
ID: 14567
Name : John Lee Name
Address: 24, Jalan Rajah,
Singapore 111111
Major : Computer Science
Sex: male
StudentTwo
ID: 15970
Name : Marsha Johnson
Address: 29, Jalan Eunos,
Singapore 22222
Major: Accounting
Sex: Female
Display the record of studentOne on the screen.

Step by stepSolved in 3 steps with 1 images

- In the C programming language, a pointer is used to store the ADDRESS of a data value. True Falsearrow_forwardI need help on my python assignmentarrow_forwardGame of Hunt in C++ language Create the 'Game of Hunt'. The computer ‘hides’ the treasure at a random location in a 10x10 matrix. The user guesses the location by entering a row and column values. The game ends when the user locates the treasure or the treasure value is less than or equal to zero. Guesses in the wrong location will provide clues such as a compass direction or number of squares horizontally or vertically to the treasure. Using the random number generator, display one of the following in the board where the player made their guess: U# Treasure is up ‘#’ on the vertical axis (where # represents an integer number). D# Treasure is down ‘#’ on the vertical axis (where # represents an integer number) || Treasure is in this row, not up or down from the guess location. -> Treasure is to the right. <- Treasure is to the left. -- Treasure is in the same column, not left or right. +$ Adds $50 to treasure and no $50 turn loss. -$ Subtracts…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





