Write piece of code using only one switch

Assignment Help Business Management
Reference no: EM132252910

1) Write piece of code using only one switch and no other control structure to read one character and do the following:

If a 1 print "Got a ONE"

If a 3 print "Got a THREE"

If a 5 print "got a FIVE"

If a 7 print "Got a SEVEN"

If a 9 print "Got a NINE"

If an even number print "Got an even number"

If a non-digit print "got a non-digit"

2) Write section of code that will take an integer variable Y and if Y negative, will set it to zero. If Y is greater than zero, the code will add one to Y if and only if Y is an also an even number.

Please answer these questions in C program language not c++ or java thank you

Reference no: EM132252910

Questions Cloud

List the parameters and arguments : b) List the parameters and arguments, if any, involved the call.
What are the delphi technique : What are the Delphi technique used to identify risks and infer n types of projects where this technique is most accurate.
Describe how 16 sub-keys are generated : Describe how 16 sub-keys are generated from one key supplied to the DES operation
Examine what factors are positive or negative : Relationship Between Health Issue and Target Population: Analyze how social, cultural, and behavior factors in the target population contribute to the health.
Write piece of code using only one switch : 1) Write piece of code using only one switch and no other control structure to read one character and do the following:
Virgin group market diversification strategy : Do you agree with Virgin Group’s market diversification strategy? If so, what other markets should they pursue?
Define your view of the analysis of disease and healing : What aspects of the topic readings (The Role of Spirituality in Health Care). do you find the most interesting? What is your view of the analysis of disease.
Beneficial for businesses aiming to increase their value : Explain why the Lean Organizational Structure is beneficial for businesses aiming to increase their value.
Model of Initial LEU Core : Propose group 1 and 2 work independently on the model of Initial LEU Core (M-1-3) shown in slide 20 of the demo0 presentation

Reviews

Write a Review

Business Management Questions & Answers

  Frame number happens to be four times smaller

A paging system with a 256address page size, using a page table in which the frame number happens to be four times smaller than the page number.

  What are the elements of graeters marketing mix

What are the elements of Graeters marketing mix? Which are most likely to be affected by external forces in the marketing environment

  Key advantages attained from partnership

Unlimited liability is one of the key advantages attained from partnership. True or False? Give a description

  Competitive or the economic environment

What would be considered a threat from the competitive or the economic environment? What about an opportunity?

  Describe the court analysis and legal theories

Describe the Court's analysis and legal theories used to come to its conclusion. How does it impact American society, and how business is conducted in the U.S.?

  Building alarm floor planphysical security draw a facility

building alarm floor planphysical security. draw a facility floor plansubmit a drawing as close to scale as possible of

  What is a serial entrepreneur is this a new phenomenon

Write a 3+ page, double-spaced essay: Serial Entrepreneur. What is a serial entrepreneur? Is this a new phenomenon? What does it take to be a successful serial entrepreneur

  Acquisition of motorola shape google subsequent strategy

Did the acquisition of Motorola shape Google's subsequent strategy?

  Reinforcing behaviorsidentify reinforcing behaviors you use

reinforcing behaviorsidentify reinforcing behaviors you use with others. watch for both positive and negative

  Describe your verbal non-verbal and written skills

In a minimum of 300 words, describe your verbal, non-verbal and written skills. Include in your description of each, what you feel are your strengths and weaknesses.

  How would you respond to the request

The Government must support this sole source procurement with a Justification and Authority (J&A). The sole source authority the Government plans

  Describe the subject organisation

Write a 2000 word report on the following issues depicted in the chosen case study: 1. Describe the subject organisation and explain the problem or opportunity

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd