Free Essay

Algorithms and Logic for Computer Programming

In:

Submitted By waynerm100
Words 728
Pages 3
Programming Solution Part 3: Array Structure Proposal
Wayne Murray
Algorithms and Logic for Computer Programming (PRG 211)
November 14, 2011
Professor Sprouse

Array Structure Proposal
In my proposal from week two I would want to find the total number of units per patient for each procedure code billed by the doctor. A parallel array consisting of a one-dimensional and a two-dimensional array in this case would be a good way to solve this problem in a simplified code format. An array would also allow all the data the user wants to input to be stored in the program for multiple queries to be run without having to re-input the data. So this module of the program will allow the user to input all the different procedure codes billed the provider and return a units-per-patient statistic for the searched procedure code.
Assuming the data that the user will input is all for the same provider, the following variables will need to be declared: the procedure code, the number of patients, and the number of units billed. Two arrays will be declared as well, one for the procedure code and one for the number of patients and units. The procedure code variable and array must be setup with a string data type since there are some procedure codes that have alpha characters. The number of patients and the number of units variables, as well as their corresponding array will be setup as integer data types. Since both of those variables are of the same data type they can be combined into one two dimensional array. These two arrays will be parallel because they will be the same size and the subscript is related (Venit & Drake, p. 293, 2011). A real data type is used to calculate the units per patient. In a real life scenario, there are tens of thousands of medical procedure codes for providers to use when billing. For this example, however I will limit the size of the array to five procedure codes. One final variable K will be defined to search the array for the subscript values needed to retrieve the data from the arrays.
Once the information is input into the arrays, the user can search for a particular procedure code to retrieve the information. This would also fit well as a module in a larger program, with some modifications. The data that is input would be passed into this module for processing and the output would be the units per patient by procedure code. Since my larger program solution is to compare providers units per patient ratios, the larger program could call this module’s methods to get the data to be compared.
This small program, or module, is very helpful to the functioning of the overall program. It is also easy to manipulate because the data is stored in arrays, and any future programmer that may need to modify this can easily follow how the data is stored and accessed. The below pseudocode demonstrates how this program will function.

Begin
Declare string Procedure, ProcCode[5]
Declare integer Patients, Units, PatientInfo[5,2], K, L, Found
Declare real UpP
For (K = 0; K < 5; K++) Write “Enter the procedure code billed by the provider.” Input Procedure Set ProcCode[K] = Procedure Write “Enter the number of patients and the number of units billed.” For (L = 0; L < 2; L++) Input PatientInfo[K,L] End For End For Set Found = 0 Set K = 0 Write “Enter the procedure code to search for.” Input Procedure While (Found == 0) AND (K < 5) If ProcCode[Procedure] == Procedure Set Found = 1 End If Set K = K + 1 End While If Found == 1 Write “The procedure code you searched for is: “ + ProcCode[K] //Could also have used the variable Procedure in the above line Write “The number of patients billed this procedure is: “ + PatientInfo[K,0] Set Patients = PatientInfo[K,0] Write “The number of units billed by this provider is: “ + PatientInfo[K,1] Set Units = PatientInfor[K,1] Set UpP = Units / Patients Write “The number of units per patient for this procedure code is: “ + UpP Else Write “This procedure code was not billed by this provider.” End

References
Venit, S., & Drake, E. (2011). Prelude to Programming: Concepts and Design (5th ed.). Retrieved from The University of Phoenix eBook Collection database.

Similar Documents

Free Essay

Algorithms and Logic for Computer Programming

...Personal Learning Management University of Phoenix Algorithms and Logic for Computer Programming PRG 211 Professor Sam March 07, 2013 Personal Learning Management Being able to develop a management tool that would allow a user or student to review course material would be very beneficial. With a course such as programming that has so much information, it is important to be able to recall information in order to properly understand how programming works. I for example, do not have any prior knowledge of so I would have to continuously refresh the information that I have learn in the reading as well as in the class room environment. I will be discussing some topics that are important to the development of such a program. In order to properly develop an application, we must first address and analyze the problem that has caused this need. In this situation, we want to design an application that will allow students to be able to review reading assignments as well as task or anything that would be beneficial to retain. Some subjects are a harder to remember than others such as programming. Modular programming would be the best fit because we would want everyone to read the material in the same order. We would set up the program so everyone’s view is the same. If we allow people to “jump around” in the programming, some learning material is going to be skipped over and that would defeat the purpose of the development of this application. Submodules would be added...

