Từ 1 tới 2 trên tổng số 2 kết quả

Đề tài: Assignment

  1. #1
    Ngày gia nhập
    08 2008
    Bài viết
    0

    Mặc định Assignment

    Em mới bắt đầu học C#. Có một bài tập muốn nhờ các cao thủ chỉ giúp em với. Hướng dẫn em cách làm. Thank so much !
    Balance Sheet

    you are to write a C# program that tracks a company's finances and summarizes the state of those finances in a balance sheet.
    Learning Outcome
    Upon successful completion of this assignment, you will have demonstrated the ability to use one-dimensional array data structures.
    Background
    A large percentage of the programs written for business are concerned with managing a company's finances. The basis for financial recordkeeping is a "chart" of accounts. Accounts are categories that track monetary amounts. The accounts in the chart include a bank account, accounts that track investments (such as equipment or real estate), accounts that track obligations to outside agencies (such as loans) and accounts that track investors' interest in the company.
    The accounts that track cash on hand and company investments are called "assets". An asset is anything that has value that might be realized. Examples of asset accounts include cash, equipment, inventory and real estate.
    The accounts that track obligations are called "liabilities". A liability is anything that decreases the total value of the assets. Examples of liability accounts are credit-card balances and long-term debt.
    The accounts that track investors' interest are called "equity" accounts. Examples of equity accounts are outstanding common shares and retained earnings.
    At any one time, each account has a "balance". In accounting, it is conventional to work with positive amounts throughout , regardless of the account type. This is achieved by introducing the terms "debit" and "credit" to describe the various account balances. Asset accounts are said to have debit balances, while liability and equity accounts credit balances.
    Each day, "transactions" are recorded that change some account balances. Each transaction is coupled to at least one other transaction. For example, recording a computer purchase introduces a transaction pair: one transaction to decrease the cash account (which is an asset account), and a second transaction to increase the equipment account (which is also an asset account). In accounting terminology, recording the purchase credits the cash account and debits the equipment account. Recording a bank loan would debit the cash account and credit the debt account (which is a liability). Each recording involves at least one debit transaction and one credit transaction.
    Debiting an asset account increases its (debit) balance, while crediting an asset account decreases its (debit) balance. Conversely, debiting a liability account decreases its (credit) balance, while crediting increases its (credit) balance.

    ---------Transaction---------
    Account Balance Credit Debit
    -------------------------------------------------------
    Asset Debit decrease increase
    Liability Credit increase decrease
    Equity Credit increase decrease

    The total of all transactions that occur over some period of time should involve equal debit and credit totals; that is, that the total (debit) balances of all asset accounts should equal the total (credit) balances of the liability and equity accounts. If these two totals differ, the company books are said to be "out of balance", and some adjustment transaction(s) must be entered to rectify that imbalance.
    The complete list of transactions for a period of time is called a "general journal" and documents the business activity that has occured over that period. The list showing the balances of each account at any one time is called the "balance sheet" and documents the health of the company's finances.

    Specifications
    You are to write a very basic bookkeeping program that allows the user to enter a series of transactions and to display both a general journal and a balance sheet.
    Your program identifies account numbers from 1000 to 1999 as asset accounts, from 2000 to 2999 as liability accounts, and from 3000 to 3999 as equity accounts.
    Your program displays a menu that offers the user four options:
    • enter a transaction
    • view the general journal
    • view the balance sheet
    • quit the program
    If the user chooses to enter a transaction, then your program prompts the user for
    • an account number (between 1000 and 3999)
    • the transaction type - whether the transaction is a debit or a credit
    • the amount of the transaction (always a positive number)
    If the user enters the account number for the very first time, your program adds the new account to the chart of accounts. Once the user has entered the transaction details, your program returns to the menu.
    If the user chooses to view the general journal, then your program displays all transactions that have been entered, in the order entered. The format of the general journal is as follows:

    General Journal
    Account Description Debit Credit
    ------- ------------------------------ ---------- ----------
    1400 3500.00
    2100 3500.00
    1000 3000.00
    1100 1000.00
    1400 2000.00
    3100 4 000.00
    3200 2000.00
    1000 2100.99
    1300 2100.99

    There are 30 blank spaces for each transaction description.
    If the user chooses to display the balance sheet, then your program displays the balances for all accounts for which transactions have been entered. Your program calculates each account balance by starting at zero and accumulating for that account the amount from each transaction in the general journal. The format for the balance sheet is as follows:

    Balance Sheet
    Account Description Debit Credit
    ------- ------------------------------ ---------- ----------
    1400 1500.00
    1000 899.01
    1100 1000.00
    1300 2100.99
    ---------- ----------
    Total Assets 5500.00

    2100 3500.00
    ---------- ----------
    Total Liabilities 3500.00

    3100 4000.00
    3200 2000.00
    ---------- ----------
    Total Equity 2000.00
    ---------- ----------
    Total Liabilities and Equity 5500.00

    There are 30 blank spaces for each account description.
    Note the subtotals for the account types - assets, liabilities and equity - and the sum of the liability and equity accounts.
    You may assume a maximum of 20 transactions and a maximum of 10 different accounts. These limits will allow you to display each of the general journal and the balance sheet on a 24-line screen.
    Your program allows for gaps in the account numbering, has good error checking, and prompts the user to re-enter unacceptable data (such as non-numeric input for numeric fields or account numbers outside the range 1000-3999). Your program is also well modularized, well commented and readily open to changes in the account type ranges, the maximum number of transactions and the maximum number of accounts.
    [Hint: one way to store transaction amounts is to store the debit amounts as negative numbers and the credit amounts as positive numbers. This technique simplifies coding by removing the need to track separately the debit or credit nature of each transaction entry. An alternative way to store transaction amounts is to store all amounts as positive values and to use a parallel array to track the debit or credit nature of the transaction amount.]

    Đọc xong mà hoảng
    Đã được chỉnh sửa lần cuối bởi hoact : 17-08-2008 lúc 11:03 PM.

  2. #2
    Ngày gia nhập
    11 2007
    Nơi ở
    Biết để làm gì?
    Bài viết
    827

    Bạn post cái đề này lên thì ai dám giúp bạn. Nhìn hoa hết mắt,ko muốn dich rồi. Cứ thử làm xem, vướng mắc gì thì hỏi mọi người chứ ai làm hết cho bạn được
    Cánh Chym ứ mỏi

