Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please create the following program in C++. Also, please use beginner preprocesser directives, no #include h>.Thank you. Given the following data that was provided by

Please create the following program in C++. Also, please use beginner preprocesser directives, no "#include h>".Thank you.

image text in transcribed

Given the following data that was provided by the University of California offices over-looking the 4 following different campuses: UCLA, UCB, UCD, and UCSD. The data are given in text file "file.txt" "File.txt" 20 25 30 15 10 30 40 20 10 20 60 40 40 60 40 50 Male=1 Female=0 UnderGrado Gradr = 1 UCLA=0 UCB=1 UCD=2 UCSD=3 Write a program to do the following a. Copy data from the file provided above into array: int stud[2][4][2]; a. Make sure to use calling statement: copyData("file.txt", stud); b. Display the total number of students. use totalStud EfindTotalStud(stud); C. Display the total number of female students. use totalFemales=find Females(stud) d. Display the total number of graduate students. totalGrad=findGrads(stud); e. Display the number of under-graduate students in the UCB Campus. Use undergraduCB=findunderUCBI stud): Given the following data that was provided by the University of California offices over-looking the 4 following different campuses: UCLA, UCB, UCD, and UCSD. The data are given in text file "file.txt" "File.txt" 20 25 30 15 10 30 40 20 10 20 60 40 40 60 40 50 Male=1 Female=0 UnderGrado Gradr = 1 UCLA=0 UCB=1 UCD=2 UCSD=3 Write a program to do the following a. Copy data from the file provided above into array: int stud[2][4][2]; a. Make sure to use calling statement: copyData("file.txt", stud); b. Display the total number of students. use totalStud EfindTotalStud(stud); C. Display the total number of female students. use totalFemales=find Females(stud) d. Display the total number of graduate students. totalGrad=findGrads(stud); e. Display the number of under-graduate students in the UCB Campus. Use undergraduCB=findunderUCBI stud)

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions