C Programming Language: Checking Number of Subjects Chosen for a Course

AI Thread Summary
The discussion revolves around creating a C program that checks the number of subjects a student has selected for a course, ensuring it meets the minimum requirement of six subjects. The program should run after the student updates their subject selection and display a message if the count is below six. It must include a function to count the subjects. The starting point for the code is provided, beginning with a basic `int main(void) { return 0; }` structure, which serves as the foundation for further development. Key points include the need for input handling, subject counting logic, and appropriate messaging based on the count.
joe88
Messages
3
Reaction score
0
my friend i fail to perform this simple task can you please direct me how to approach a simple question like this
the quetion said "a registrar set up the curriculum for the term . One course may have up to 10 subject . Students must select a minimum of 6 subjects from a particular course .Once a student registers for the term , the billing system is notified so that the student may be billed .Student may use the system to add or drop subjects for the period of time of registration.\
write a C program that will check the number of subject s the student has chosen for a course .This program will run after the student has updated the subject selection. If the number of subject is less than 6 then an appropriate message should be displayed on the screen . The program should include a function that will count the number of subjects.
 
Technology news on Phys.org
you start from something that compiles:
Code:
int main (void) {
  return 0;
}
and then add code as necessary.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top