Free Essay

Determine One

In: Computers and Technology

Submitted By chaosheal
Words 317
Pages 2
Check if Vowel 0r not
#include <stdio.h> int main()
{
char ch; printf("Input a character\n"); scanf("%c", &ch); switch(ch) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U': printf("%c is a vowel.\n", ch); break; default: printf("%c is not a vowel.\n", ch); } return 0;
}
Leap Year or Not
#include <stdio.h> int main()
{
int year; printf("Enter a year to check if it is a leap year\n"); scanf("%d", &year); if ( year%400 == 0) printf("%d is a leap year.\n", year); else if ( year%100 == 0) printf("%d is not a leap year.\n", year); else if ( year%4 == 0 ) printf("%d is a leap year.\n", year); else printf("%d is not a leap year.\n", year); return 0;
}

Add Digits

include <stdio.h> int main()
{
int n, t, sum = 0, remainder; printf("Enter an integer\n"); scanf("%d", &n); t = n; while (t != 0) { remainder = t % 10; sum = sum + remainder; t = t / 10; } printf("Sum of digits of %d = %d\n", n, sum); return 0;
}

Greatest Common divisor and Least Common Multiple
#include <stdio.h> int main() { int a, b, x, y, t, gcd, lcm; printf("Enter two integers\n"); scanf("%d%d", &x, &y); a = x; b = y; while (b != 0) { t = b; b = a % b; a = t; } gcd = a; lcm = (x*y)/gcd; printf("Greatest common divisor of %d and %d = %d\n", x, y, gcd); printf("Least common multiple of %d and %d = %d\n", x, y, lcm); return 0;
}

#include <stdio.h> int main()
{
int n, reverse=0, rem; printf("Enter an integer: "); scanf("%d", &n); while(n!=0) { rem=n%10; reverse=reverse*10+rem; n/=10; } printf("Reversed Number = %d",reverse); return 0;
}…...

Similar Documents

Free Essay

The One

... SKOOKUM Job Application Your Name: ___Cocheta Sanders__________________________________________Date:___________________ Welcome to Skookum: America’s Premier Non-Profit Contract Management Corporation. We would like to thank you for your interest in one of our current job openings. Please let us know if you need assistance with any part of this application, as this information is important for helping us learn about you. NISH Eligibility Determination Most of Skookum’s direct labor positions are supported by NISH which is an agency who helps those with disabilities as barriers to employment in obtaining jobs. Our mission at Skookum is “Creating Opportunities for People with Disabilities”. Your chances of being hired with us increase if you do have a disability. If you accept a NISH supported position at Skookum, we will require medical documentation of your disability and have provided a sample letter of what is acceptable for our records on the last page of this application. You may take the sample letter with you and give it to your doctor. In order to determine if you qualify with a disability for employment under our NISH contracts, we have provided a list below of reasons how you may qualify. Thoroughly review the list and then mark the box below. 1. 1. Treatment for depression or other mental health issues. 2. Department of Rehabilitation (DVR) referral. 3. Recent......

Words: 2917 - Pages: 12

Premium Essay

The One

...The One Minute Manager The objective of the book ‘The One Minute Manager’ by Kenneth Blanchard and Spencer Johnson is to define the effective managers in this dynamic world of business where various external and internal factors influence their performance. The One Minute Manager is good and powerful for anyone who has problems getting the most out of their staff. This book provides a useful model for opening up and stimulating the minds of everyone in the organization to accomplish more. The One Minute Manager provides a positive role model for the people managing his employees. The One Minute Manager is a remarkably simple system to learn and apply and will help you improve employee performance. It will make you feel that you are a better manager because you can be proactive rather than reactive by setting goals and providing quick feedback on performance whether good or bad. It will make your staff feel better about their work even those that receive a few ‘one minute reprimands’. They will finally know what is expected of them and through the reinforcement of praising and reprimands they begin to understand their role and the consequences. This book contains these three main ideas: One Minute Goal Setting, One Minute Praising and One Minute Reprimand which are the tools to develop an excellent manager. As we go on the story, the author started it with the young man searching an answer whose quest is to find managers who make both their organization and people with......

Words: 1372 - Pages: 6

Premium Essay

No One

