Free Essay

Ledger C Programming

In:

Submitted By darude
Words 280
Pages 2
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>

struct subscriber
{
char phonenumber[50]; char name[20]; float amount;
}s;
void add(); void list(); void deleterec(); int main()
{
int phonenumber; char choice;

system("cls"); printf("\n\n\n\n\n\n\n"); printf("\n\t\t\t* Mark Rude Personal Ledger *"); printf("\n\n"); while (1) { printf("\n Enter:"); printf("\n A - Add new record"); printf("\n L - List records"); printf("\n D - Delete all records"); printf("\n E - Exit\n"); scanf("%c", &choice); choice=toupper(choice); switch(choice) { case 'A': add();break; case 'L': list();break; case 'D': deleterec();break; case 'E': exit(0); default: system("cls"); } }
}
void add()
{
FILE *f; char test; f=fopen("c:/mark.txt","ab+"); if(f==0) { f=fopen("c:/mark.txt","wb+"); system("cls"); } system("cls"); printf("\n Enter phone number:"); scanf("%s",&s.phonenumber); printf("\n Enter name:"); fflush(stdin); scanf("%[^\n]",&s.name); printf("\n Enter amount:"); scanf("%f",&s.amount); fwrite(&s,sizeof(s),1,f); fflush(stdin); system("cls"); printf("1 record successfully added\n"); fclose(f); printf("Hit any key to return"); getchar();
}
void list()
{
FILE *f; int i; if((f=fopen("c:/mark.txt","rb"))==NULL) { system("cls"); printf("No accounts available\n"); } else { system("cls"); printf("Phone Number\t\tUser Name\t\t\tAmount"); while(fread(&s,sizeof(s),1,f)==1) { printf("\n%-10s\t\t%-20s\t\t%.2f ",s.phonenumber,s.name,s.amount); } printf("\n");

fclose(f); } printf("\n"); getchar();
}
void deleterec()
{
FILE *f,*t; system("cls"); printf("Deleted all accounts"); remove("c:/mark.txt"); printf("\n"); getchar();
}

Similar Documents

Free Essay

Performance Analysis of Substitution Cipher Based Cryptographic Algorithm

...CURRICULUM VITAE EGUNSOLA Olubola Kehinde 16, Adeolu Egunsola Street Off Jibowu Estate Road U-Turn Bus Stop Abule-Egba Lagos. PERSONAL PORTFOLIO Date of Birth 17th August 1972 Place of Birth Lagos State State of Origin Ogun State Nationality Nigerian L.G.A Abeokuta South Sex Male Marital Status Married Number of Child. Three Children, 8yrs, 5yrs, and 3yrs old E-Mail egunsola_olubola @yahoo.com Phone Number 08035855769 07086566947 Permanent Address 10, Ogere Road, Iperu-Remo, Ogun State. EDUCATIONAL BACKGROUND Institution Certificate Date Federal University of Technology M.Tech 2010-2013 Yola, Adamawa State Operations Research option(Computer Simulation) Olabisi Onabanjo University Ago Iwoye B.Sc (Ed) 1997-2000 (Formerly Ogun State University) Computer Science Federal College of Education Osiele N.C.E 1994-1996 Abeokuta Ogun State Computer Science/PSC Egbado College Ilaro ...

Words: 1309 - Pages: 6

Free Essay

Vivek

