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

  Windows application that function like a banking account

Create a Windows application that function like a banking account register. Separate the business logic from the presentation layer. The graphical user interface should allow user to input the account name, number, and balance.

  Write a function named digit_name

Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.

  Develop a simple poker game

Develop a simple poker game

  Program to print out invalid number to character

The integer must contain 3 distinct non-zero number, or the program will print out invalid number.it should print out invalid query.

  Write a method that accepts a string

Write a method that accepts a String object as an argument and displays its contents backward. For instance, if the string argument is "gravity" the method should display - "ytivarg". Demonstrate the method in a program that asks the user to input..

  Develop a program that when you pipe in a file

develop a program that when you pipe in a file it will demonstrate on the left had side the line number  work by having a program piped in and when a \n occurs a new line and number is indicated.

  A series of one-digit non-negative numbers

Write a program that asks the user to enter a series of one-digit non-negative numbers

  Calculate and return the average of one of numerical values

Write a method that uses the array to output to the console the list of entries in reverse order. Each entry is displayed on a new line.

  Create a calling module name and parameters

Create a calling module name and parameters for the following. (Remember that the asterisk before the parameter name indicates a call-by-reference parameter.

  Create a 1-dimensional (1d) array

Write a program to create a 1-dimensional (1D) array that contains 15 characters and display to the screen a count of the occurrences of each of the vowels a, e, i, o, and u in the array.

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Create class that allows you to generate number of plants

In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.

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