Consider the subsequent selection statement where x is an

Assignment Help C/C++ Programming
Reference no: EM13346750

Consider the subsequent 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?"

Answer the following:

• What will be printed if the input is 0?
• What will be printed if the input is 100?
• What will be printed if the input is 51?
• What will be printed if the user enters Wingding?
• Is this design robust? If so, explain why. If not, explain what you can do to make it robust.
• How many levels of nesting are there in this design?
• Provide a set of values that will test the normal operation of this program segment. Defend your choices.
• Provide a set of test values that will cause each branch to be executed.
• Provide a set of test values that test the abnormal operation of this program segment.

Reference no: EM13346750

Questions Cloud

Input a list of employee names and salaries and determine : input a list of employee names and salaries and determine the meanaverage salary as well as the number of salaries
Q1 anbsp write structures for the following moleculesinbsp : q1. anbsp write structures for the following moleculesinbsp 2-phenylethanol.ii 2-methyl-2-propen-1-ol.iii
Bown fur color in mice is dominant to white fur color : brown fur color in mice is dominant to white fur color. what phenotypic ratio would you get if you crossed a white
The italians had an election italy is a western : the italians had an election. italy is a western democracy.italy is a large european country with a staggering public
Consider the subsequent selection statement where x is an : consider the subsequent selection statement where x is an integer test score between 0 and 100.input xif 0 lt x and x
The essay topic is climate change and the norththe purpose : the essay topic is climate change and the norththe purpose of this research paper is to help you engage with current
Write a research paper on single transferable vote : write a research paper on single transferable vote electoral system.write a research paper that addresses the following
A study was conducted to determine the impact of social : a study was conducted to determine the impact of social media use on student learning. a total of 103 students taking a
Innbspcrisis and reformnbsp current issues in american : innbspcrisis and reformnbsp current issues in american punishmentnbspalexis durham writesthe ongoing debate about how

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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