...ac.in SCHEME FOR POST GRADUATE DIPLOMA IN COMPUTER APPLICATIONS (PGDCA) (Effective From July 2011 Session) SEMESTER -I Subject Code Subject Name Scheme L 1PGDCA1 1PGDCA2 1PGDCA3 1PGDCA4(A) 1PGDCA4(B) Fundamentals of Computers & Information Technology Introduction to Operating Systems (Dos, Windows, Linux) PC Packages Elective - 1 Foxpro MS-Access 4 4 1 3 T P Theory Paper 80 80 Internal Evaluation 20 20 Practical Exams Total Marks 100 100 4 4 1 3 3 80 80 20 20 25 25 125 125 Semester Total 450 (*L-Lecture, T-Tutorial, P-Practical) SEMESTER –II Subject Code Subject Name Scheme L 2PGDCA1 2PGDCA2 2PGDCA3 2PGDCA4(A) 2PGDCA4(B) 2PGDCA5 System Analysis and Design Programming with Visual Basic.NET Internet & E-Commerce Elective - 2 OOPs & Programming with C++ Financial Accounting with Tally Project Work 4 4 4 4 T 1 P 3 3 3 Theory Paper 80 80 80 80 Internal Evaluation 20 20 20 20 Practical Exams Total Marks 100 125 100 125 25 1 25 4 100 Semester Total 550 General Instructions: 1. For passing the subject examination minimum 40% marks must be separately scored in Theory Paper, Practical Exams and Internal Evaluation in the subject. 2. For passing the semester, minimum aggregate marks must be 45% in the semester. Course : PGDCA Sub Code : 1PGDCA1 Semester: I Subject Name : Fundamentals of Computers & Information Technology Workshops Total Hours Field Visits Practical’s UNIT–I Brief History of Development of Computers...

Words: 4021 - Pages: 17

Premium Essay

会计英语词汇核心600词

...(33)associated company 联营公司 A (34)attainable standard 可达标准 A (35)attributable profit 可归属利润 A (36)audit 审计 A (37)audit report 审计报告 A (38)auditing standards 审计准则 A (39)authorized share capital 额定股本 B (59)bill payable 应付票据 B (60)bill receivable 应收票据 B (61)bin card 存货记录卡 B (62)bonus 红利 B (63)book-keeping 薄记 B (64)Boston classification 波士顿分类 B (65)breakeven chart 保本图 B (66)breakeven point 保本点 B (67)breaking-down time 复位时间 B (68)budget 预算 B (69)budget center 预算中心 B (70)budget cost allowance 预算成本折让 B (71)budget manual 预算手册 B (72)budget period 预算期间 B (73)budgetary control 预算控制 B (74)budgeted capacity 预算生产能力 B (75)business center 经营中心 B (76)business entity 营业个体 B (77)business unit 经营单位 B (78)by-product 副产品 C (79)called-up share capital 催缴股本 C (80)capacity 生产能力 C (81)capacity ratios 生产能力比率 C (82)capital 资本 C (83)capital assets pricing model 资本资产计 常用会计英语词汇 基本词汇 A...

Words: 3375 - Pages: 14

Premium Essay

Sol 9

...CHAPTER 9 AUDITING COMPUTER-BASED INFORMATION SYSTEMS SUGGESTED ANSWERS TO DISCUSSION QUESTIONS 9.1 Since most organizations make extensive use of computer-based systems in processing accounting data, it is essential that computer expertise be available in the organization's audit group. Such expertise should include: * Extensive knowledge of computer hardware, software, and accounting applications * A detailed understanding of appropriate control policies and procedures in computer systems * An ability to read and understand system documentation * Experience in planning computer audits and in using modern computer auditing techniques. All internal auditors may not possess expertise in all of these areas. However, there is certainly some minimum level of computer expertise that is appropriate for all auditors. This would include: * An understanding of computer hardware, software, accounting applications, and controls. * The ability to examine all elements of the computerized AIS * The ability to use the computer as a tool to accomplish these auditing objectives. ...

Words: 5026 - Pages: 21

Premium Essay

Business

...1. ACCOUNTING SYSTEMS IN A COMPUTER ENVIRONMENT ACC 109 Information and its complexity For any business to survive, it needs an objective that it strives to achieve. The manager of a business must plan, organize, direct and control the activities of an organization so that the set objective is met. In order to perform these functions they need to be making decisions continuously. To make decisions managers need information to help them to make informed choices. Basically a computer is a device that has the ability to accept data, internally store and execute a program of instructions, perform mathematical, logical and manipulative operations on the data and internally store the data or the result from the earlier described processes and reports on the results. Data and Information Data is raw facts or unprocessed information, computers and manipulate data according to the instructions contained in the software to produce information. Activities that are captures into an information system are known as data. -Data that has been processed is available as information and must be used by someone -Information is created through a process of recording, capturing and processing data and activities, then communicating it to the users to increase their knowledge to enable them to make decision. -Processing data involves doing calculations on the activities and summarizing the activities, classifying the activities according to certain attributes, sorting the activities etc. Information...

Words: 12308 - Pages: 50

Free Essay

Sm of Ch10

...Chapter 10 THE PRODUCTION BUSINESS PROCESS TEACHING TIPS I usually gloss over the materials on job costing, for my students have covered job costing in their Cost/Managerial course. I do emphasize the need for good ledger control over property, plant, and equipment. THE PRODUCTION BUSINESS PROCESS Production Planning and Control. A sales order or sales forecast cause the creation of production orders which specify items that should be produced. Materials are requisitioned and production is scheduled. Items are produced, inspected, transferred to finished goods inventory, then transferred to shipping to complete the process. Basic production requirements are provided by the bill of materials and master operations list. Resources available for production are communicated to the production control function through inventory status reports and factor availability reports. The production order serves as authorization for the production departments to make certain products. Materials requisitions are issued for each production order to authorize the inventory department to release materials to the production departments. Production status reports are periodically sent from the production departments to the production control function. Cost Accounting Controls. Job costing is a procedure in which costs are distributed to particular jobs or production orders. In process costing, costs are compiled in process or department accounts by periods (day, week, or month).The cost accounting department...

Words: 5358 - Pages: 22

Free Essay

Check List for Internal Control

...INVESTMENTS 6 A) SEGREGATION OF DUTIES 6 B) PROCEDURAL CONTROLS 6 IV. REVENUES AND RECEIVABLES 7 A) SEGREGATION OF DUTIES 7 B) PROCEDURAL CONTROLS 7 C) BILLING/REMITTANCE VERIFICATION 7 V. GRANT AND ENTITLEMENT MONITORING 9 A) GRANTS 9 B) Do ENTITLEMENT controls include the following? 10 VI. CAPITAL ASSETS 10 A) SEGREGATION OF DUTIES 11 B) PROCEDURAL CONTROLS 11 VII. PROCUREMENT AND PAYABLES 12 A) SEGREGATION OF DUTIES 12 B) PROCEDURAL CONTROLS 12 VIII. EMPLOYEE COMPENSATION 13 A) SEGREGATION OF DUTIES 13 B) PROCEDURAL CONTROLS 14 IX ELECTRONIC DATA PROCESSING 14 A) SEGREGATION OF DUTIES 15 B) PROCEDURAL CONTROLS 15 X. FINANCIAL REPORTING 16 A) SEGREGATION OF DUTIES 16 B) PROCEDURAL CONTROLS 17 INTERNAL CONTROL CHECKLIST Inventory of Specific Areas for study and evaluation of financial accounting internal controls I. BUDGETS AND PLANNING A) SEGREGATION OF DUTIES 1) Are responsibilities for budget preparation, adoption, execution, and reporting each assigned to different staff members?B) PROCEDURAL CONTROLS 1) Do personnel responsible for budget preparation: a) Have an awareness of budgets and budgetary procedures required by law? b) Prepare budgets for all significant activities regardless of whether mandated by law? c) Prepare a budget calendar to provide orderly submission and to obtain approval of the budget? d) Develop and prepare initial budget submissions by major...

Words: 8015 - Pages: 33

Premium Essay

Grading System

...PART 1 – Summary of Proposal System Title:Sales Inventory Management SystemProponents of the System:Name: Patrick Russel E. VergaraAddress: Area 1, Peacock St. Sitio Veterans, Brgy. Bagong Silangan, Quezon CityContact Details: 09107048473/4313335 and vergarapatrickrussel@yahoo.comDescription of the System: 1. Basic purpose of the system - Used in logistical systems such as warehousing, transportation, distributorships and supply management chains, an inventory management system is an automated system that keeps track of inventory on a regular basis. The system ensures that items marked for inventory and distribution are accounted for and that stock levels, quantities and costs are reasonable when requisitions for inventory are placed through the system by automatic or manual re-ordering. An inventory management system also keeps an audit trail of all transactions. 2. Benefits - The benefits of an inventory management system include accounts and inventory processing through automation, which reduces human error; various reports to analyze stock levels; quantities and transaction histories of items; and different models that can be used based on the type of organization or company adopting the inventory management system. 3. System’s fulfillment on the Institution’s mission - When a company purchases excessive inventory, it can lead to a higher stocking fee or cost that affects profitability. An inventory management system can prevent inventory excess and analyze a stock...

Words: 2123 - Pages: 9

Premium Essay

External Audit

...actions of 1. Data-gathering, analysis and reporting functions b. Which of the following conditions will not normally cause the auditor to question whether material misstatements exist? 1. Bookkeeping errors are listed on an IT-generated error listing. c. As general IT controls weaken, the auditor is most likely to 3. expand testing of automated application controls used to reduce control risk to cover greater portions of the fiscal year under audit. d. Which of the following is an example of an application control? 3.The sales system automatically computes the total sale amount and posts the total to the sales journal master file. 12-18 (Objectives 12-2, 12-4) The following questions concern auditing complex IT systems. Choose the best response. a. Which of the following client IT systems generally can be audited without examining or directly testing the computer programs of the system? 1. A system that performs relatively uncomplicated processes and produces detailed output. b. Which of the following is true of generalized audit software programs? 3. They each have their own characteristics that the auditor must carefully consider before using in a given audit situation. c. Assume that an auditor estimates that 10,000 checks were issued during the accounting period. If an automated application control that does a limit check for each check request is to be subjected to the auditors test data approach, the sample should include 2....

Words: 1286 - Pages: 6

Premium Essay

Bsa310 Wk2

...uniquely and collectively. Smith Systems Consulting Review “Smith Systems Consulting was founded in 1984. From an initial group of five, the have grown to become a major regional consulting company with 350 employees generating in excess of $45 million in revenues” (Smith Systems Consulting, 2004). They provide a full gamut of services including: web design and hosting, network design and implementation, database design and implementation, and programming experience. They also provide 24/7 support for all their customers. Smith Systems Consulting can provide these customer services through integrated business processes. Primary Business Processes Smith Systems Consulting has four primary business processes. They are information systems, finance and accounting, human resources, and marketing. The information systems process is responsible for the general upkeep and management of the systems used throughout the company. Finance and accounting is responsible for handling the monetary transactions and ledgers of the company. Human resources has the task of personnel management, including any necessary training for company policies. Marketing is responsible for maintaining and establishing new clientele for the company. Smith Systems Consulting combines these four business processes into one complete package that allows them to serve a broad group of organizations. Target Markets With such a diverse range of services available, there is almost no market...

Words: 1022 - Pages: 5

Free Essay

Riordan Manufacturing Team Assignment Wk 2

...Defense, beverage makers and bottlers, and appliance manufacturers. The plant in Georgia produces plastic beverage containers. Michigan’s plant produces custom plastic parts and China produces plastic fan parts. Riordans future goal is to be focused in reaching and maintaining profitability in assuring the financial and human capital sustains growth. Riordan Manufacturing have three separate entities with their own Finance and Accounting Systems. All input from these locations are kept at the corporate office in San Jose. Each system has all the same components other than EDI (Electronic Data Interchange) and EDSS (Executive Decision Support System) which is only available at the San Jose location. The components each system has is: General Ledger Accounts Payable Accounts Receivable Order Entry Procurement Sales and Purchasing History Payroll Financial Reporting Bar Code Reading As each location was acquired the F&A system’s compatibility was not addressed. This has made it difficult to maintain all the F&A’s data. San Jose uses a fully integrated Windows based ERP (Enterprise Resource Planning) manufacturing, distribution and financial management software. This software is designed for plastic processors and assembly manufacturers. Although the main office in San Jose receives all the data they have the issue...

Words: 551 - Pages: 3

Free Essay

Information Flow of Standard Bank Ltd.

...TERM PAPER ON Information System of Standard Bank Limited [pic] Submitted To: Dr. Md. Mosharraf Hossain Professor Department of Management University of Dhaka Submitted By: Sabbir Ahmed 3-11-21-065 Department of Management University of Dhaka Date of Submission 09.11.2014 Preface Theoretical knowledge, what we learn through our academic activities, is not sufficient to prepare ourselves for the life battle. Academic knowing is needed to be backed up by practical experience. In business studies, besides their usual theoretical course works, students are required to fulfill some practical assignments which are set by the course teachers to examine the depth of knowledge learned by the students. Most of the time, the students are required to study a practical working environment of any organization or industry to critically examine ‘what is actually going on’ in the real world.    This document is prepared as a result of an assignment set by the honorable course teacher of the course “Fundamental of MIS”. .My duty was to describe “Information System of My Organization.” and report what I found. This is how this assignment paper titled “Information System of Standard Bank Limited.” was emerged. I believe this paper is a reflection of accumulation of my effort, learning and dedication. Letter of Transmittal November 8, 2014 Dr. Mosharraf Hossain Professor MBA (Evening) Program Department...

