Results 1 to 11 of 11

Thread: Help in solving my problem

  1. #1
    mehtab786 is offline Junior Member
    Last Online
    5th July 2011 @ 03:06 PM
    Join Date
    13 Oct 2008
    Posts
    15
    Threads
    1
    Credits
    465
    Thanked
    0

    Default Help in solving my problem

    to all

    main nay is problem ko solve kar nay ki try ki hai but mujhay say nahi solve hoi agar koi ya problem solve kar day then i will be very thankful to him or her. problem is::


    I want to write a C++ program that contains a structure named “Account” having four data members

    1) Account number
    2) Account holder name
    3) Account type
    4) Account Balance

    Account type may be Saving, Current, etc.

    In main function, declare an array of structure “Account” of size 10. Populate this array by taking data from user and store user account data into a structure.

    The above account information for all users should also be stored in a text file that contains Account number, Account holder name, Account type and Account balance separated by comma (,).

    When user enters all account information for all account holders then following menu should be displayed to the user:

    • Enter 1 to search account information by Account number
    • Enter 2 to search account information by Account holder name
    • Enter 3 to search number of user having particular Account type
    • Enter 4 to search number of user having Account balance greater than 10,000
    • Enter 5 to quit from program

    The program should repeat the above process from menu 1 to 4 until user enters 5



    More Detailed for understand:


    1. If user enters 1 then program should prompt the user to enter “Account number” to be searched. If the Account number found within array of structure then account information corresponding to the given account number should be displayed on the output screen otherwise it should display message: “Account information is not available”.

    2. If user enters 2 then program should prompt the user to enter “Account Holder Name” to be searched. If the Account Holder name found within array of structure then account information corresponding to the given account holder name should be displayed on the output screen otherwise it should display message: “Account information is not available”.

    3. If user enters 3 then program should prompt the user to enter “Account type” and then displays the number of users having particular account type. For example, if user enters Account type as “Saving” then it should display the number of user having account type saving otherwise it should display message: “No user has Account type Saving” and so on.

    4. If user enters 4 then program should display the number of users having salary greater than 10,000 otherwise displays message: “No user has balance greater than 10,000”.

    5. If user enters 5 then program should terminate.

    please replay me as soon as possible

    thanks

  2. #2
    Join Date
    17 Jan 2009
    Location
    lahore
    Age
    40
    Posts
    141
    Threads
    6
    Credits
    0
    Thanked
    0

    Default

    Salam
    mehtab main ny ap ka thread abhi parha hai
    ap ka kaam mushkil nahi lamba hai
    shayed isi leay kisi ny reply nahi kia
    Anyway ager abhi b problem main ho to mujh se pin point problem discus krna k yahan problem aa rahi hai

  3. #3
    pakcoders is offline Member
    Last Online
    31st January 2009 @ 01:05 AM
    Join Date
    26 Jan 2009
    Age
    36
    Posts
    35
    Threads
    5
    Thanked
    0

    Default

    Main is ka solution ap ko bana ker de don but pehlay mujay ap ka response chaye k ap zinda bhi hain ya.....

  4. #4
    tasnim_jadoo is offline Junior Member
    Last Online
    2nd June 2009 @ 02:34 PM
    Join Date
    22 Mar 2009
    Age
    37
    Posts
    7
    Threads
    2
    Credits
    955
    Thanked
    0

    Default

    bhai aap apni assingnment hum say to na karwo na...............hehehe
    anyway agar waqai aap ko problem hai then solve kar k day sakta hn.........but agar aap ki assignment hai to aap pehlay khud try karo.....ye ziyada acha hai.....tc

  5. #5
    amibalouch is offline Junior Member
    Last Online
    29th October 2009 @ 01:23 PM
    Join Date
    21 Feb 2009
    Posts
    11
    Threads
    0
    Credits
    970
    Thanked
    0

    Default

    dear u will buy a c++ book and there at there u r probleme

  6. #6
    Imran Latif Mcs is offline Junior Member
    Last Online
    5th August 2009 @ 07:54 AM
    Join Date
    06 May 2009
    Age
    38
    Posts
    3
    Threads
    1
    Credits
    726
    Thanked
    0

    Default

    Asslam-o-Alaikum.
    How are you. I hope that you will be fine with the grace of ALLAH ALMIGHTY. May you always enjoys a good and fine health (Aamin).

    Mehtab main ny aap k praogram k baray main parha hy. Agar aap ko abhi bhi is ki help chahiye tou main hazir hoon. INSHA ALLAH kal main aap ko ek "ATM Machine" ki is tarah ki example send kr doon ga.

    Aap ka jawab ka intizar hy................

  7. #7
    asnmsn is offline Junior Member
    Last Online
    21st December 2009 @ 01:33 PM
    Join Date
    06 May 2009
    Age
    36
    Posts
    28
    Threads
    1
    Credits
    0
    Thanked
    0

    Default

    Ok. Lets try.

  8. #8
    bitguider's Avatar
    bitguider is offline Junior Member
    Last Online
    30th July 2010 @ 01:04 PM
    Join Date
    29 Jul 2010
    Location
    islamabad
    Age
    35
    Gender
    Male
    Posts
    4
    Threads
    0
    Credits
    945
    Thanked
    0

    Default

    AoA:
    i am waqas ahmed, doing BSCS from comsats university islamabad...if you have any problem relating to c++/oop or data structure send me e-mail with your assignment /problem at bitguider*********** soon you will get its solution....
    regards
    waqas ahmed

  9. #9
    n0mi_89 is offline Junior Member
    Last Online
    6th August 2010 @ 01:53 AM
    Join Date
    05 May 2009
    Age
    35
    Posts
    20
    Threads
    4
    Credits
    945
    Thanked
    0

    Default

    tough one!

  10. #10
    zainghulam is offline Senior Member+
    Last Online
    12th December 2015 @ 10:50 AM
    Join Date
    07 Dec 2008
    Posts
    47
    Threads
    24
    Credits
    0
    Thanked
    6

    Default code of this

    //pora nhi banaya hai main kam kardiya hai




    #include <iostream>
    #include<fstream>


    #define N 10

    using namespace std;

    struct account{
    int acc_number;
    char account_hol_name[10];
    char accout_type[10];
    int account_bal;

    };


    int main()
    {
    struct account acc[N];





    ofstream out;
    out.open("f.txt");

    for (int i = 0 ; i < N ; i++)
    {
    cout<<"Enter The Account Number : "<<endl;
    cin>>acc[i].acc_number;
    cout<<"Enter The Account name : "<<endl;
    cin>>acc[i].account_hol_name;
    cout<<"Enter The Account type : "<<endl;
    cin>>acc[i].accout_type;
    cout<<"Enter The Account balance : "<<endl;
    cin>>acc[i].account_bal;


    out<<"Accout Number : "<<acc[i].acc_number<<endl;
    out<<"Accout Name : "<<acc[i].account_hol_name<<endl;
    out<<"Accout type : "<<acc[i].accout_type<<endl;
    out<<"Accout balance : "<<acc[i].account_bal<<endl;

    out<<"---------------------------------------------------"<<endl;
    }




    system("pause");
    }

  11. #11
    ithoun is offline Senior Member+
    Last Online
    16th September 2014 @ 05:43 PM
    Join Date
    31 May 2010
    Posts
    176
    Threads
    38
    Credits
    760
    Thanked
    24

    Default

    i know c programing v 3.0 not c++

Similar Threads

  1. paper solving method
    By Msyar786 in forum Solved Problem (Education)
    Replies: 7
    Last Post: 4th March 2015, 03:45 PM
  2. Help Me Solving This Question (NTS)
    By UET Boy in forum Educational Help
    Replies: 5
    Last Post: 15th August 2013, 12:10 AM
  3. Data Structures, and Problem Solving With C++ ... eBook (PDF)
    By oralover2006 in forum English IT Zone
    Replies: 3
    Last Post: 6th June 2009, 08:49 PM
  4. w200i problem solving????????
    By Moon DANGER in forum General Mobile Discussion
    Replies: 1
    Last Post: 24th March 2009, 08:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •