1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
denis-greek [22]
4 years ago
8

Jimmy wrote the procedure scoreToGrade which accepts as a parameter score - a quiz score in the range 0-100. The procedure is su

pposed to return a letter grade. He feels confident his program is correct because he has tested it using the scores 3, 29, and 67. Sally believes the program is incorrect because she tested the values 73 and 86. The code is syntactically correct, and the programs runs without generating an error, but the results are sometimes wrong. Why does the procedure return the correct values for Jimmy’s tests but not Sally’s?
Computers and Technology
1 answer:
7nadin3 [17]4 years ago
8 0

Answer:

There must be a logical error while checking the score

Explanation:

Jimmy claims that the program works fine, but he did not test the values that are above 67. When Sally tested 73 and 86, which are greater than 67 , she gets an error.

Sally claims that the program does not work, but she did not test the values that are below 73.

These imply that Jimmy made a logical error when he compared the values that are greater than 67.

 

You might be interested in
A(n) _____ is essentially a flash-based replacement for an internal hard drive.
mr_godi [17]
A solid-state drive<span> (SSD) is essentially a flash-based replacement for an internal hard drive. </span>
The SSD uses integrated circuit assemblies as memory to store data persistently.
SSD is chosen over HDD (Hard Disk Drive) when  performance and fast bootup are more important than money.
4 0
4 years ago
A store sells rope only in whole-foot increments. Given three lengths of rope, in feet, the following code segment is intended t
Nonamiya [84]

Answer:

The correct option is option 3 which is The code segment works as intended but only when the sum of the three lengths is an integer or the decimal part of the sum of the three lengths is greater than or equal to 0.5.

Explanation:

As the variable minLength is defined as an integer thus the value is being truncated although the value of 0.5 is being added however if the decimal portion of the length is less than 0.5, the portion is truncated.

7 0
4 years ago
Read 2 more answers
The search text that you type is called your _____.
Dvinal [7]
It's call your question I Bielive but I'm not sure what your 
6 0
4 years ago
You would like to search for information about storms but not tornadoes. What type of search strategy may be useful?
Norma-Jean [14]

Answer:

boolean search

Explanation:

4 0
3 years ago
Read 2 more answers
Design and implement an application that reads a string from the user then determines and prints how many of eachlowercase vowel
frez [133]
Design and implement an application that reads a string from the user, then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string . Have a separate counter for each vowel. Also count and print the number of nonvowel characters .

SPECIFICATION OF PROMPTS, LABELS AND OUTPUT : Your code should use the prompt "enter string : ". After the input is read, there are six lines of output , each starting with a different label: "a: ", "e: ", "i: ", "o: ", "u: ", "other: " in that order. After each label is the required count.

For example: if "aardvark heebie jeebies" were read in,
4 0
3 years ago
Other questions:
  • Write statementsto show how finding the length of a character array char [ ] differs from finding the length of a String object
    9·1 answer
  • Suppose you define a java class as follows: public class test { } in order to compile this program, the source code should be st
    14·1 answer
  • The average and distribution of properties, like orientation or color, over a set of objects or a region in a scene are called t
    12·1 answer
  • Which line in the following program contains the prototype showDub function? 1 #include 2 using namespace std; 3 void showDub(in
    12·1 answer
  • Write a for loop to print all NUM_VALS elements of vector courseGrades, following each element with a space (including the last)
    11·1 answer
  • Write a C program to input basic salary of an employee and calculate gross salary according to given conditions.
    11·1 answer
  • HELP AASAP BRAINLIEST JUST HELP
    13·1 answer
  • Focusing on a target market makes it harder to develop products and services that specific groups of customers want.
    10·1 answer
  • The following are three possible logon scenarios. Explain why option (c) below is preferable in terms of system security. a. Wel
    12·1 answer
  • HELLO. Which of the following is NOT a way to control the flow of a program?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!