Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

Are robots going to displace all workers? Explain your answer.

Answered: 1 week ago