Các đề tài tương tự

  1. Bài tập C Làm việc với file text. Cần giúp đỡ assignment!
    Gửi bởi nvanmanh trong diễn đàn Nhập môn lập trình C/C++
    Trả lời: 1
    Bài viết cuối: 15-12-2013, 03:00 PM
  2. Bài tập C Thứ tự ưu tiên của phép toán. lỗi non-lvalue assignment
    Gửi bởi giangcoi92 trong diễn đàn Thắc mắc lập trình C/C++/C++0x
    Trả lời: 14
    Bài viết cuối: 28-02-2012, 11:17 PM
  3. Bài tập C++ Assignment 1
    Gửi bởi boyanhtrai trong diễn đàn Nhập môn lập trình C/C++
    Trả lời: 5
    Bài viết cuối: 31-01-2012, 10:50 AM
  4. Thắc mắc về assignment c++, giúp mình
    Gửi bởi kenzouno1 trong diễn đàn Nhập môn lập trình C/C++
    Trả lời: 3
    Bài viết cuối: 30-10-2010, 11:59 AM
  5. Help---Assignment C++
    Gửi bởi xuandt76 trong diễn đàn Nhập môn lập trình C/C++
    Trả lời: 4
    Bài viết cuối: 26-10-2009, 02:32 PM

Quyền hạn của bạn

  • Bạn không thể gửi đề tài mới
  • Bạn không thể gửi bài trả lời
  • Bạn không thể gửi các đính kèm
  • Bạn không thể chỉnh sửa bài viết của bạn