Words: 480 - Pages: 2

Free Essay

Prg 211 Entire Class Computer Programming

...PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To purchase this visit following link: http://www.activitymode.com/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To purchase this visit following link: http://www.activitymode.com/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING To purchase this visit following link: http://www.activitymode.com/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@ACTIVITYMODE.COM PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion...

Words: 462 - Pages: 2

Free Essay

Prg 211 Entire Class Computer Programming

...ENTIRE CLASS COMPUTER PROGRAMMING To Purchase this tutorial visit following link http://wiseamerican.us/product/prg-211-entire-class-computer-programming/ Contact us at: SUPPORT@WISEAMERICAN.US PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 WEEK 3 PRG 211 Week 3 Selection Structure Visual Logic Flowchart.vls PRG 211 Week 3 Selection Structure paper /800 words Discussion Question 1 Discussion Question 2 WEEK 4 PRG 211 Week 4 Array Structure Proposal Visual Logic Flowchart PRG 211 Week 4 Individual Assignment – Array Structure Proposal Discussion Question 1 Discussion Question 2 WEEK 5 Calorie Management Visual logic Flowchart Final Team Assignment – Calorie Management Paper /1500 Word Final Team Assignment – Calorie Management Presentation Discussion Question 1 Discussion Question 2 PRG 211 ENTIRE CLASS COMPUTER PROGRAMMING PRG 211 Complete Class Algorithms and Logic for Computer Programming WEEK 1 PRG 211 Week 1 Programming Fundamentals -Reusability of Code Discussion Question 1 Discussion Question 2 WEEK 2 PRG 211 Week 2 Program Solution Proposal Discussion Question 1 Discussion Question 2 WEEK 3 PRG 211 Week 3 Selection Structure Visual Logic Flowchart.vls ...

Words: 287 - Pages: 2

Free Essay

A Paper

... | | |Information Systems & Technology | | |PRG/211 Version 4 | | |Algorithms and Logic for Computer Programming | Copyright © 2012, 2011, 2010 by University of Phoenix. All rights reserved. Course Description This course provides students with a basic understanding of programming development practices. Concepts covered include the application of algorithms and logic to the design and development of procedural and object oriented computer programs to address the problem solving requirements associated with business information systems. This course will cover procedural programming concepts including data types, controls structures, functional decomposition, arrays, and files, classes and objects. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • University policies: You must be logged into the student website to view this document. • Instructor policies: This document is posted in the Course Materials forum. University...

Words: 1735 - Pages: 7

Premium Essay

Pta Nhi

...Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Ref Page Chapter 11: Planning the Computer Program Slide 1/44 Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Learning Objectives In this chapter you will learn about: § Programs must be planned before they are written § Algorithm § Flowchart § Pseudocode § Plan the logic of a computer program § Commonly used tools for program planning and their use Ref Page 183 Chapter 11: Planning the Computer Program Slide 2/44 Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Purpose of Program Planning § To write a correct program, a programmer must write each and every instruction in the correct sequence § Logic (instruction sequence) of a program can be very complex § Hence, programs must be planned before they are written to ensure program instructions are: § Appropriate for the problem § In the correct sequence Ref Page 183 Chapter 11: Planning the Computer Program Slide 3/44 Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Computer Fundamentals: Pradeep K. Sinha & Priti Sinha Algorithm § Refers to the logic of a program and a step-by-step description of how to arrive at the solution of a given problem § In order to qualify as an algorithm, a sequence of instructions must have following...

Words: 3284 - Pages: 14

Premium Essay

An Evolution of Computer Science Research