...Prepare Thoroughly Before You Begin Chapter 9 .......................Do Your Homework Chapter 10 .....................Leverage Your Special Talents Chapter 11 .....................Identify Your Key Constraints Chapter 12 .....................Take It One Oil Barrel At A Time Chapter 13 .....................Put the Pressure on Yourself Chapter 14 .....................Maximize Your Personal Power Chapter 15 .....................Motivate Yourself Into Action 2 Chapter 16 .....................Practice Creative Procrastination Chapter 17 .....................Do the Most Difficult Task First Chapter 18 .....................Slice and Dice the Task Chapter 19 .....................Create Large Chunks of Time Chapter 20 .....................Develop a Sense of Urgency Chapter 21 .....................Single Handle Every Task Putting It All Together 3 Preface Thank you for picking up this book. I hope these ideas help you as much as have helped me and thousands of others. In fact, I hope that this book changes your life forever. There is never enough time to do everything you have to do. You are literally swamped with work and personal responsibilities, projects, stacks of magazines to read and piles of books you intend to get to one of these days as soon as you get caught up. But the fact is that you are never going to get caught up. You will never get on top of your tasks. You will never get far enough ahead to be able to get to all those books, magazines and leisure......

Words: 20872 - Pages: 84

Premium Essay

Determine Asset Impairment

...GUIDELINES TO DETERMINE ASSET IMPAIRMENT AND REPORTING OF INSURANCE RECOVERIES ASSET IMPAIRMENT STEP 1: Identify “Potential” Impairments to Capital Assets The first step in the process is to identify “potential” impairments to capital assets. Identifying “potential” impairments to capital assets may not necessarily lead to recording an impairment loss. Refer to Step 1 of Exhibit 1 for a detailed decision tree. How is asset impairment defined? As stated above, GASB Statement No. 42, paragraphs 5 and 6 define asset impairment as “a significant, unexpected decline in the service utility of a capital asset.”  • Significant: The events or changes in circumstances that lead to impairments are not considered to be normal and ordinary. • Unexpected: At the time the capital asset was acquired, the event or change in circumstance would not have been expected to occur during the useful life of the asset. • Decline in service utility: A reduction in the usable capacity that at acquisition was expected to be used to provide service, as distinguished from the level of utilization. o The current usable capacity of a capital asset that is less than its original usable capacity due to normal wear and tear and expected decline in useful life is not considered to be an impairment; however, impairing events or changes in circumstances that reduce usable capacity may indicate impairment.  o Decreases in utilization and existence of, or increases in,......

Words: 3598 - Pages: 15

Free Essay

No One

... Name Student ID 2. Name you prefer to be called 3. Programme (Circle One): BBM BBS Other_______________ Semester: _____ 4. Are you a transfer student from another Sunway campus? If yes, please state which campus and from what programme ______________________________________________________________________________________________________________________________ Are you a transfer student from a different college/university (circle one)? YES NO If yes, which college/university ______________________________________________ 5. Nationality: ____________________ Ethnicity: _________________________ Religion: __________________________ 6. Home town: 7. What Pre-University/Matriculation programme did you take before joining this programme at Sunway University? ______________________________________________________________________________________________________________________________ (for example: Form 6, UEC, FIA, A-Levels, AUSMAT, SAM, CIMP, IB, etc.) Were there any science/technology subjects in your Pre-U/Matric course (circle one)? YES NO 8. Did you take any science subjects or come from the Science Stream in primary and secondary/high school (circle one)? YES NO What was your experience taking science in school or pre-u/matric (circle one)? HIGHLY POSITIVE POSITIVE AVERAGE POOR/BAD ...

Words: 383 - Pages: 2

Premium Essay

The One

...Introduction Goal setting is important in today’s corporate environment. As we live in an age that is centered on competition, major establishments are searching for ways and methods to exceed corporate goals and improve their performance. The focus of this paper is to determine and evaluate if the Allstate Corporation has an effective goal -setting program. I will then discuss the advantage that Allstate has from its development of the Diversity Index. The conclusion of this paper will focus on the hypothetical assumpition that if I was an employee of Allstate, would I be motivated by their Diversity Index and QLMS. Using the model for goal setting, evaluate Allstate’s goal setting process to determine whether not Allstate has an effective goal-setting program. Based upon Allstate’s goal setting process, the company has clear and defined objectives for its program. To provide definition to this program, the company took the following steps to accomplish this great task. First, the company set the goal at a place and level where it was challenging but attainable to achieve (Hellriegel, & Slocum page165). Because it is attainable and clear, members of the corporation are able to carry out the goals. Therefore the employees of Allstate’s are equipped with clear and defined goals, generating a more energetic and productive workforce. Second, the goal setting model used by Allstate involves, will, goal commitment, feedback and task complexity. The company......

Words: 738 - Pages: 3

Premium Essay

One One One

...ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE...

Words: 304 - Pages: 2

Premium Essay

The One

...receive when you graduated from college? 1. Summa Cum laude 2. Magna Cum laude 3. Cum laude 4. Other academic award 5. None/not applicable 7. Present employment: 1. Government 2. Private 3. Self-employed 8. Type of present job: 1. Professional/Technical/Scientific 2. General Clerical 3. Trades and crafts (jobs requiring manual/mechanical/artistic skills) 4. Others 5. Not applicable manual dexterity of application of 9. Length of experience in present job: 1. Less than one year 2. One to two years 3. Three to four years 4. More than four years 5. Unemployed 10. Do you have any of the following first level eligibilities: Second Grade, Municipal/Provincial Clerk, General Clerical, Career Service SubProfessional(Local Government), Career Service Sub-professional 1. Yes 2. No 11. For what reason are you taking this examination? 1. Entrance to government service 2. Change of appointment status 3. Promotion 4. Others 12. How many times have you taken the Career Service Professional? Examination excluding this one? 1. Once 4. More than thrice 2. Twice 5. Never 3. Thrice 13. Which of the following activities did you undertake in preparing for this examination? 1. Enrolled in review centers 2. Studied career service examination reviewers sold at bookstore 3. Engage in other activities 4. Used a combination of 1 and 2. 5. No preparation done at all Items 14 to 16 (For Government Employees Only): 14. Category of government office where employed: 1. 2. 3. 4. 5. National......

Words: 7912 - Pages: 32

Premium Essay

No One

...-------------------------------------------------------------------------Study Comments Sample Time Results (litres of daily milk (Identified by size Period production per milch animal) lead author) (House------------------------------------holds) CooperaOther Control tive villages village village* ---------------------------------------------------------------------------------------------------------------------------Jain, JL Replication of an earlier study NA 1966 Not 233 3.03 (1982) of producers in six villages in one studied district. Figures based on the averages across the households 78 1976 4.45 3.88 3.27 for three seasons in the year. Patel, SM (1975) Singh, K (1982) Based on a sample from 24 villages in three districts Based on a sample of milk producers in six villages across three different states 450 1974 6.10 Not Studied Not Studied 5.18 1100 1980 2.58 2.06 Alderman, H Based on a sample of milk (1987) producers in 62 villages in one state. Five different rounds of 806 1980-83 Not studied Round1 3.60** 1.80** data were collected. Round2 2.56** 1.57** Round3 2.95** 1.57** Round4 3.07** 1.93** Round5 2.91** 1.77** -----------------------------------------------------------------------------------------------------------------------------* Other villages refer to the organized milk collection by the Delhi Milk Scheme ** It was not possible to calculate values for liters of daily milk production per milch animal given the data reported by......

Words: 16034 - Pages: 65

Premium Essay

The One

...but death and taxes”. Taxes are collected from citizens from the government in order for the government to provide everyone with various goods and services. Let’s say, “ The state has decided to increase funding for public education. They are considering four alternatives to finance these expenditures. All four taxes would raise the same amount of revenue.” The four taxes proposed are as follows: a sales tax on food, a tax on families with school-age children, a sales tax on jewelry, and a property tax on vacation homes. Each of these four taxes will be analyzed based on the benefits principle and the principle of horizontal equity and then classified each tax as progressive, proportional, or regressive. We will use this information to determine which tax is best suited to finance public education. The benefits principle states that people should pay taxes based on the benefits they receive from government service. Jewelry is a luxury, therefore it is not a good that everyone needs. It is most commonly purchased by the wealthy and middle class. If a sales tax on jewelry is going to be used to fund public education, a public service, the benefits principle cannot be applied to this tax. Because a majority of middle and upper class citizens send their children to private school rather than public school, they are not receiving the government benefit of paying this tax on jewelry. If however, the purchasers of jewelry do send their children to public school, this tax would be......

Words: 592 - Pages: 3

Premium Essay

Determine Perfect Position

...Determining My Perfect Position As a valued and experienced employee in my expanding and growing organization, I was presented with the opportunity of determining a leadership position, where I can utilize my expertise and my knowledge of the vision and mission of the organization, daily operations and processes of almost every department and the qualities and values that I possess, and determine the best suitable position that benefits of such experience and qualities, as well as benefits the organization in whole and the department I will be working for. By knowing one’s qualities, ethics and capabilities this should enable this one to better define the responsibilities, challenges, strengths and weaknesses and the accurate leadership style that can be practiced in the best manner to benefit both the employee and the organization. So, by analyzing the Leadership and Team Skills self- assessments one can discover individual strengths and weakness that will assist in determining his or her leadership style, and abilities to lead others. Employee-oriented leaders are “described as emphasizing interpersonal relations; they took a personal interest in the needs of their employees and accepted individual differences among members. The production-oriented leaders, in contrast, tended to emphasize the technical or task aspects of the job” (Robbins & Judge, 2007 pg. 406) By taking a number of self-assessment tests provided by the University of Phoenix student’s portal, such......

