Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum.

Expected output: 440
Draw a student schedule by using a while loop. Ask the user for their first and last names, and then a list of their classes and room numbers. Output should look like this:
What is your first name? Ada
What is your last name? Lovelace
Student ID: 3456
*************************************************
* *
* Lovelace, Ada ID: 3456 *
* *
*************************************************
* *
Enter the next class, STOP to end: English 11
Enter the room number: 456
* Block 1: English 11 Room: 456 *
Enter the next class, STOP to end: STOP
* *
*************************************************
* *
*************************************************
Write a for loop to print all the even numbers from 200 to 300.

Sample Run

200
202
204
206
208
210
212
214
216
218
220
222
224
226
228
230
232
234
236
238
240
242
244
246
248
250
252
254
256
258
260
262
264
266
268
270
272
274
276
278
280
282
284
286
288
290
292
294
296
298
300
Write a for loop to print the numbers 88, 84, 80, ...44.

Sample Run
88 84 80 76 72 68 64 60 56 52 48 44
write a line of code to output the following message:
welcome to computer science!
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time, and output the result.
Example 2:

Enter the hour: 9
Enter the minute: 46
It displays:

Hours: 10
Minutes: 1
Write a for loop to print all the even numbers from 200 to 300.
Write a for loop to print the numbers 88, 84, 80, ...44.

Sample Run
88 84 80 76 72 68 64 60 56 52 48 44
Write a program that creates an array called temperatures and then add five temperatures input from the keyboard.

Print the array.

Sample Run:

Enter a temperature: 45
Enter a temperature: 67
Enter a temperature: 89
Enter a temperature: 47
Enter a temperature: 89
[45, 67, 89, 47, 89]
What is your first name? Ada
What is your last name? Lovelace
Student ID: 3456

Enter the next class, STOP to end: English 11
Enter the room number: 456

Enter the next class, STOP to end: Government
Enter the room number: 143

Enter the next class, STOP to end: Art History
Enter the room number: 943

Enter the next class, STOP to end: Algebra II
Enter the room number: 571

Enter the next class, STOP to end: Chemistry
Enter the room number: 467

Enter the next class, STOP to end: AP Comp Sci
Enter the room number: 510

Enter the next class, STOP to end: STOP
LATEST TUTORIALS
APPROVED BY CLIENTS