...Abbreviated version of this report is published as "Trends in Computer Science Research" Apirak Hoonlor, Boleslaw K. Szymanski and M. Zaki, Communications of the ACM, 56(10), Oct. 2013, pp.74-83 An Evolution of Computer Science Research∗ Apirak Hoonlor, Boleslaw K. Szymanski, Mohammed J. Zaki, and James Thompson Abstract Over the past two decades, Computer Science (CS) has continued to grow as a research field. There are several studies that examine trends and emerging topics in CS research or the impact of papers on the field. In contrast, in this article, we take a closer look at the entire CS research in the past two decades by analyzing the data on publications in the ACM Digital Library and IEEE Xplore, and the grants awarded by the National Science Foundation (NSF). We identify trends, bursty topics, and interesting inter-relationships between NSF awards and CS publications, finding, for example, that if an uncommonly high frequency of a specific topic is observed in publications, the funding for this topic is usually increased. We also analyze CS researchers and communities, finding that only a small fraction of authors attribute their work to the same research area for a long period of time, reflecting for instance the emphasis on novelty (use of new keywords) and typical academic research teams (with core faculty and more rapid turnover of students and postdocs). Finally, our work highlights the dynamic research landscape in CS, with its focus constantly ...

Words: 15250 - Pages: 61

Free Essay

Systems

...Component 01 - Computing Principles | AS-Level (H046) | A-Level (H446) | 1 The characteristics of contemporary processors, input, output and storage devices | Structure and function of the processor | The Arithmetic and Logic Unit (ALU), Control Unit and registers: Program Counter (PC), Accumulator (ACC), Memory Address Register (MAR), Memory Data Register (MDR), Current Instruction Register (CIR).Buses: data, address and control: How this relates to assembly language programs.The fetch-decode-execute cycle, including its effect on registers.The factors affecting the performance of the CPU, clock speed, number of cores, cache.Von Neumann, Harvard and contemporary processor architecture. | The use of pipelining in a processor to improve efficiency. | Types of processor | The differences between, and uses of, CISC and RISC processors.Multicore and parallel systems. | GPUs and their uses (including those not related to graphics). | Input, output and storage | How different input output and storage devices can be applied as a solution of different problems.The uses of magnetic, flash and optical storage devices.RAM and ROM.Virtual storage. | | 2 Software and software development | Operating systems | The need for, function and purpose of operating systems.Memory management (paging, segmentation and virtual memory).Interrupts, the role of interrupts and Interrupt Service Routines (ISR), role within the fetch decode execute cycle.Scheduling: round robin, first come...

Words: 1302 - Pages: 6

Premium Essay

Syllabus

...Scheme and Syllabus of B.E. (Computer Science and Engineering) 3rd TO 8th Semester 2013-2014 University Institute of Engineering and Technology, Panjab University, Chandigarh Scheme of Examination of B.E. in Computer Science & Engineering Second Year - Third Semester Subject Title Scheme of Teaching Univesity Sr.No Paper Code External L T P Hour Credits Marks s 1. CSE311 Data Structures 3 1 0 4 4 50 2. 3. 4. 5. 6. 7. 8. 9. Total Second Year -Fourth Semester Sr.No Paper Code 1. 2. 3. 4. 5. 6. CSE411 CSE461 CSE412 CSE462 CSE414 CSE464 Subject Title Scheme of Teaching L 3 0 3 0 3 0 T 1 0 1 0 1 0 P 0 3 0 3 0 3 Hours 4 3 4 3 4 3 Credit 4 2 4 2 4 2 University External Marks 50 50 50 CSE361 CSE313 CSE363 AS301 EC316 EC366 EC317 EC367 Data Structures (Practical) Peripheral Devices & Interfaces Hardware Lab (Practical) Engineering Mathematics – III Digital Electronics Digital Electronics (Practical) Microprocessors Microprocessors (Practical) 0 3 0 3 3 0 3 0 15 0 1 0 1 1 0 1 0 5 3 0 2 0 0 2 0 2 09 3 4 2 4 4 2 4 2 29 2 4 1 4 4 1 4 1 25 50 50 50 50 250 Internal Total Sessional Marks 50 50 50 50 50 50 50 50 50 450 100 50 100 50 100 100 50 100 50 700 7. 8. Total ASC405 CSE 415 Analysis & Design of Algorithms Analysis & Design of Algorithms (Practical) Database Management System Database Management System (Practical) Object Oriented Programming Object Oriented Programming (Practical) Cyber Law & IPR Computer Architecture & Organization Internal Total Sessional Marks 50...

Words: 14784 - Pages: 60

Free Essay

Software

...JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD M. TECH (REAL TIME SYSTEMS) COURSE STRUCTURE AND SYLLABUS I YEAR I SEMESTER Code Group Subject L P Credits Advanced Computer Architecture 3 0 3 Advanced Micro Controllers 3 0 3 Fundamentals of Real Time Systems 3 0 3 Design & Development of Real Time Systems 3 0 3 Elective -I Digital Control Systems Distributed Operating Systems Cloud Computing 3 0 3 Elective -II Digital Systems Design Fault Tolerant Systems Advanced Computer Networks 3 0 3 Lab Micro Processors and Programming Languages Lab 0 3 2 Seminar - - 2 Total Credits (6 Theory + 1 Lab.) 22 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MASTER OF TECHNOLOGY (REAL TIME SYSTEMS) I SEMESTER ADVANCED COMPUTER ARCHITECTURE UNIT I Concept of instruction format and instruction set of a computer, types of operands and operations; addressing modes; processor organization, register organization and stack organization; instruction cycle; basic details of Pentium processor and power PC processor, RISC and CISC instruction set. UNIT II Memory devices; Semiconductor and ferrite core memory, main memory, cache memory, associative memory organization; concept of virtual memory; memory organization and mapping; partitioning, demand paging, segmentation; magnetic disk organization, introduction to magnetic tape and CDROM. UNIT III IO Devices, Programmed IO, interrupt driver IO, DMA IO modules, IO addressing; IO channel...

Words: 3183 - Pages: 13

Free Essay

C Language

...UNIT 1 NOTES Digital Computer A digital computer is an electronic computing machine that uses the binary digits (bits) 0 and 1 to represent all forms of information internally in digital form. Every computer has a set of instructions that define the basic functions it can perform. Sequences of these instructions. Component of Digital Computer: (1)CPU: The Central Processing Unit (CPU) or the processor is the portion of a computer system that carries out the instructions of a Computer, and is the primary element carrying out the computer's functions. This term has been in use in the computer industry at least since the early 1960s . The form, design and implementation of CPUs have changed dramatically since the earliest examples, but their fundamental operation remains much the same. (2)ALU: an arithmetic logic unit (ALU) is a Digital computer that performs arthimatic and logical operations. The ALU is a fundamental building block of the central processing unit(CPU) of a computer, and even the simplest microprocessor contain one for purposes such as maintaining timers. The processors found inside modern CPUs and graphics processing units(CPU) accommodate very powerful and very complex ALUs; a single component may contain a number of ALUs. Mathematician proposed the ALU concept in 1945, when he wrote a report on the foundations for a new computer called the EDVAC. (3)Memory: memory is an organism's ability to store, retain, and recall information. Traditional studies of memory...

Words: 2515 - Pages: 11

Free Essay

Innovation and Erp Systems

...Scheme and Syllabus of B.E. (Computer Science and Engineering) 3 rd th TO 8 Semester 2014-2015 University Institute of Engineering and Technology, Panjab University, Chandigarh DEPARTMENT: COMPUTER SCIENCE AND ENGINEERING VISION: To be recognized as an international leader in Computer Science and Engineering education and research to benefit society globally. MISSION: · · · · To move forward as frontiers of human knowledge to enrich the citizen, the nation, and the world. To excel in research and innovation that discovers new knowledge and enables new technologies and systems. To develop technocrats, entrepreneurs, and business leaders of future who will strive to improve the quality of human life. To create world class computing infrastructure for the enhancement of technical knowledge in field of Computer Science and Engineering. PROGRAMME: B.E. CSE (UG PROGRAMME) PROGRAMME EDUCATIONAL OBJECTIVES: I. Graduates will work as software professional in industry of repute. II. Graduates will pursue higher studies and research in engineering and management disciplines. III. Graduates will work as entrepreneurs by establishing startups to take up projects for societal and environmental cause. PROGRAMME OUTCOMES: A. Ability to effectively apply knowledge of computing, applied sciences and mathematics to computer science & engineering problems. B. Identify, formulate, research literature, and analyze complex computer science & engineering problems reaching substantiated conclusions...

Words: 23989 - Pages: 96

Premium Essay

Pt1420 Unit 1 Problem Solving

...1. Analyze: Define the problem. Be sure you understand what the program should do-that is, what the output should be. Have a clear idea of what data are given and the relationship between the input and the desired output. 2. Design: Plan the solution to the problem. Develop the algorithm (the logical sequence of precise steps that solve the problem). All detail, including obvious steps, should seem in the algorithm. Translate the algorithm into a logic plan using any of the popular methods that is flowcharts, pseudo code, top down charts. These design tools help the programmer break a problem into an order of small tasks the computer can perform to rectify the problem. Planning also includes using representative data to test the logic of...

Words: 451 - Pages: 2

Premium Essay

Demo

...Automation is the use of control systems and information technologies to reduce the need for human work in the production of goods and services. In the scope of industrialization, automation is a step beyond mechanization. Whereas mechanization provided human operators with machinery to assist them with the muscular requirements of work, automation greatly decreases the need for human sensory and mental requirements as well. Automation plays an increasingly important role in the world economy and in daily experience. Automation has had a notable impact in a wide range of industries beyond manufacturing (where it began). Once-ubiquitous telephone operators have been replaced largely by automated telephone switchboards and answering machines. Medical processes such as primary screening in electrocardiography or radiography and laboratory analysis of human genes, sera, cells, and tissues are carried out at much greater speed and accuracy by automated systems. Automated teller machines have reduced the need for bank visits to obtain cash and carry out transactions. In general, automation has been responsible for the shift in the world economy from industrial jobs to service jobs in the 20th and 21st centuries.[1] Movable type is the system of printing and typography that uses movable components to reproduce the elements of a document (usually individual letters or punctuation). The world's first known movable-type system for printing was created in China around 1040 A.D. by Bi...

Words: 7787 - Pages: 32

Free Essay

Comp Txt

...1 2 Acknowledgements p.1 tr ©iStockphoto.com/Dennys Bisogno, etc t = top, b = bottom, l = left, r = right, c = centre Computer hardware and software brand names mentioned in this book are protected by their respective trademarks and are acknowledged. Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu Every effort has been made to trace all copyright holders, but if any have been inadvertently overlooked the publishers will be pleased to make the necessary arrangements at the first opportunity. Although every effort has been made to ensure that website addresses are correct at time of going to press, Hodder Education cannot be held responsible for the content of any website mentioned in this book. It is sometimes possible to find a relocated web page by typing in the address of the home page for a website in the URL window of your browser. Photo credits p.1 © peno – Fotolia; p.15 © Dmitrydesigner/Fotolia; p.16 ©iStockphoto.com/Karl Yamashita; p.57 © Romanchuck – Fotolia; p.58 t © C Squared Studios/Photodisc/Getty Images, m ©Dmitriy Melnikov - Fotolia.com, b © Popova Olga/Fotolia; p.59 © picsfive – Fotolia; p.65 © Manfred Schmidt – Fotolia.com; p.67 © dja65 – Fotolia; p.68 © Konstantin Shevtsov – Fotolia; p.69 t © Miguel Navarro/Stone/Getty Images, b © Piero Cruciatti/Alamy; p.73 © Jamdesign/Fotolia; p.78 and 79 © adisa – Fotolia; p.81 © Mykola Mazuryk – Fotolia; p.82 t © Mauro Rodrigues/Fotolia...

Words: 49691 - Pages: 199

Premium Essay

Pert

...Computer science From Wikipedia, the free encyclopedia Jump to: navigation, search Computer science or computing science (abbreviated CS) is the study of the theoretical foundations of information and computation and of practical techniques for their implementation and application in computer systems.[1][2] Computer scientists invent algorithmic processes that create, describe, and transform information and formulate suitable abstractions to model complex systems. Computer science has many sub-fields; some, such as computational complexity theory, study the fundamental properties of computational problems, while others, such as computer graphics, emphasize the computation of specific results. Still others focus on the challenges in implementing computations. For example, programming language theory studies approaches to describe computations, while computer programming applies specific programming languages to solve specific computational problems, and human-computer interaction focuses on the challenges in making computers and computations useful, usable, and universally accessible to humans. The general public sometimes confuses computer science with careers that deal with computers (such as information technology), or think that it relates to their own experience of computers, which typically involves activities such as gaming, web-browsing, and word-processing. However, the focus of computer science is more on understanding the properties of the programs used to implement...

Words: 5655 - Pages: 23