logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Kevin ConnellyComputer science
(4/5)

824 Answers

Hire Me
expert
Gabriel WalkerHistory
(5/5)

576 Answers

Hire Me
expert
George BlackbridgeBusiness
(5/5)

817 Answers

Hire Me
expert
Seth PowelllEngineering
(5/5)

676 Answers

Hire Me
C Programming

Write a program that read from the user id, names, and marks for a number of students.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

PROG 12974 - Introduction to Programming (C) Fall 2019

Assignment 3 – Student Records

Description

Write a program that read from the user id, names, and marks for a number of students. The program then list all the students and allows user to search the list by giving a search key. This assignment will help you understand C pointers, characters, and strings. NOTE: do NOT use scanf in this assignment.

 

Requirements

The program will

  • REQ-1: read the total number of students from the user. Assume user’s input is a valid

  • REQ-2: read id, name, and marks for each student, store into three arrays. Each record is given in a line of text, with id, name, and marks separated by a comma. Student id is an integer, name contains letters and spaces, and mark is a double value. Assume user’s inputs are in correct

  • REQ-3: print the list of students and the average mark. Student names are displayed in all-caps.

  • REQ-4: read any search key from the user, search students by name and display all records that contain the key in the name. Also display the average for the found records (display 0.0 if no record is found). Keep on searching until the user inputs a ‘q’ or ‘Q’, then exit the program. If the user wants to search a single letter ‘q’ or ‘Q’, the user will input “\q” or “\Q”.

 

Grading

Your submission will be evaluated based on the following criteria:

 

Documentation

 

2

Code is well-commented and clearly explained

Efficiency

 

4

Code uses the best approach and is efficient

Functionality

 

34

Program works correctly and meets the requirements

REQ-1

3

 

Number read; Three parallel arrays created for id, name, marks

REQ-2

9

 

Number of records parsed and stored into the three arrays

REQ-3

5

 

Each record is printed in a row; Last row displays the average

REQ-4

Total Marks

17

 

40

Search key is read and used in searching with results printed

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme