Find Jobs
Hire Freelancers

File Input/Output loading, reading parallel arrays, searching a string array

$15-20 USD

Ολοκληρώθηκε
Αναρτήθηκε περίπου 21 χρόνια πριν

$15-20 USD

Πληρωμή κατά την παράδοση
(A1) Enter student data from keyboard and write to file. (A2) Read student data from this file into a group of parallel arrays (or a struc array) and display the array contents. (B) Repeatedly prompt for a student name, search for and display the student’s data (if found). I will send the files needed to complete this project. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. (A1) Modify program readtofile.c to load the following arrays from the keyboard. After loading, display the array contents. Student Arrays (all of size STUDMAX=10). Reject any entries that do not meet the requirements below. a. stud_id[ ] = array of student id’s exactly 6 char in length b. stud_last[ ] = array of student last names (15 char max) c. stud_first[ ] = array of student first names (15 char max) d. stud_gpa[ ] = array of gpa values validated to be in range 0.0 ??" 4.0 (A2) Modify program readfrfile.c to load the above arrays from the file. After loading, display the array contents. (B) Add a search function to program readfrfile.c. This function, in a loop, prompts the user for a student name (last, first), searches for and displays the student’s data (if found). If the name is not found, display a “not found?? message. Hints: 1. For a 15 char max stringsize, you must define the string as having at least 16 chars to allow for the null string terminator. 2. The columns in the student data display should be user friendly and line up. 3. Be sure to show all the invalid cases in your tests, including student found, not found. Also two students with same last name. Sample Output: Keyboard to File > studkeytofile id=123 id=123 must be exactly 6 characters id=1234567 id=1234567 must be exactly 6 characters id=123456 last=lastname15chars first=firstname15char gpa=4.1 gpa= 4.10 is not > 0.0 and <= 4.0 gpa=0.0 gpa= 0.00 is not > 0.0 and <= 4.0 gpa=3.4 do another student? (y/n):y student: 123456 lastname15chars firstname15char 3.40 id=smith1 last=Smith first=Leslie gpa=3.2 do another student? (y/n):y student: smith1 Smith Leslie 3.20 id=Jones1 last=Jones first=Harold gpa=3.4 do another student? (y/n):y student: Jones1 Jones Harold 3.40 id=Carter last=Howard first=Carter gpa=2.1 do another student? (y/n):n student: Carter Howard Carter 2.10 ======= students=========== id last first gpa 123456 lastname15chars firstname15char 3.4 smith1 Smith Leslie 3.2 Jones1 Jones Harold 3.4 Carter Howard Carter 2.1 supply output filename [login to view URL] outfilename=[login to view URL] successfil file creation > Sample Output: File to Array > studfiletoload supply input filename [login to view URL] infilename=[login to view URL] ======= students=========== id last first gpa 123456 lastname15chars firstname15char 3.4 smith1 Smith Leslie 3.2 Jones1 Jones Harold 3.4 Carter Howard Carter 2.1 end of input processing > Sample Output: Array Limit Test > studfiletoload supply input filename [login to view URL] infilename=[login to view URL] abcdef Harwick Harold 3.0 -discarded, array full ghijkl Montana Joseph 2.9 -discarded, array full ======= students=========== id last first gpa 120000 LastNameabcdefg FirstNameabcdefg 4.0 120001 Smith John 3.9 120009 Jones Fred 3.8 110008 Michigan Louis 3.7 09aa03 Ontario Philip 3.6 00009a Willemantic Jeffrey 3.5 aaa000 Southbird Edwina 3.4 111000 Willemantic Louisa 3.3 999900 Maine Richard 3.2 999990 Vermont Stephan 3.1 end of input processing student search: last name=:Willemantic first name=:Jeffrey id last first gpa 00009a Willemantic Jeffrey 3.5 do another search? (y/n)y student search: last name=:Willemantic first name=:Louis Willemantic, Louis not found do another search? (y/n)y student search: last name=:LastNameabcdefg first name=:firstNameabcdefg LastNameabcdefg, firstNameabcdefg not found do another search? (y/n)y student search: last name=:LastNameabcdefg first name=:FirstNameabcdefg id last first gpa 120000 LastNameabcdefg FirstNameabcdefg 4.0 do another search? (y/n)y s ## Platform linux unix
Ταυτότητα εργασίας: 2930860

Σχετικά με την εργασία

9 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 21 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
See private message.
$12 USD σε 14 ημέρες
4,9 (212 αξιολογήσεις)
5,8
5,8
9 freelancers δίνουν μια μέση προσφορά $12 USD για αυτή τη δουλειά
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
5,0 (29 αξιολογήσεις)
4,7
4,7
Avatar Χρήστη
See private message.
$14,45 USD σε 14 ημέρες
4,9 (79 αξιολογήσεις)
4,7
4,7
Avatar Χρήστη
See private message.
$4,25 USD σε 14 ημέρες
5,0 (36 αξιολογήσεις)
3,6
3,6
Avatar Χρήστη
See private message.
$12,75 USD σε 14 ημέρες
4,2 (10 αξιολογήσεις)
3,4
3,4
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
5,0 (19 αξιολογήσεις)
3,2
3,2
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
5,0 (7 αξιολογήσεις)
2,5
2,5
Avatar Χρήστη
See private message.
$8,50 USD σε 14 ημέρες
5,0 (5 αξιολογήσεις)
1,3
1,3
Avatar Χρήστη
See private message.
$8,50 USD σε 14 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
United States
5,0
2
Μέλος από Μαΐ 6, 2003

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.