Free Essay

Code to Do

In:

Submitted By qwerty09812
Words 513
Pages 3
Conversion of decimal to hexadecimal.

You are to develop a program in C++ which converts a decimal (base 10 number) to hexadecimal (base 16). The following table defines the conversion of a decimal digit to the corresponding hexadecimal value.

|Decimal |Hexadecimal |
|0 |0 |
|1 |1 |
|2 |2 |
|3 |3 |
|4 |4 |
|5 |5 |
|6 |6 |
|7 |7 |
|8 |8 |
|9 |9 |
|10 |A |
|11 |B |
|12 |C |
|13 |D |
|14 |E |
|15 |F |

The simple algorithm to perform the conversion is to: 1. Divide the decimal by 16, record the remainder. 2. Repeat step one until the decimal number is zero. 3. Output the remainders in reverse order to give you the hexadecimal equivalent.

For example if we wish to convert decimal 520 to its hexadecimal equivalent: 1. 520 / 16 = 32 with a remainder of 8 2. 32 / 16 = 2 with a remainder of 0 3. 2 / 16 = 0 with a remainder of 2. 4. Hexadecimal value is 208

Task 1 Produce the C++ program

The documentation should contain the following elements:

1. Listing of the completed program. [P1.4, P2.1] 2. Produce appropriate user documentation which describes the operation of the program and identifies validate input data. [P3.1, P3.2] 3. Document the testing you performed to ensure the correct operation of your code. [P4,1, P4.4]

BTEC HIGHER NATIONAL IN COMPUTING

Unit 3: Software Development - H1

Assessment guidance

Outcomes | |To achieve a pass grade the evidence must show that the learner is able to: | | |To achieve a merit grade the evidence must show that the learner is able to: | | |To achieve a distinction grade the evidence must show that the learner is able to: | | |1 – Design and develop code using structured programming methods |P1.1 |Identify and select appropriate pre-defined data types | |M1.2 |Complex problems with more than one variable have been explored | |D1.4 |Realistic improvements have been proposed against defined characteristics for success | | | |P1.2 |Use simple input/output and appropriate operators with the above | |M2.2 |A range of methods and techniques have been applied | |D2.4 |The unforeseen has been accommodated | | | |P1.3 |Identify and use appropriate selection structures and loop structures for the given task | |M2.4 |The selection/design of methods and techniques/sources has been justified | |D3.1 |Ideas have been generated and decisions taken | | | |P1.4 |Produce programs to desired standards | |M3.1 |Appropriate structure and approach has been used | |D3.5 |Innovation and creative thought have been applied | | |2 – Use modularisation appropriate to the chosen programming language |P2.1 |Construct a program from a design and use appropriate functions/procedures | | | | | | | | |3 – Produce appropriate documentation for a given program applications |P3.1 |Produce user documentation for a completed programming application including the user interface design | | | | | | | | | |P3.2 |Develop documentation for a predescribed program application | | | | | | | | |4 – Create and apply appropriate test schedules |P4.1 |Demonstrate discrimination between semantic and syntax errors | | | | | | | | | |P4.2 |Produce test documentation | | | | | | | | | |P4.3 |Successfully construct and use test data and schedules to detect logic errors | | | | | | | | | |P4.4 |Use appropriate techniques for detecting errors | | | | | | | | |

Similar Documents

Premium Essay

Why Do Students Have Dress Codes

...Remember as a kid when you thought that all the dress code rules were ridiculous and outrageous, well it turns out you might be right. All over America dress codes are being egregious with discrimination between female and male students, and we need to do something about it. The dress code is being more focused on the girls instead of on them equally. They’re letting male students get away with breaking the dress code while the female students are being called out and punished for wearing what they want. They’re making it harder for people to buy formal wear and regular clothes for school or formals and prom. One of the things about the school rules is that they are restricting the students’ rights to express themselves through their hair and clothes. While students are trying to stay up to date with the latest fashions they are being ridiculed for what they want to wear. Students would be sent home to change which is taking up valuable class time. With the fashions being jeans with holes in them, crop tops, cutouts, etc. the students are trying to wear what they think is in fashion or what they want to wear to express themselves. They are being told to go home and wear something that expresses somebody who isn’t them....

Words: 588 - Pages: 3

Premium Essay

Why Do Athletes Break The Code Of Conduct?

...power. Athletes that break the code of conduct for a two-three month season is ridiculous. Even worse, the coaches and teachers who know about their student-athletes breaking the code and do not do anything about it. I understand that people want to have fun, but regardless, drinking is illegal for people under the age of 21. One is supposed to be committed in that time period and the code of conduct is supposed to be the athlete’s contract for behavior. News spreads fast around this town, especially if a person hears of these athletes breaking the code. The athlete’s poor behavior reflects on that sports program and the team. To...

Words: 1331 - Pages: 6

Premium Essay

Based Upon the Internal Revenue Code, Do You Agree or Disagree with the Following Statement: a Taxpayer Does Not Have to Report Income When Debt Is Forgiven, Because the Taxpayer Receives Nothing. Explain the General

...Based upon the Internal Revenue Code, do you agree or disagree with the following statement: A taxpayer does not have to report income when debt is forgiven, because the taxpayer receives nothing. Explain the general rule, with reference to the applicable section of the Code, and any exceptions to the general rule. Based on the Internal Revenue Code, I would disagree with the above statement. According to Section 61(a) “Except as otherwise provided in this subtitle, gross income means all income from whatever source derived, including (but not limited to the following items.” In regards to debt forgiveness, Section 61(a)(12) includes, “Income from discharge of indebtedness”. Therefore, the taxpayer must still report income when debt is forgiven. Section 108 includes the exceptions to gross income from discharge of indebtedness. Generally speaking, Section 108 (a)(1) references the indebtedness of taxpayer that would not be included in gross income. They include: A. “the discharge occurs in a title 11 case, B. the discharge occurs when the taxpayer is insolvent, C. the indebtedness discharged is qualified farm indebtedness, D. in the case of a taxpayer other than a C corporation, the indebtedness discharged is qualified real property business indebtedness, or E. the indebtedness discharged is qualified principal residence indebtedness which is discharged before January 1, 2014.” Section 61(a)(1)(A-E) Title 11 is any case relating to bankruptcy,...

Words: 357 - Pages: 2

Free Essay

Why People Code Switch

...Why do People Code-switch 1 Why do People Code-switch: A Sociolinguistic Approach Why do People Code-switch: A Sociolinguistic Approach Walid M Rihane Arab Open University Why do People Code-switch 2 Abstract This paper sets out at the beginning different definitions and approaches to the linguistic phenomenon - Code-Switching. Through my work, I will highlight five different factors that motivate code-switching in a bilingual speaker although the reasons for code-switching are many . I will talk about the role of ethnic solidarity, social class, topic, affection, and persuasion in motivating switching codes. I will use different approaches and case-studies conducted by researchers from inside and outside Lebanon to back up my discussion. Why do People Code-switch 3 Why do People Code-switch: A Sociolinguistic Approach 1. Introduction: A person is said to be multilingual if he or she is competent in more than one language. Multilingualism is usually the result of many factors, such as colonisation, intercultural marriage, cultural interaction, education, and many other reasons. The applied linguist Del Hymes defines communicative linguistic competence as, '[a person] acquires competence as to when to speak, when not, and as to what to talk about with whom, when, where, in what manner' (Hymes, 1979). In this way, a person who is capable of using appropriately two languages or more is said to be multilingual. Usually, bilinguals and multilinguals...

Words: 2441 - Pages: 10

Premium Essay

What Are The Controversy Of Honor Codes Pros And Cons

...Controversy of Honor Codes Schools generally agree to have some sort of honor code to keep students from cheating, but should this be necessary? They are enforced to keep student’s behavior in line and keep them out of trouble. The code has students thinking for themselves, making them think independently and originally. Students are obligated to report those who are violating the honor code making them feel active in a community. These are just some reasons I feel as though schools should have their own type of honor code. Expulsion can be a result of students not following the honor code they have agreed to. Being entirely kicked from a school is not something that anyone wants to happen in their life. This strikes a fear into the student keeping them on their best behavior. Nobody would want to have to tell their family that they were expelled from the school they worked hard to...

Words: 966 - Pages: 4

Free Essay

Ethics

...Professional Codes of Ethics Commitment to ethical professional conduct is expected of every voting, ssociate, and student member of the ACM. — preamble to the ACM Code of Ethics. We, the members of the IEEE, in recognition of the importance of our technologies in affecting the quality of life throughout the world, and in ccepting a personal obligation to our profession, its members and the communities we serve, do hereby commit ourselves to conduct of the highest ethical and rofessional manner... — preamble to the IEEE Code of Ethics 3.1 Introduction Some students react with surprise when told that there is even one published code of ethics for the computing disciplines. In fact, almost every professional organization dealing with the field of computing has published its own code of ethics. For this text, I selected the codes published by the two most influential organizations for computer professionals: the Institute of Electrical and Electronics Engineers and the Association for Computing Machinery. I also selected a third code, from the National Society of Professional Engineers. A variety of other professional organizations have published computing codes, such as the Data Processing Management Association and the Institute for Certification of Computer Professionals [6], but I selected the NSPE code because it is still relevant to computing and contains some useful points of contrast to the IEEE and ACM codes. As you study the three codes, it will become...

Words: 5527 - Pages: 23

Free Essay

Piramid of Giza

... Strayer University Code of conduct in a business is extremely important. It sets boundaries in a work environment that keeps ethical behavior regulated. The Cheesecake Factory is one organization that has a code of conduct in place that is detrimental to the success of its business. Some of those key aspects are Compliance with the law, Non-Solicitation and Non-Raid and Non-Disparage Issues. These codes that are put in place uphold ethical behavior and also protects the organization itself. Compliance with the law is extremely important. This code states: “We expect staff members to comply with all applicable federal, state and local laws,regulations, rules and regulatory orders at all times. Neither a supervisor nor any other staffmember has the authority to direct another staff member to break any law or to conducthim/herself in a manner that is counter to the Code of Ethics”. The Cheesecake factory put this code in effect to make sure that their employees hold up their duties as law abiding citizens. In this they also stated that they do not tolerate sexual harraasement or drugs, which is very important now a days with everything going on. This should and I’m sure it is a basic code of conduct whether it be a business or a school. When we are jobs giving service to the world we must keep in mind that our responsibilities to law and order do not change. The Non-Solicitation code of conduct ensures that customers have a comfortable no...

Words: 981 - Pages: 4

Free Essay

Anderson's the Code

...Describe the major elements of what Anderson calls “the code of the streets.” How does this “code” oppose mainstream values? The code is really only alive in the ghetto, while it may reach parts of the suburbs it is not as predominant as in the ghettos. At the core of the code is respect, the code was described as the framework for gaining respect on the street, along with respect is loyalty and honor. The respect is getting respect and not giving the respect to any person of authority, such as parent or a cop. The loyalty is given to your street family not necessarily to your real family or people of authority again and honor is very similiar to respect. These values are described as what one needs to know to survive on the streets. Survival on the street is the important thing, and obtaining respect is imperative even if it costs your life. Obtaining respect, loyalty or honor on the streets are obtained through very different means than if you were in the suburbs or growing up in a middle to upper class neighborhood. Not only the way these are obtained different but also they are different from the mainstream in who is the receipent of them. To obtain respect, loyalty or honor it is achieved through aggressive behavior not as you would if you grew up in a middle or upper class suburb. For example one would gain respect in the ghetto by stealing something coveted by another person and then displaying the theft proudly. These values are also obtained through obtaining...

Words: 1627 - Pages: 7

Premium Essay

Medbill Pros

...MedBill Pros Medical Billing and Claim Services What do we do? We do everything involved to get a doctor paid for their services. This is payment from the insurance company and the patient. But there is more involving the process. The medical billing process is really important to the financial health of the practice, if claims are not submitted promptly, the doctors including us, would not get paid. Submitting Claims The medical biller and coder makes sure all forms are completed and approved and enters the information into the medical billing software, including doctor’s information, patient’s information, insurance information, medical billing codes, payment information, and any special notes on the account. Medical billing codes are necessary for a doctor to be properly reimbursed for the services provided. These codes are some of many: • ICD 9 codes (and ICD 10 codes)- international classification of diseases • CPT codes- current procedural terminology • CPT modifiers- these provide additional information to payers to make sure doctors get paid correctly for services provided • Medicare billing codes- explained for provider services and hospital insurance • CDT codes (dental)- code on dental procedures • NDC drug codes- national drug codes • DRG Medicare codes- diagnosis related group • Taxamony codes- used to categorize a provider or group specialty Our responsibility as Medical billers and coders • Collect the information necessary to prepare insurance...

Words: 517 - Pages: 3

Premium Essay

Code Switching

...Code Switching Code Switching, in terms of language, is the use of more than one language, by a person or more, during their conversations with each other. Code Switching is done simply because those persons know more than one language and have more than one language in common. This switch may last for a couple of sentences, for only a single phrase or may be only for a single word. It depends on how the persons take it with themselves and the others. In the article Code Switching it is written that “the switch is commonly made according to the subject of discourse, but may be for a variety of other reasons such as the mood of the speaker. For example, a person might only swear in French Language” ( 1 ). As described in the article Code Switching, there are number of situations why code switching occurs: A family that has recently immigrated to a country where a different language is spoken may switch back and forth between that language and their mother tongue, while they are learning the new language……...(this phenomenon is Morocco, Tunisia and Algeria)……………… Also, in countries with a large number of people from different ethnic backgrounds, communities will commonly switch between the language of their indigenous roots……….. code switching regularly happens between North American Mormon missionaries stationed overseas.”( 1 ) Because of the effectiveness of code switching it is widely used during our conversation. Code switching helps us to express ourselves...

Words: 2662 - Pages: 11

Premium Essay

Code of Ethics

...Code of Ethics One word: Enron. Most people that follow business know that corporation’s name. In November, 2001 the company admitted to using faulty accounting that had inflated income figures over a four year period of $586 million and a month later the company filed for Chapter 11 bankruptcy (Maxwell, 2003, p. 1). Enron’s executives were not following a code of ethics designed to help protect against dishonest business practices and unethical principles. Following good common sense and treating others the way that you would want to be treated is good ethical behavior. Ethics, however, always comes down to being a personal choice and making the decision to do what is right, instead of what is wrong. A code of ethics can provide direction for a company on how the company plans to direct and implement its vision and the best way for the employees to help enable that vision. Most companies today post their code of ethics on their websites so consumers can see what they signify and stand up for as a business. Ethical Tone and Structure Costco is a business that many consumers are familiar with. They are a membership chain of warehouses that provide a wide array of merchandise, most of the time that merchandise is purchased in bulk quantities. Their code of ethics is pretty simple. “1. Obey the Law 2. Take Care of our Members 3. Take Care of our Employees 4. Respect our Suppliers 5. Reward our Shareholders” (Costco). Not to difficult and easily manageable. ...

Words: 1350 - Pages: 6

Premium Essay

Business Code of Ethics

...PHL/323 Ethics in Management November 28, 2011 Business Code of Ethics Evaluation Code of ethics represents the principles and protocol of which a company operates. The reason for the code of ethics is to set a standard for employees and stakeholders to govern by. In this paper this writer will evaluate the code of ethics Catholic Health Services uses. How the code of ethics is used for employees, management, and board of directors will be discussed. Why the code of ethics is used, how it is used, and when it is used will be examined. This writer will modify if need be, how to modify the code of ethics and implement the change, employees reaction to the change, the effect the code has on the organization will be outlined. This writer will summarize the results of inquiry into the code of ethics of the organization Every organization operates by an ethical system. Catholic Health Services is an organization of the Archdiocese of Miami and the largest post acute provider in the southeast United States. Catholic Health Services provides a full continuum of health care and social services to the southeast Florida community. This association serves about 6,000 people daily with more than 7,500 new patients per year and operates 30 facilities in Broward and Miami-Dade counties (CHS, 2011). CHS mission statement is “To provide health care and services to those in need, to minimize...

Words: 1288 - Pages: 6

Premium Essay

Pc Security

...Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft, MS-DOS, Windows, Windows NT, Active Directory, BizTalk, IntelliSense, MSDN, Visual Basic, Visual C#, Visual C++, and Visual Studio are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. © 2003 Microsoft Corporation. All rights reserved. Version 1.0 6/30/2003 The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Contents Forewords xliii Foreword by Mark Curphey .....................................................................................xliii...

Words: 83465 - Pages: 334

Free Essay

Business Ethics

...information from my own personal moral code to confidentiality of the Internet. Basing a moral code is very important and you will learn more and more to help you understand what a moral code does for you. You should always follow some kind of ideals and this will help shed some light on the subject along with how it relates to a work environment. We will also discuss some important ethical issues impacting organizations today like confidentiality and environment, health, and safety policy. To wrap it up there will be some cases discussing the seven ethical approaches. Abstract…………………………………………………………………………………………2 Table of Contents………………………………………………………………………............3 Introduction……………………………………………………………………………………..4 Part I. My Professional Code of Ethics…………………………………………………………5 My Code of Ethics My Touchstones My Approach to Avoiding Faulty Thinking My Personal Approach to Four Major Ethical Dilemmas My Policy as a Supervisor or Manager Part II. Two Primary Ethical Issues Impacting Organizations………………………………….8 Environment, Health and Safety Policy Confidentiality Part III. Case Analysis………………………………………………………………………....10 Quality Management: Signing Off on a Substandard Product AutoZone Conclusion……………………………………………………………………………………...14 Introduction Everyone’s moral code is different because of their upbringing and life experiences. Your own moral code is very important because you need to have a personal code you go by to make important decisions in...

Words: 2862 - Pages: 12

Premium Essay

Health and Social Care

...Codes Of Practice For Social Care Workers Web and print-friendly version Introduction This document contains agreed codes of practice for social care workers and employers of social care workers describing the standards of conduct and practice within which they should work. This introduction, which is also reproduced in the Code of Practice for Employers of Social Care Workers, is intended to help you understand what the codes are for and what they will mean to you as a social care worker, employer, service user or member of the public. The General Social Care Council began its work on 1 October 2001, at the same time as the Northern Ireland Social Care Council, the Scottish Social Services Council, and the Care Council for Wales. The councils have a duty to develop codes of practice and have worked together in developing these codes as part of their contribution to raising standards in social care services. The two codes for workers and employers are presented together because they are complementary and mirror the oint responsibilities of employers and workers in ensuring high standards. 2 What are the codes? The Code of Practice for Social Care Workers is a list of statements that describe the standards of professional conduct and practice required of social care workers as they go about their daily work. This is the first time that standards have been set in this way at national level, although many employers have similar standards in...

Words: 1806 - Pages: 8