Write a C program to prompt user to enter credits for 6 HCT students and count the total number of student for Year1 HCT student, Year2 HCT student, and Year3 HCT student. Define the number of credits for Year1:0 to 60 credits, Year2: 51 to 100 credits, and Year3: more than 100 credis The output of the program.can be look like below. Enter credits of the HCT student [1]: 120 Enter credits of the HCT student [2]: 15 Enter credits of the HCT student [3]: 23 Enter credits of the HCT student [4]: 59 Enter credits of the HCT student [5]: 64 Enter credits of the HCT student [6]: 89 Year1 HCT student: 3 Year2 HCT student: 2 Year3 HCT student: 1 Process exited after 15.77 seconds with retur

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Question 18
hittpsi//wwww.onlinegdb.com/enline c+ compiler
Write a C program to prompt user to enter credits for 6 HCT students and count the total nurmber of student for Year1 HCT student Year2 HCT student, and Year3 HCT student.
Define the number of credits for Year1:0 to 60 credits, Year2i51 to 100 credits, and Year3: mare than 100 creds
The output of the program.can be look like below:
Enter credits of the HCT student [1]: 120
Enter credits of the HCT student [2]: 15
Enter credits of the HCT student [3]: 23
Enter credits of the HCT student [4]: 59
Enter credits of the HCT student [5]: 64
Enter credits of the HCT student [6]: 89
Yearl HCT student: 3
Year2 HCT student: 2
Year3 HCT student: 1
Process exited after 15.77 seconds with retur
Marking rubrics:
Correct use af the main function-2
Correct use of the printf and scanf-3
Correct use of the control structure (loops)-5
Program logic and correctness-5
TOTAL MARKS = 15
For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 IMac)
Transcribed Image Text:Question 18 hittpsi//wwww.onlinegdb.com/enline c+ compiler Write a C program to prompt user to enter credits for 6 HCT students and count the total nurmber of student for Year1 HCT student Year2 HCT student, and Year3 HCT student. Define the number of credits for Year1:0 to 60 credits, Year2i51 to 100 credits, and Year3: mare than 100 creds The output of the program.can be look like below: Enter credits of the HCT student [1]: 120 Enter credits of the HCT student [2]: 15 Enter credits of the HCT student [3]: 23 Enter credits of the HCT student [4]: 59 Enter credits of the HCT student [5]: 64 Enter credits of the HCT student [6]: 89 Yearl HCT student: 3 Year2 HCT student: 2 Year3 HCT student: 1 Process exited after 15.77 seconds with retur Marking rubrics: Correct use af the main function-2 Correct use of the printf and scanf-3 Correct use of the control structure (loops)-5 Program logic and correctness-5 TOTAL MARKS = 15 For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 IMac)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education