Integer test score

Assignment Help Other Subject
Reference no: EM13225257

Consider the following selection statement where X is an integer test score between 0 and 100. 
input X
if (0 <= X and X < 49)
output "you fail"
else if (50 <= X and X < 70)
output "your grade is" X
output "you did OK"
else if (70 <= X and X < 85)
output "your grade is" X
output "you did well"
else if (85 <= X and X < 100)
output "your grade is" X
output "you did great"
endif
output "how did you do?"
o What will be printed if the input is 0? 
o What will be printed if the input is 100? 
o What will be printed if the input is 51? 
o What will be printed if the user enters ?Wingding?? 
o Is this design robust? If so, explain why. If not, explain what you can do to make it robust. 
o How many levels of nesting are there in this design? 
o Give a set of values that will test the normal operation of this program segment. Defend your choices. 
o Give a set of test values that will cause each of the branches to be executed. 
o Give a set of test values that test the abnormal operation of this program segment.

Reference no: EM13225257

Questions Cloud

Protestant reformation beginning in the sixteenth century : Describe some ways in which the Protestant Reformation beginning in the sixteenth century challenged the authority of the Catholic Church
Bserving johnny''s parents interacting-extremely strict : Observing johnny's parents interacting with him, you detect that they're extremely strict. Therefore, you can guess that their parenting style is probably. listening to devon talk you recognize the appearance of over regularization when she says
Major assumptions of conflict theory : Discuss in detail the three (3) major assumptions of  Conflict Theory.  In light of these assumptions, how do conflict theorists view stratification based on social class in society.
Importance of science of geology to us as civilization : The importance of the science of geology to us as a civilization . Give at least two examples. For example, the ability to predict earthquakes and other disasters, or understanding mining and the use of natural resources.
Integer test score : Consider the following selection statement where X is an integer test score between 0 and 100.
Write a fictional : Write a fictional, first-person account of the creation and consequence situations of a subordinate group in the United States
Develop a global strategy : You are the CEO of a small electronics manufacturing firm that is about to develop a global strategy.
Desire for power in western culture : Landes seems to imply that the desire for power in Western culture is built into the ways in which we develop technology, and it is also built into our technologies themselves. Wajcman, on the other hand, attracts attention to discussions of power, w..
Introduction to the foundations of american education : one of the current debates from introduction to the foundations of american education listed in Appendix A

Reviews

Write a Review

Other Subject Questions & Answers

  Energy balance and weight management

What is the relationship between energy balance and weight management?

  Equal doctrine

Discuss whether or not there is any rationale for a separate but equal doctrine.

  Maturing of social networking

The online social networking industry is growing right now, but eventually demand will level out and the industry will start to mature; how would the maturation of the industry worldwide impact your business strategy?

  Explain the importance of outdoor recreation in child lives

Explain the importance of outdoor recreation in the lives of both children and seniors Discuss the benefits of outdoor recreation for the local community. Use local examples to support your answer

  Project process groups

You're familiar with the PMBOK and its five project process groups. Have you applied them on other projects? How do you envision those processes and phases applying to your trade show project at LRH? Explain which, if any phases will be more complica..

  Advertisements on the social issue

A brief description of the two advertisements on the social issue; including the mediums (e.g., Internet, television, magazine, etc.) used to deliver the advertisements.

  Does such research have any victims

A doctor has applied for a patent on new technology, involving the use of advanced computers to create a new type of organism. One goal is to genetically alter these organisms for use in human organ growth and transplant. The doctor says that, if she..

  Draft mission statement and values statement

You've just been hired as the director of new health care or human service organization (for example, a public health clinic). As the director, one of your first tasks is to draft mission statement and values statement for your organization.

  Introduction to stuttering

Which of the given is true of stuttering?

  Formation of an attachment relationship

What cognitive skills might be important prerequisites for the formation of an attachment relationship? What is the social and psychological costs when children don't form attachments?

  International resource management

Describe the complexity of the politics of resource management. (the word "resource could be replaced by one particular item such as "water", "oil" or "minerals")

  Negotiating a contract with a potentially very large custome

ssume youre a middle manager in a company with about a thousand employees. Youre negotiating a contract with a potentially very large customer whose representative has hinted that you could almost certainly be assured of getting his business if you g..

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