Words: 1424 - Pages: 6

Premium Essay

As One

...Mankind and their Power of Love, I bet if there is God....he would fall for it!!! "That small smile, Makes me go crazy. And that small love, I would trade my life for it. Oh Mankind, Why don't you realize your strength of Love." That Scant light showed me few glowing hearts with Scars, far away they live and they made path for the rest.They seemed to see the world in the eye's of others who are in need, as one!!So did I fall head over heels for these crazy hearts which beat for what they stand for and for their fellow brothers. And one of them is Malala Yousafzai. Everything is right in front of us, yet we fail to understand!! But there is this God, whom one have never seen and there they walk into a black hole in search of what is within.Is this what is called "Search that never ends"??!!Forgive me, If I was rude.. There they lay comfortably with their blanket of Religion,Race and so on, wrapped around them so tight.....that it has blinded their eyes!! "If you shoot, I die in a minute. If you love, I die every second seeking it" Where is life taking us??Why was I born??Why cant I change things??Why was I born as a girl??!! Cries a small heart... Miles away from her!! Never met her in this life of mine!! Yet her cry is heard!!! Are we ignorant of our intelligence, our capacity to empathize or are we pretending to be Ignorant ??!!I don't see the point in knowing, feeling and then not acting!!??!! Are we ignorant of our intelligence,......

Words: 380 - Pages: 2

Premium Essay

For One

...Interdependence and Conflict: An Introduction Edward D. Mansfield and Brian M. Pollins Over the past few decades, there has been a surge of interest in the relationship between economic interdependence and political con›ict. One view that has gained considerable popularity and empirical support is that heightened interdependence fosters cooperative political relations. Voiced with increasing regularity in both academic and policy circles, this claim has been used to help justify the formation of the European Economic Community, Richard Nixon’s opening to China, Willy Brandt’s Ostpolitik, and Henry Kissinger’s conception of détente with the Soviet Union. Nonetheless, critics of this argument have not been stilled. Some observers maintain that, rather than fostering cooperation, increased interdependence generates political discord. Even more widespread is the argument that economic exchange has no strong bearing on the high politics of national security. This debate is hardly new. For centuries, the nature and strength of the links between interdependence and con›ict have been the subject of heated disagreement. Until lately, however, these links remained the subject of remarkably little systematic scrutiny. In recent years, a growing number of studies have attempted to ‹ll this gap in the literature, but they have yet to resolve various crucial questions. Most important, how and to what extent does interdependence in›uence political antagonism? What are the......

Words: 11753 - Pages: 48

Premium Essay

The One

...long-term efficiency and develop strategic plans for the business. An organization’s environment can be broken into two separate divisions. First, the internal environment which is generally compiled of the factors or elements directly involved within the company. This would basically include the managers, employees, stakeholders, and especially the corporate culture of an organization.   The external environment includes factors that are out of the organizations control.   Some of these factors include political, economical, sociological, technological, ecological, and legal factors.   Environmental Scanning An internal environmental scan can help distinguish the company’s internal assets and requirements.   The external scan can help to determine the environmental issues that the......

Words: 275 - Pages: 2

Free Essay

The One

...sure that the number is within the limit of 40-50 • Arrange your references in alphabetical order • Cite them properly according to the MHRA (Modern Humanities Research Association) guidelines for referencing your work. These are laid out in Section 10 of the MHRA Style Guide. At http://www.library.soton.ac.uk/infoskills/referencing.shtml#MHRA you will find a link to the Style Guide. There you will also find links to documents containing MHRA-format examples from the Guide, and from the New College Humanities Programme Handbook. • Check and double-check for inaccuracies and inconsistencies in spelling, punctuation and spacing • Include as wide a range of types of information sources on your topic as you can find. The main ones are books, journal articles, electronic journal articles, conferences, theses, websites, and newspaper articles, reports and government publications (though the last two types are unlikely for the subject of this sample bibliography) • Choose references that are up to date, unless your topic has a historical slant, in which case older material will be appropriate • Select from good quality resources with academic validity THE BIBLIOGRAPHY The subject chosen is Post-structuralism. Search strategy: The topic has a lot of material. To reduce this and to ensure that references will be up to date, only items published between 1998 and 2003 in English have been used. A wide range of information sources has been......

Words: 1295 - Pages: 6