Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THE student.dat has the same information in the paper (up list-table) so you just please create a file name student.dat and try to help me

image text in transcribed

THE student.dat has the same information in the paper (up list-table) so you just please create a file name student.dat and try to help me to solve this question and get the same output in next list (down list-table )

(in C programing language)

Download the random access file from blackboard named "students.dat" containing the folowing information to help you run your program Cradit 1234 767 132 4751 643 731 3.99 1.30 1.70 3.14 1.98 2.60 123 75 English Rialegy Physics Chanietry 84 57 18 Write a program that reads records from a random access file having the members below in the exact order Student name (length 25 characters) ID (type integer) .GPA (type float) Major (length 15 characters) number of credits (type integer) Your program should change the student major to "PROBATION" for each student in the file that has 30 or more credits and a GPA less than 2 and rewrite it back to the file. After all necessary records have been changed, print all student information to the text file "probation.txt", in table form, where the major is replaced with either "YES" or"NO" according to whether the student is on probation or not. You may not use arrays to perform this task. Prepared by: T.A. Rena Alzaid Fall 2017/2018 CS 220: Programming in C and Unis Lab#11 Your final output text file may look as follows: Credits Student 1ID GPA Student Name 123 75 3.98 1.30 1.70 3.14 1.98 2.60 NO YES No NO 1234 8767 9132 Tarek Nabeela 5643 7831 84 57 18 No

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_2

Step: 3

blur-text-image_3

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions