Skip to content

ayushiag882/solution_2a2b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Time to Code

Problem Statement

Problem Statement - 2A

  • Write functions to read from a Comma Separated Value(CSV) file and display each line.
  • Example file: test.csv
  Name, Email_ID, Github_Link
  yourname, youremailID, yourgithublink
  yourfriendname, yourfriendemailID, yourfriendsgithublink
  • Output:
  Name = Yourname
  EmailID = youremailID
  GitHub Link = Your Github link...so on.

Problem Statement - 2B

  • Store the extracted data in the above step into an Array of below structure:
typedef struct info_t {
    char* name;
    char* email_id;
    char* git_link;
} info_t;
  • Write a function to sort the data in the array in the alphabetical order of names.

Guidelines:

Programming

  • Do not use scanf functions. Assume test values for arguments to functions.
  • Implement different functions for each operation instead of writing everything under main function.
  • Create a header file, source code file and test file.
  • Use Dynamic memory wherever possible.

Tool usage

  • Write Unit test cases for each function.
  • Makefile for compilation, running test cases and additional targets.
  • Create Documentation using Doxygen.
  • Use cppcheck and Valgrind tools to analyze the code.

Resources:

Solutions

Ouput:

  • alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published