Answer:
a
have religious undertones.
b
use special effects.
c
have humanoid robots.
d
use Gothic Imagery.
Explanation:
The function below takes one parameter: an integer (begin). Complete the function so that it prints every other number starting at begin down to and including 0, each on a separate line. There are two recommended approaches for this: (1) use a for loop over a range statement with a negative step value, or (2) use a while loop, printing and decrementing the value each time.
1 - def countdown_trigger (begin):
2 i = begin
3 while i < 0:
4 print(i)
5 i -= 1 Restore original file
Answer:
Follows are code to the given question:
def countdown_trigger(begin):#defining a method countdown_trigger that accepts a parameter
i = begin#defining variable that holds parameter value
while i >= 0:#defining while loop that check i value greater than equal to0
print(i)#print i value
i -= 2 # decreasing i value by 2
print(countdown_trigger(2))#calling method
Output:
2
0
None
Explanation:
In this code, a method "countdown_trigger" is declared, that accepts "begin" variable value in its parameters, and inside the method "i" declared, that holds parameters values.
By using a while loop, that checks "i" value which is greater than equal to 0, and prints "value" by decreasing a value by 2.
You are responsible for a rail convoy of goods consisting of several boxcars. You start the train and after a few minutes you realize that some boxcars are overloaded and weigh too heavily on the rails while others are dangerously light. So you decide to stop the train and spread the weight more evenly so that all the boxcars have exactly the same weight (without changing the total weight). For that you write a program which helps you in the distribution of the weight.
Your program should first read the number of cars to be weighed (integer) followed by the weights of the cars (doubles). Then your program should calculate and display how much weight to add or subtract from each car such that every car has the same weight. The total weight of all of the cars should not change. These additions and subtractions of weights should be displayed with one decimal place. You may assume that there are no more than 50 boxcars.
Example 1
In this example, there are 5 boxcars with different weights summing to 110.0. The ouput shows that we are modifying all the boxcars so that they each carry a weight of 22.0 (which makes a total of 110.0 for the entire train). So we remove 18.0 for the first boxcar, we add 10.0 for the second, we add 2.0 for the third, etc.
Input
5
40.0
12.0
20.0
5. 33.
0
Output
- 18.0
10.0
2.0
17.0
-11.0
Answer:
The program in C++ is as follows:
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int cars;
cin>>cars;
double weights[cars];
double total = 0;
for(int i = 0; i<cars;i++){
cin>>weights[i];
total+=weights[i]; }
double avg = total/cars;
for(int i = 0; i<cars;i++){
cout<<fixed<<setprecision(1)<<avg-weights[i]<<endl; }
return 0;
}
Explanation:
This declares the number of cars as integers
int cars;
This gets input for the number of cars
cin>>cars;
This declares the weight of the cars as an array of double datatype
double weights[cars];
This initializes the total weights to 0
double total = 0;
This iterates through the number of cars
for(int i = 0; i<cars;i++){
This gets input for each weight
cin>>weights[i];
This adds up the total weight
total+=weights[i]; }
This calculates the average weights
double avg = total/cars;
This iterates through the number of cars
for(int i = 0; i<cars;i++){
This prints how much weight to be added or subtracted
cout<<fixed<<setprecision(1)<<avg-weights[i]<<endl; }
What are some examples and non-examples of digital security?
Answer:
Devices such as a smart card-based USB token, the SIM card in your cell phone, the secure chip in your contactless payment card or an ePassport are digital security devices
your computer has been running slowly and you suspect it because its is low on memory. you review the hardware configuration and find that computer has only 4gb of ram. how can you determine how much memory your computer should have to run properly?
Parts of a computer software
Answer:
I think application software
utility software
networking software
Which of the following are complete sets of data and are the rows of the table?
Files
Fields
Queries
Records
Answer:
I think the answer is going to be records
HURRY- I’ll give 15 points and brainliest answer!!
How do you insert text into a presentation??
By selecting text from the insert menu
By clicking in the task pane and entering text
By clicking in a placeholder and entering text
By drawing a text box clicking in it and entering text
(This answer is multiple select)
Answer:
the last one the drawing thingy:)))
If you want to continue working on your web page the next day, what should you do?
a. Create a copy of the file and make changes in that new copy
b. Start over from scratch with a new file
c. Once a file has been saved, you cannot change it
d. Reopen the file in your text editor to
Answer:
d. Reopen the file in your text editor
Answer:
eeeeeeeee
Explanation: