Premium Essay

Programming Mcs

In: Computers and Technology

Submitted By sherwin21990
Words 1137
Pages 5
Programming loops, functions, arrays, strings, files, and basic classes with C++.

1. Design a monthly rainfall summary from a file of daily rainfall readings. Each of the four lines in the file begins with a number specifying the week of the month, followed by a series of seven numbers representing the rainfall value for each day that week. Your program should output the rainfall data, including the average rainfall value for each week.

2. Design a billing summary report from a file of billing and payment information. Each record, line in the file, contains three items. The first item is a letter code indicating if the record is an order (O) or if the record is a payment (P). Next will be a string containing the customer number, and finally, the record will contain the amount of the order or payment. Your report is a summary of these data, indicating how many orders were placed and the total of the order amounts. You will also indicate how many payments were made and the total of those payments. Finally, you should compute the percentage of sales and orders. There will be no more than five records in the file.

3. Develop a program to summarize borrower fine data for your school library. The input file consists of three fields: the student number of the student, the type of item borrowed (‘book’ for reading material, ‘movie’ for DVD, and ‘music’ for CD), and the amount charged to the student for the fine. The first time you see an item type in a record, you should record that in a variable and begin to track the total for that type of item. Every file will not contain all item types, and your program should only report summary data for the actual values in the file. You should report the following summary: the item code given in the file, the number of times that item code occurs, and the total fine amount collected for that item code.

4. Create a sales summary

Similar Documents

Free Essay

1980 Dance

...often arose. Informal competitions started when a few truly exceptional dancers were noticed on the dance floor; the rest of the people would back off and allow the leaders to duke it out. As these informal competitions became increasingly common and popular, announced competitions became part of a night out at hip hop clubs. Whether they arose organically or they were advertised in advance, this competitive nature helped hip hop retain the "battle" culture that has existed since the beginning. This type of competition can also be seen in other dance forms, perhaps most notably in tap dancing of the early 20th century. *The Hammer Dance (Mc Hammer) MC Hammer brought rap music to the mainstream audience with his album Please Hammer Don't Hurt 'Em, the biggest-selling rap album of all time. Born into poverty in Oakland, California, in 1962, MC Hammer began his performing career as a young boy dancing outside the Oakland Coliseum during Oakland A's games. He launched himself into full-fledged stardom with the 1990 release Please Hammer Don't Hurt 'Em, the first...

Words: 1318 - Pages: 6

Free Essay

Nwa Contact Zone

...colonialism, slavery, or their aftermath as they are lived out in many parts of the world today”(Pratt 34) by Mary Louise Pratt in her writing titled “Arts of the contact zone”. This song has been helpful and caused huge issues within the communities. The song shows the struggle that people of color go through in society and how different races portray each other based on stereotypes. NWA, which stands for Niggas With Attitude, wrote this song as a parody. I believe that they presented themselves with such vulgar because they felt like everyone saw them in a negative way. They became what the public thought they were. In doing so they caused a lot of commotion with the FBI and police. The song is from the view point of the 3 attorneys; MC Ren, Ice Cube, Eazy-E and the judge Dr. Dre. Each attorney shares their story about the struggle of being a person of color living in Compton. The first verse is by Ice Cube who mentions “and not the other color so police think/ they have the authority to kill a minority”(NWA 5). What Ice Cube is saying is that cops think because they are white, they are superior to people of color. The cops assume they have the right to kill them and abusing the authority they have. Instead of protecting the civilians,they are harming them. Later on Cube says “searching my car,looking for the product/thinking every nigga is selling narcotics/ you'd rather see, me in the pen/ than me and Lorenzo rolling in a Benz-o”(NWA 6) The police will stop these young...

Words: 454 - Pages: 2

Free Essay

English I Paper

