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

  Calculate the diameter of tungsten atom

Calculate the diameter of a W (tungsten) atom, given that W has a bcc crystal structure, a density of 19.3 g/cm3 and an atomic weight of 183.84 g/mol

  Hacking into harvard

Determine if this constitutes cheating. Speculate why someone would do something, such as copy and paste information directly from the Internet into a class paper and not cite the source knowing the consequences of this action.

  Magazines that target teenagers and young adults

Name several popular books, newspapers, and magazines that target teenagers and young adults. To what degree do they reflect or create trends in entertainment, health and appearance, interpersonal relationships, and education or career choices? Us..

  Application of criminology theory

You are the vice principal in charge of discipline at a prestigious school. An eighth grade teacher has a problem with one of the students. The student comes from a disadvantaged socioeconomic background and the principal would like to keep him in th..

  Leadership positions for a fast- food restaurant chain

What are the critical leadership positions for a fast- food restaurant chain? What compentencies are needed for people to succeed in these positions? How would you determine whether external canidates had the potential to succeed in these positions?

  Interrelation of individual coaching

In a paper of 1,000 to 1,250 words, explain the interrelation of individual coaching, group coaching, and organizational consulting.

  Giving students grades does more harm than good

Giving students grades does more harm than good. school should replace grades with written evaluations of the student's strenghts and weakness. these would benefit both student and parents.

  Explain the differences between civil and criminal law

Damian M. was charged with the murder of his wife, Sharon. After a lengthy trial in criminal court, he was acquitted by a jury of his wife’s murder. Sharon’s parents were convinced that Damian killed their daughter, and so they then brought a civil c..

  Suitable way to approach classmate about plagiarized matter

What would be suitable way to approach the classmate about concerns? What suggestions could you offer and what tools would you suggest to assist that classmate avoid plagiarism?

  Self-aggrandizement or high self-esteem

In our very individualistic culture, is it not a contradiction that self-effacement is seen as more positive, and self-aggrandizement or high self-esteem (over-confidence) as more negative?

  Work of suffragists actually hurt women’s push equal society

Do you believe that Sarah Hale influence on women did more to help elevate women from their sphere’s, or did her views on the proper housewife and her views against the work of suffragists actually hurt women’s push into a more equal society. Why, or..

  When it comes to protest activities-majority of americans

When it comes to protest activities, a majority of Americans are

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