Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A file of 40 student records contains name, gender (male or female) and their program field (science or non-science) for cach student. An algorithm is
A file of 40 student records contains name, gender (male or female) and their program field (science or non-science) for cach student. An algorithm is needed to read through the filc and calculate the number of male and female science students, the number of male and female non-science students. The algorithm should also calculate the total numbers of science students and non-science student. Print these numbers on a student summary report. a) Draw the defining table. (8 marks) List any four (4) possible identifiers using the correct naming convention together with their datatypes from the above scenario. b) (8 marks) c) Write the pseudocode to solve the above problem. (12 marks) A file of 40 student records contains name, gender (male or female) and their program field (science or non-science) for cach student. An algorithm is needed to read through the filc and calculate the number of male and female science students, the number of male and female non-science students. The algorithm should also calculate the total numbers of science students and non-science student. Print these numbers on a student summary report. a) Draw the defining table. (8 marks) List any four (4) possible identifiers using the correct naming convention together with their datatypes from the above scenario. b) (8 marks) c) Write the pseudocode to solve the above problem. (12 marks)
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