...Mic Check, One-Two Suzanne Fields, the author of “Bad Raps: Music Rebels Revel in Their Thug Life” wrote her article on May 21, 2001 for insight on the news. In her article, Fields talks about how rap music has negative effects on our younger generation. She personally believes that the lyrics in these songs have a harsh effect on our youth and that it is the worst genre of music out right now. While reading, I found her opinion to be extremely biased and unfair. I also found myself disagreeing with almost every bad thing she stated about the rap genre since many other genres can have the same types of effects on younger people when they listen to them. Fields starts out her article by saying that rap music “expresses the worst kind of images” and is harmful to our younger generations. She thinks that the lyrics “employ vulgar street idioms” and are too harsh. She also states that she believes their lyrics come from “a world of broken families, absent fathers, illegitimate children and matriarchal dominance, often subsidized by welfare.” (Fields) Fields continues her argument against rap music by saying that the reason for the harsh lyrics is because language and experience of poetry and romance are absent from the lives of the rappers and their audiences. Fields personally does not know the true lives of the rappers, so she shouldn't be judging them just off of their lyrical content. Fields continues her article against rap music by using a couple facts about other singers...

Words: 769 - Pages: 4

Premium Essay

Data Communication and Networking

...|Microprocessors and its |3 |0 |0 |3 | | | |Applications | | | | | |3 |MC9233 |Software Engineering |3 |0 |0 |3 | |4 |MC9234 |Computer Graphics |3 |0 |0 |3 | |5 |MC9235 |Web Programming |3 |0 |0 |3 | |PRACTICAL | |6 |MC9237 |Graphics Lab |0 |0 |3 |2 | |7 |MC9238 |Microprocessor Lab |0 |0 |3 |2 | |8 |MC9239 |Web Programming Lab |0 |0 |3 |2 | | TOTAL |15 |0 |9 |21 | MC9231 COMPUTER NETWORKS L T P C 3 0 0 3 UNIT I INTRODUCTION 9 Communication model – Data communications...

Words: 1592 - Pages: 7

Free Essay

Random Numbers

...referred to as a computer program. There are numerous languages used to create/design computer for instance Java Script, Java, C++, SQL and Sage (Laine, 2013). Computer programming is defined as a process of developing a working set of computer instructions meant to aid the computer in the performance of a given task. Computer programming starts with the formulation of a valid computer problem. This process is then followed by the development of an executable computer program, for instance Firefox Web Brower (Laine 2013). It is worth noting that there are other programs in the same realm. Computer programming is a diverse field that is of utmost importance in the modern world, especially with the continuous expansion of the internet. Perhaps the relevance of this can be underlined by the fact that computer programming has carved out as a course on itself. Computer programming is offered under several courses studied in colleges and universities (Laine, 2013). Computer programming is not only for computer students but for all who use computers on a day to day basis. This is by extension everyone since the use of computers is almost becoming a basic requirement. Computer programming requires a trained individual for the interpretation of data into information. Through the utilization of computer programming experts are able to create programs to real life problems like insurance policing and risk assessment. After which experts are able to address bugs in the designed programs...

Words: 9330 - Pages: 38

Premium Essay

Operation Management

...Chapter one 1.1 Introduction For many manufacturers the task of meeting the ever rising demand and customer expectations and lowering production cost and maximizing profit in an environment of more products, more complexity, more choice and competition is placing great stress on the effectiveness of their planning of activities in the product kind. Organizations have already adopted solutions with varying degrees of planning and scheduling capabilities. Yet, operations executive acknowledge that these same systems are becoming out dated, lacking the speed, flexibility and responsiveness to manage their increasing complex production environment. Optimization techniques are applied to find out whether resources available are effectively utilized in order to achieve optimum profit from the activities of the firm. There should be consistency in the use of various resources and the mix should be such that it brings down the cost for ensuring profit. Therefore, it is the duty of the management to exercise control over the resources and to see that the resources are effectively utilized. Similarly, organizations in general are involved in manufacturing a variety of products to cater the needs of the society and to maximize the profit. While doing so, they need to be familiar with different combinations of product mix which will maximize the profit. Or alternatively minimize the cost. The techniques such as ratio analysis, correlation and regression analyses, variance analysis...

Words: 2742 - Pages: 11

Free Essay

Abcd

...Shanti Business School PGDM Batch 2015-17 Semester II Course Outline 1 Shanti Business School, Ahmedabad PGDM 2015-17: Program Structure Semester-1 Semester-2 Semester-3 Semester-4 Course credit Course credit Course credit Language Skills @ Written Analysis & Communication @ Soft skills II @ Employability Skills @ IT & MIS 2 Soft skills I @ Computing skills 2 Social Media Marketing @ 2 Legal Aspects of Business 2 Business Strategy 3 Management Control Systems 3 Micro Economics 3 Macro Economics 3 Business Environment 3 Business Ethics & Corporate Governance 2 Quantitative Methods-1 3 Business Research Methods 3 Quantitative Methods-2 3 Core Elective-1 3 Core Elective1 3 Core Elective-2 3 Core Elective2 3 Elective-1 3 Elective-1 3 Elective-2 3 Elective-2 3 Grand Project-1 3 Grand Project-2 3 Principles of Management Basic Building Blocks Autumn Break Executive Skills Organisational Behavior Human Resources Management 3 Marketing Management 1 3 Marketing Management -2 3 Understanding Financial Statements 3 Financial Mgt 3 Operation Management Management Domain 3 3 Basics of Business Planning 2 Electives Credits Autumn Break credit SUMMER INTERNSHIP Course ...

Words: 7010 - Pages: 29

Free Essay

Syllabus

...SCHEME OF EXAMINATION FOR MASTER OF COMPUTER APPLICATIONS (MCA) (SIX-SEMESTER Programme) |Semester – I | |Paper |Title of the Paper |Duration |Maximum Marks |Total | |No. | |Of Exam | | | | | | |Theory |Sessional* | | |MCA-101 |Computer Fundamentals and Problem Solving Using C |3 Hours |80 |20 |100 | |MCA-102 |Computer Organisation |3 Hours |80 |20 |100 | |MCA-103 |Discrete Mathematical Structures |3 Hours |80 |20 |100 | |MCA-104 |Software Engineering |3 Hours |80 |20 |100 | |MCA-105 |Computer Oriented Numerical and Statistical Methods |3 Hours |80 |20 |100 | |MCA-106 |Software Laboratory - I |3 Hours | | |100 | | |C (Based on MCA-101) |...

Words: 13848 - Pages: 56

Free Essay

Term Paper

...How to Write a Term Paper or Thesis Michael A. Covington Artificial Intelligence Center The University of Georgia Athens, Georgia 30602 http://www.ai.uga.edu/mc Revised May 11, 2011 Abstract This is a basic style guide for writing scientific papers under my direction. It was written for internal use in the Artificial Intelligence Center. However, other science departments may find it helpful. You are encouraged to share it with colleagues. 1 What is a term paper or thesis? In the Middle Ages, in order to be admitted to a trade guild, a craftsman had to demonstrate his ability by producing a piece of work, called his masterpiece, for examination by the officers of the guild. He was then granted the title of Master of his trade. When universities were founded, they immediately emulated this practice and began to grant the degrees of Master and Doctor to people who had proved their ability to do scholarly work. A thesis or dissertation today serves the same purpose as a medieval craftsman’s masterpiece. It is proof of ability to do a certain kind of work. Specifically: • To get a doctor’s degree, you must become familiar with current scientific knowledge of your subject, add to this knowledge by making an original discovery, and then report the results in a dissertation. 1 • To get a master’s degree, it is sufficient to make a new synthesis or application of knowledge already available, and report the results in a thesis. • To pass certain courses, you must write a term paper...

Words: 5028 - Pages: 21

Free Essay

Term Papaer

...How to Write a Term Paper or Thesis Michael A. Covington Artificial Intelligence Center The University of Georgia Athens, Georgia 30602 http://www.ai.uga.edu/mc Revised May 11, 2011 Abstract This is a basic style guide for writing scientific papers under my direction. It was written for internal use in the Artificial Intelligence Center. However, other science departments may find it helpful. You are encouraged to share it with colleagues. 1 What is a term paper or thesis? In the Middle Ages, in order to be admitted to a trade guild, a craftsman had to demonstrate his ability by producing a piece of work, called his masterpiece, for examination by the officers of the guild. He was then granted the title of Master of his trade. When universities were founded, they immediately emulated this practice and began to grant the degrees of Master and Doctor to people who had proved their ability to do scholarly work. A thesis or dissertation today serves the same purpose as a medieval craftsman’s masterpiece. It is proof of ability to do a certain kind of work. Specifically: • To get a doctor’s degree, you must become familiar with current scientific knowledge of your subject, add to this knowledge by making an original discovery, and then report the results in a dissertation. 1 • To get a master’s degree, it is sufficient to make a new synthesis or application of knowledge already available, and report the results in a thesis. • To pass certain courses, you must write a term paper...

Words: 5028 - Pages: 21

Premium Essay

Design of Modern Hueristics

...Natural Computing Series Series Editors: G. Rozenberg Th. Bäck A.E. Eiben J.N. Kok H.P. Spaink Leiden Center for Natural Computing Advisory Board: S. Amari G. Brassard K.A. De Jong C.C.A.M. Gielen T. Head L. Kari L. Landweber T. Martinetz Z. Michalewicz M.C. Mozer E. Oja G. P˘ un J. Reif H. Rubin A. Salomaa M. Schoenauer H.-P. Schwefel C. Torras a D. Whitley E. Winfree J.M. Zurada For further volumes: www.springer.com/series/4190 Franz Rothlauf Design of Modern Heuristics Principles and Application Prof. Dr. Franz Rothlauf Chair of Information Systems and Business Administration Johannes Gutenberg Universität Mainz Gutenberg School of Management and Economics Jakob-Welder-Weg 9 55099 Mainz Germany rothlauf@uni-mainz.de Series Editors G. Rozenberg (Managing Editor) rozenber@liacs.nl Th. Bäck, J.N. Kok, H.P. Spaink Leiden Center for Natural Computing Leiden University Niels Bohrweg 1 2333 CA Leiden, The Netherlands A.E. Eiben Vrije Universiteit Amsterdam The Netherlands ISSN 1619-7127 Natural Computing Series ISBN 978-3-540-72961-7 e-ISBN 978-3-540-72962-4 DOI 10.1007/978-3-540-72962-4 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2011934137 ACM Computing Classification (1998): I.2.8, G.1.6, H.4.2 © Springer-Verlag Berlin Heidelberg 2011 This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations...

Words: 114592 - Pages: 459

Free Essay

N Mdnkqwr Jedqwjeqwkoeqw Asmdnkqwe

...Course: Object-Oriented Programming & Design MCS 2nd Mid Term Exam Total Marks: 70 Total Time: 90 Minutes May 22, 2015 1. Write a program that contains a class Faculty and a class Course. The Faculty class should have data about the first name, last name, and the name of a course allocated to the faculty. The faculty class contains the set and get member functions for first name and last name, and a print function that prints the name and course of the faculty. The Course class contains a course code of type integer and the name of the course, set and get member functions for these data members, and a print function that prints the course code and course name. Explain the steps properly by writing comments. (5) a. Your program should have separate interface and implementation files. (10) b. The constructor of the Faculty class takes constant parameters passed to it by reference. Explain what difference does it make. (5) c. Which member functions should be declared as constant and why. (3) d. The Constructor of the Course class should take the default arguments of course code = 101 and Course Name = Introduction to Computing. (2) e. Validate that the course name should not exceed more than 30 characters. (5) f. In your main function declare an object of the Course class to initialise the data members to a course name and its course code. (2) g. Your main function should print the first name, last name, course code and course name assigned to the faculty...

Words: 385 - Pages: 2

Premium Essay

Bbm Is Here

...Praise for Succeeding with Agile “Understanding the mechanics of an agile process is just not enough. Mike Cohn has compiled a superb and comprehensive collection of advice that will help individuals and teams with the intricate task of adopting and adapting agile processes to fit their specific challenges. This book will become the definitive handbook for agile teams.” —Colin Bird, Global Head of Agile, EMC Consulting “Mike Cohn’s experience working with so many different organizations in the adoption of agile methods shines through with practical approaches and valuable insights. If you really want agile methods to stick, this is the book to read.” —Jeff Honious,Vice President, Innovation, Reed Elsevier “Mike Cohn has done it again. Succeeding with Agile is based on his experience, and all of our experience, with agile to date. He covers from the earliest days of the project up to maturity and offers advice for the individual, the team, and the enterprise. No matter where you are in the agile cycle, this book has something for you!” —Ron Jeffries, www.XProgramming.com “If you want to start or take the next step in agile software development, this book is for you. It discusses issues, great solutions, and helpful guidelines when scaling up in agile projects. We used the guidelines from this book extensively when we introduced agile in a large, FDA-regulated department.” —Christ Vriens, Department Head of MiPlaza, part of Philips Research “If making the move to agile has always...

Words: 194469 - Pages: 778

Free Essay

Life, Death, and the Critical Transistion

...Life, Death, and the Critical Transition: Finding Liveness Bugs in Systems Code Charles Killian, James W. Anderson, Ranjit Jhala, and Amin Vahdat University of California San Diego {ckillian,jwanderson,jhala,vahdat}@cs.ucsd.edu Abstract finding bugs with model checking currently requires the programmer to have intimate knowledge of the low-level Modern software model checkers find safety violations: actions or conditions that could result in system failure. breaches where the system has entered some bad state. For We contend that for complex systems the desirable bemany environments however, particularly complex con- haviors of the system may be specified more easily than current and distributed systems, we argue that liveness identifying everything that could go wrong. Of course, properties are both more natural to specify and more im- specifying both desirable conditions and safety assertions portant to check. Liveness conditions specify desirable is valuable; however, current model checkers do not have system conditions in the limit, with the expectation that any mechanism for verifying whether desirable system they will be temporarily violated, perhaps as a result of properties can be achieved. Examples of such properties failure or during system initialization. include: i) a reliable transport eventually delivers all mesExisting software model checkers cannot verify live- sages even in the face of network losses and delays, ii) all ness because doing so...

Words: 19579 - Pages: 79

Free Essay

Management

...1802 marian@ dcs.shef.ac.uk Abstract This paper presents an early empirical study on Extreme Programming practices employing a qualitative action research method. The study was conducted on university students doing real commercial development projects to gain an insight into the problems faced by the new developers in adopting these agile practices. The aim of the study was to investigate the effects of the XP practices on the quality of software developed. What emerged from the analysis was the positive relationship between number of XP practices employed and the quality of software delivered as perceived by the clients. Keywords Agile methodology, action research, contentanalysis, empirical study, Extreme Programming, positivist approach, qualitative, XP teams and traditional methods teams but for the purpose of this study, focus was only made on the XP project teams. METHODOLOGY Respondents The Software Hut class consists of the 2nd year undergraduate students from Computer Science and Engineering degrees, and 3rd year students from Math and Computer degree. The computer science students were required to complete all the subjects in Level 1 and the first semester of Level 2 subject before enrolling in the Software Hut class. The subjects which are related to the Software Hut projects are Introduction to Programming, Requirement Engineering, Object Oriented Programming and System Design and Testing modules in the...

Words: 3439 - Pages: 14