a) Write a C program that asks the user to write the ID and the GPA for the 2 or 3 CE264 group members of the current gr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

a) Write a C program that asks the user to write the ID and the GPA for the 2 or 3 CE264 group members of the current gr

Post by answerhappygod »

A Write A C Program That Asks The User To Write The Id And The Gpa For The 2 Or 3 Ce264 Group Members Of The Current Gr 1
A Write A C Program That Asks The User To Write The Id And The Gpa For The 2 Or 3 Ce264 Group Members Of The Current Gr 1 (53.01 KiB) Viewed 89 times
A Write A C Program That Asks The User To Write The Id And The Gpa For The 2 Or 3 Ce264 Group Members Of The Current Gr 2
A Write A C Program That Asks The User To Write The Id And The Gpa For The 2 Or 3 Ce264 Group Members Of The Current Gr 2 (34.83 KiB) Viewed 89 times
a) Write a C program that asks the user to write the ID and the GPA for the 2 or 3 CE264 group members of the current group in a text file under the name ce264_12345_56789.txt where 12345 and 56789 are the 2 student ID's. The file should be created by the C program in a folder made on desktop under the name "CE264_FI_12345_56789". Then the console should display the number of non-empty lines in the text document in a dynamic way. You are required to use one do...while loop for the implementation of this exercise. For any other possible extra loopings/iterations you may need to do, you can only use while loop. On the average (GPA) inputted value no matter what the user enters, the number on the text file should have a precision of only I decimal digit. In this exercise you will be allowed to upload 2 files where the first screenshot will be the output of the console and the second screenshot will be projecting the content of the file - it should be visible the directory location of this file (you may take a full screen snapshot and have the folder window in a non maximized format). Any other attached file with the solutions of the exercise will not be accepted and graded 0. The code will be strictly written on the textbox given to you. (15 points) - Sample output: Enter the ID and the average of each student member 12345 77,5 56789 82.4 The number of filled lines in the text document is: 21 The tayt fila chauld lank ile thin

b) Write all the steps you followed from the moment you opened the Codeblocks IDE and describe what actions you did until you reach the final result. (8 points) c) How did you achieve to locate the file in a customized directory destination? How did you deal with symbols inside a directory path that have multipurpose usability? With which commands do we initiate and close a stream of data towards or from a file in order for us to write or read data into/from the file? How do we read and write data in a file and how do we achieve the same in the IDE's console? What the fopen command takes as second parameter and what are all possible values it can get? What are the differences among those values? (17 points) A BI FE EE &
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply