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
Ostrovityanka [42]
3 years ago
10

Imagine that you wanted to write a program that asks the user to enter in 5 grade values. The user may or may not enter valid gr

ades, and you want to ensure that you obtain 5 valid values from the user. Which nested loop structure would you use?
A. A "for" loop inside of a "while" loop
B. A "while" loop inside of a "for" loop
C. None of the above
D. Either a or b would work
Computers and Technology
1 answer:
OLEGan [10]3 years ago
5 0

Answer:

B. A "while" loop inside of a "for" loop

Explanation:

To enter 5 grade values, a for loop can be used to specify the number of grade values to be entered by the user, in other to ensure the validity of the grade values entered by the user, the while loop will be used inside the for loop such that the inputted values will only be accepted when the user enters a valid grade.

Code structure :

For a in range(0, 5) :

grade = input()

while grade (enter condition)

This is just the code structure and this will work for the problem stated.

You might be interested in
WILL GIVE BRAINLIEST!!! PLEASE HELP!!!
padilas [110]

Answer:

BOI I got ricked rolled!

Explanation:

He done it!

5 0
3 years ago
Which type of password attack employs a list of pre-defined passwords that it tries against a login prompt?.
Salsk061 [2.6K]

That is calld a bruteforce attack

4 0
2 years ago
Which type of application architecture has a logic tier
LuckyWell [14K]

Answer:

hi

Explanation:

7 0
3 years ago
Read 2 more answers
What is the bleed space in a design?
pav-90 [236]

Answer:

The bleed is the part on the side of a document that gives the printer a small amount of space to account for movement of the paper, and design inconsistencies. Artwork and background colors often extend into the bleed area. After trimming, the bleed ensures that no unprinted edges occur in the final trimmed document.

Explanation:

8 0
3 years ago
The exception classes are in packages in the ________.
kakasveta [241]

Answer: Compiler

Explanation:

 The exception classes are basically occur during the compilation of the program in the system. The exception is the event which disrupt the flow of the instruction.

It basically provide a way to transfer the control in the one part of the program to another program. The exception class is also known as run-time exception that basically indicate the condition in the class application.

All the other options are not in the form of packages in the exception class. Therefore, compiler is the correct option.

8 0
4 years ago
Other questions:
  • When you hear or see the warning signal of any emergency vehicle, you should ________________.?
    14·1 answer
  • Emma has used copyright works of a number of artists in her photo album and cited all of them except one. She may be caught for
    6·2 answers
  • Does it matter if watch comes without box and papers
    10·1 answer
  • Clep allows students to do all of thw following except which?
    9·2 answers
  • Which answer best describes an unsubsidized federal loan
    13·1 answer
  • A contact list is a place where you can store a specific contact with other associated information such as a phone number, email
    8·1 answer
  • How do i get more coding programs
    14·2 answers
  • Welckljhjkljkllhklk fgn. fghf gh
    15·1 answer
  • You load an image file into a numpy array and look at its shape, which is (433, 650). What does this indicate?
    13·1 answer
  • Please help What two Boolean operators can you use to narrow your search results?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!