Words: 1837 - Pages: 8

Premium Essay

Smakcey Foods - Audit

...integrated actions of (1) data-gathering, analysis, and reporting functions. b. Which of the following conditions will not normally cause the auditor to question whether material misstatements exist? (1) Bookkeeping errors are listed on an IT-generated error listing. c. As general IT controls weaken, the auditor is most likely to (3) expand testing of automated application controls used to reduce control risk to cover greater portions of the fiscal year under audit. d. Which of the following is an example of an application control? (3) The sales system automatically computes the total sale amount and posts the total to the sales journal master file. 12-18 (Objectives 12-2, 12-4) The following questions concern auditing complex IT systems. Choose the best response. a. Which of the following client IT systems generally can be audited without examining or directly testing the computer programs of the system? (1) A system that performs relatively uncomplicated processes and produces detailed output. b. Which of the following is true of generalized audit software programs? (3) They each have their own characteristics that the auditor must carefully consider before using in a given audit situation. c. Assume that an auditor estimates that 10,000 checks were issued during the accounting period. If an automated application control that does a limit check for each check request is to be subjected to the auditor’s test data approach, the sample should include (2) a number...

Words: 1273 - Pages: 6

Premium Essay

Syllabus

...Course(s) as annexed herewith (shown in Bold cum Italics): Intermediate (IPC) Course Paper 1: Accounting (Group I) Paper 2: Business Laws, Ethics and Communication (Group I) Paper 5: Advanced Accounting (Group II) Paper 6: Auditing and Assurance (Group II) Final Course Paper 3: Advanced Auditing and Professional Ethics (Group I) Paper 4: Corporate and Allied Laws (Group I) Director, Board of Studies Annexure SYLLABUS PAPER 1: ACCOUNTING (One paper – Three hours – 100 Marks) Level of Knowledge : Working Knowledge Objectives : (a) To lay a foundation for the preparation and presentation of financial statements, (b) To gain working knowledge of the principles and procedures of accounting and their application to different practical situations, (c) To gain the ability to solve simple problems and cases relating to sole proprietorship, partnership and companies and (d) To familiarize students with the fundamentals of computerized system of accounting. Contents : 1. A General Knowledge of the framing of the accounting standards, national and international accounting authorities, adoption of international financial reporting standards Accounting Standards Working knowledge of: AS AS...

Words: 3005 - Pages: 13

Free Essay

Riordan Manufacturing Business System Proposal

...Riordan Manufacturing Business System Proposal Paul Belanger, Aaron Ledger, Dacia Faulk, Ian Westerfield, Jennifer Gallaway University of Phoenix Introduction Being the industry leader in polymer materials and per our mission statement, Riordan Manufacturing must remain in step with industry trends. In order to effectively attain this objective, we must acclimatize, embrace, and take advantage of new and innovative technologies. In addition to identifying existing systems employed within the company that are in need of upgrades, the remainder of this paper will also address new systems as well as sub-systems needed and present a brief summary of why these systems would be advantageous to the future of Riordan Manufacturing. Finance and Accounting Overview Riordan manufacturing employs nine basic finance and accounting subsystems globally and three additional subsystems at the San Jose, California corporate headquarters. The atmosphere of interoperability between each of Riordan’s offices (California, Georgia, Michigan, and China) is at best hostile. At present, each operating entity has its own finance and accounting system resulting in a number of inefficiencies due to company-wide systems incompatibility, a lot of which stems from the Michigan and Georgia acquisition. To better establish potential interoperability between existing subsystems, it is first necessary to define the current subsystems of each Riordan office, existing software solutions, and how these...

Words: 2472 - Pages: 10