problem solving and c programming case study document for hands-on v1.0

Upload: flowerskrishna

Post on 07-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    1/13

    2007, Cognizant Technology Solutions. All Rights Reserved.The information contained herein is subject to change without notice.

    C3: Protected

    Problem Solving and 'C'Programming

    Case Study to be used for

    Hands-on Sessions

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    2/13

    2

    About the Author

    Created By: Jeyshankar Perumal (125623)

    Credential

    Information:

    Technical Skills: UNIX/C/C++/Oracle

    Experience: 8.5 Years

    Version andDate:

    PSC/CASE-STUDY/1107/1.0

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    3/13

    3

    Icons Used

    Questions

    Contacts

    Reference

    TryitOut

    HandsonExercise

    CodingStandards

    TestYourUnderstanding

    Tools

    AWelcomeBreak

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    4/13

    4

    Case Study: Overview

    Introduction:

    This case study is to develop a batch job which

    generates the monthly report for the given accountdetails from the XYZ bank.

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    5/13

    5

    Case Study - Generation of MonthlyBalance Reports

    XYZ bank is one of the best, well knownrecognized bank in the world.

    They have lot of customers across thecountries due to which they find lot ofchallenges in integrating their operation.

    They decided to outsource many componentsto outside vendors.

    One such component is the monthly reportgeneration.

    They will send you the huge accounts data fileand you have to generate monthly reports andsend back to them.

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    6/136

    Case Study - Generation of MonthlyBalance Reports (Contd.)

    Requirements:

    Create a batch program to generate two different

    monthly reports. They are: Account Balance Monthly Report

    Negative Balance Monthly Report

    Account Balance Monthly Report generation Thisreport should contain account balance information

    for all accounts opened and ACTIVE during the given

    month. The program should do the following to

    generate the report:

    Get the month for which the report is required

    Find out the first day and last day of month

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    7/137

    Case Study - Generation of MonthlyBalance Reports (Contd.)

    Read records from the Account Balance data file

    Check whether the account is ACTIVE

    Check whether each record lies between the date range

    calculated above

    If lies than print it on the report

    Else proceed with next record

    While printing on the report print by grouping branch

    wise

    The report should have valid header, footer, run date,

    heading and formatted

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    8/138

    Case Study - Generation of MonthlyBalance Reports (Contd.)

    Negative Balance Monthly Report This program

    should contain account balance information for all

    accounts whose balance is negative. The programshould do the following to generate the report.

    Read records from the Account Balance data file

    Check whether the balance is negative.

    If negative than print it on the report

    Else proceed with next record.

    The report should have valid header, footer, run date,

    heading and formatted.

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    9/139

    Case Study - Generation of MonthlyBalance Reports (Contd.)

    Sample reports

    Account Balance Monthly Report

    Negative Balance Monthly Report

    AccountBalanceMonthlyReport.txt

    NegativeBalanceMonthlyReport.txt

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    10/1310

    Q & A

    Questions

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    11/1311

    Summary

    By completing this case study you will begaining knowledge on the following:

    Basic elements of C language

    Conditional statements and looping

    Arrays and Strings

    Functions, Structures and Unions

    Pointers and Linkedlist

    File handling

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    12/1312

    Source

    This case study is created based on thedomain knowledge on banking transactions.This is not taken from any books, website orprojects.

    Disclaimer: Parts of the content of this course is based on the materials available from the Web sites andbooks listed above. The materials that can be accessed from linked sites are not maintained byCognizant Academy and we are not responsible for the contents thereof. All trademarks, service marks,and trade names in this course are the marks of the respective owner(s).

  • 8/6/2019 Problem Solving and C Programming Case Study Document for Hands-On v1.0

    13/13

    2007, Cognizant Technology Solutions. All Rights Reserved.The information contained herein is subject to change without notice.

    You have completed the CaseStudy for

    Problem Solving and 'C'

    Programming Hands-onSession