How can we make our programs behave differently each time they are run?

Answers

Answer 1

Answer:

By given the right speech as much as the answers must be

Explanation:

By given the right speech as much as the answers must be


Related Questions

If we ignore the audio data in a video file, a video file is just a collection of many individual frames (i.e., images). What is the main reason that a video file can achieve a much higher compression ratio than a file that contains a single image file?

Answers

Answer:

It is compressing the video file to make it smaller, but doing so without actually losing any quality

Explanation:

The main reason for a video file that can achieve a much higher compression ratio than a file that contains a single image file is that it can reduce the size of the file without affecting its quality.

What is Video compression?

Video compression may be defined as a type of methodology that is significantly utilized in order to decline the size of a video file or alter the formatting of the video without compromising its quality.

The process of compression effectively permits you to reduce the number of storage resources that are needed to store videos and save costs. The importance of video compression includes smaller overall file sizes.

Therefore, the main reason for a video file that can achieve a much higher compression ratio than a file that contains a single image file is that it can reduce the size of the file without affecting its quality.

To learn more about Video compression, refer to the link:

https://brainly.com/question/28078112

#SPJ2

Explain how data is represent in the computer system

Answers

Explanation:

Computers use binary - the digits 0 and 1 - to store data. A binary digit, or bit, is the smallest unit of data in computing. It is represented by a 0 or a 1. Binary numbers are made up of binary digits (bits), eg the binary number 1001.

What are some positive and nevative aspects of technology?

Answers

Answer:

Explanation:

Positive:

Enhances Learning.  

Fosters Problem-Solving Skills.  

Develops Future Technological Leaders

Negative:

Diminishes Relationships and Social Skills

Stimulates Health Issues

Reduces Sleep Quality

Which term is defined by the total operating current of a circuit?

Answers

Answer:

OK PERO NOSE LM SOTTY BROTHER

Explanation:

dy
If x2 - y2 = 1, then
dx
1
(a) yx-1
(C) xy-1
(b) -xy-
(d) - yx​

Answers

Answer:

xy-1

Explanation:

Given expression is :

[tex]x^2-y^2=1[/tex] ..(1)

We need to find the value of [tex]\dfrac{dy}{dx}[/tex].

Differentiating equation (1) wrt x.

[tex]\dfrac{d}{dx}(x^2-y^2)=1\\\\2x-2y\times \dfrac{dy}{dx}=0\\\\2y\times \dfrac{dy}{dx}=2x\\\\y\times \dfrac{dy}{dx}=x\\\\\dfrac{dy}{dx}=\dfrac{x}{y}[/tex]

or

[tex]\dfrac{dy}{dx}=xy^{-1}[/tex]

Hence, the correct option is (c) "xy-1".

Which of the following is a potential concern with having an online profile (1 point)
on your instant messaging service that contains personal information like
your address or favorite hobbies?
A.Your friends may not agree with what you write there.
B.You might misrepresent yourself.
C.You might become a target of users who wish to make inappropriate contact with you.
D.Your personal information might change.

Answers

Answer:

C. You may become a target of users who wish to make inappropriate contact with you.

Explanation:

The information in DNA Is coded in chemical bases adenosine (A) guanine (G) cytosine (C), and thymine (T) We can represent a DNA strand by stringing together the letters representing the appropriate strand. Imagine we are given a list of DNA strands which have arbitrary lengths. Write a single function strand_counter() which takes a list of DNA strands, counts the lengths of each of the words in the list and then calculates and returns the integer maximum_length integer minimum_length, and float average_length
Then write a program which takes in a user-chosen number of strands of arbitrary length as an input and prints out the calculated information
Example input
5
AT
ATCGTCOGGT
TCGCT
TCGATTCCT
TTCATCG
Example output
The longest strand has length 10.
The shortest strand has length 2.
The average length of the strands is 6.6.

Answers

Answer:

c

Explanation:

i think i leard it out my old shcool

how is what happened to fred hampton similar to what is going on in the news today

Answers

Hampton was shot and killed in his bed during a predawn raid at his Chicago apartment by a tactical unit of the Cook County State's Attorney's Office in conjunction with the Chicago Police Department and the FBI; during the raid, Panther Mark Clark was also killed and several others were seriously .

What is
Computer Security

Answers

Answer:

Computer Security is the protection of computer systems and networks from information disclosure, theft of or damage to their hardware, software, or electronic data, as well as from the disruption or misdirection of the services they provide.

Explanation:

Answer:

the protection of computer systems and information from theft

Explanation:

You are given a 5-letter word (for example, abcde). Write a C-Program which outputs all possible unique 5 letter permutations of this word in a text file. There should be no repetition of letters in permutation (i.e. in our example, bacde is a valid permutation but bbcde is invalid. Use of library functions for generation of permutations is NOT allowed.
The text file containing the output should be named as q3out.txt. Each word of the output must be on a separate line in the text file. The 5-letter input word should be read by your program from the console. Provide comments in your code. Submit your C code, and the q3out.txt file for the following inputs:
(a) parba
(b) arbca

Answers

Answer:

See attachment 1 for code

See attachment 2 for the output of permuting letters of parba

See attachment 3 for the output of permuting letters of arbca

Explanation:

The program was implemented in C

The program uses a recursive function letterpermutation and a swap function to successfully implement the requirement of this question.

The letterpermutation function is defined here

void letterpermutation(char *mystring, int index1, int index2) {  

This lets the program writes to a file

  FILE *fptr;

This opens the file in an appending mode

  fptr = fopen("q3out.txt","a");

int i;

This checks for unique strings.

if (index1 == index2) {

If found, this appends the string to the text file

   fprintf(fptr,"%s\n",mystring); }

If otherwise

else{  

This iterates through the string

for (i = index1; i <= index2; i++)   {

The swap function is called to swap the characters of the string

 swap((mystring+index1), (mystring+i));  

This calls the function, recursively

letterpermutation(mystring, index1+1, index2);  

This further swaps the characters of the string

swap((mystring+index1), (mystring+i));  

} } }  

The swap function begins here and what it literally does is that it swaps characters of the input string to create a new string

void swap(char *ch1, char *ch2) {  

char temp;  

temp = *ch1;  *ch1 = *ch2;  *ch2 = temp; }

The main function begins here

int main() {  

This declares and initializes the string

char mystring[] = "ABCd"; // The string here can be changed

This calls the function to permute the string

letterpermutation(mystring, 0, strlen(mystring)-1);  

return 0; }

giving Brianlist (to the correct answers)help plesee question is what is keyboard (long paragraph)​plzz don't spam with unnecessary answers !!!!thankyouuuuuuu:)

Answers

Answer:

Explanation:

A computer keyboard is an input device that allows a person to enter letters, numbers, and other symbols (these are called characters in a keyboard) into a computer. Using a keyboard to enter lots of data is called typing. A keyboard contains many mechanical switches or push-buttons called "keys".

technical processor used in translate of instruction programs into single easy form for the computer to execute​

Answers

Answer: The process of translation instructions expressed in a higher-level language into machine instructions (sometimes translating into Assembly language as an intermediate step) is called compilation, using a tool called a Compiler.

Explanation:

Use the drop-down menus to complete the statements about the recall option in Outlook 2016.

Recalling a message stops its delivery before the recipient
it.

It only works about half the time, and it only works when recipients are in the same
.

Once it is recalled, the
will get a message informing them of the recalled message.

Be sure to check your message before you send it, and assume it will be read within 30
of sending the message.

Answers

Just put your username

Answer:

Recalling a message stops its delivery before the recipient  

opens it.

It only works about half the time, and it only works when recipients are in the same organization

.

Once it is recalled, the recipient will get a message informing them of the recalled message.

Be sure to check your message before you send it, and assume it will be read within 30 seconds of sending the message.

Explanation:

why is GDS important to travel industry?

Answers

Answer:

A Global Distribution System (GDS) is a wonderful tool that properties should use to reach customers easily. This is a central reservation system that allows travel agents to access hotel rates and availability as well as prices for flights, trains and rental car companies in real time.

what is a computer?

Answers

an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

hope this helps

On a roulette wheel, the pockets are numbered from 0 to 36. The colors of the pockets are as follows: Pocket 0 is green. For pockets 1 through 10, the odd-numbered pockets are red and the even-numbered pockets are black. For pockets 11 through 18, the odd-numbered pockets are black and the even-numbered pockets are red. For pockets 19 through 28, the odd-numbered pockets are red and the even-numbered pockets are black. For pockets 29 through 36, the odd-numbered pockets are black and the even-numbered pockets are red. Write a program that asks the user to enter a pocket number and displays whether the pocket is green, red, or black. The program should display an error message if the user enters a number that is outside the range of 0 through 36.

Answers

Answer:

pkt = int(input("Pocket Number: "))

if pkt == 0:

   print("Green")

elif pkt >= 1 and pkt <=10:

   if pkt%2 == 0:

       print("Black")

   else:

       print("Red")

elif pkt >= 11 and pkt <=18:

   if pkt%2 == 0:

       print("Red")

   else:

       print("Black")

elif pkt >= 19 and pkt <=28:

   if pkt%2 == 0:

       print("Black")

   else:

       print("Red")

elif pkt >= 29 and pkt <=36:

   if pkt%2 == 0:

       print("Red")

   else:

       print("Black")

else:

   print("Error")

Explanation:

The program was written in Python and the line by line explanation is as follows;

This prompts user for pocket number

pkt = int(input("Pocket Number: "))

This prints green if the pocket number is 0

if pkt == 0:

   print("Green")

If pocket number is between 1 and 10 (inclusive)

elif pkt >= 1 and pkt <=10:

This prints black if packet number is even

   if pkt%2 == 0:

       print("Black")

Prints red, if otherwise

   else:

       print("Red")

If pocket number is between 11 and 18 (inclusive)

elif pkt >= 11 and pkt <=18:

This prints red if packet number is even

   if pkt%2 == 0:

       print("Red")

Prints black, if otherwise

   else:

       print("Black")

If pocket number is between 19 and 28 (inclusive)

elif pkt >= 19 and pkt <=28:

This prints black if packet number is even

   if pkt%2 == 0:

       print("Black")

Prints red, if otherwise

   else:

       print("Red")

If pocket number is between 29 and 36 (inclusive)

elif pkt >= 29 and pkt <=36:

This prints red if packet number is even

   if pkt%2 == 0:

       print("Red")

Prints black, if otherwise

   else:

       print("Black")

Prints error if input is out of range

else:

   print("Error")

The Merge & Center option is available in the_____________ group of the Home tab.​

Answers

Alignment group of the home tab?? I’m not too sure but I hope this helps!

Stroke weight - ____ of the line around a shape or size of the point

Answers

Explanation: "A stroke is referred to as an outline, or instead, it describes the edges of a shape or a simple line. The stroke height can be modified by changing the settings in an appropriate panel. ... Flash uses the color panel to determine whether that color is for fills or strokes.

Which of the following terms is associated with instant messaging?
A. buddy list
B.subject heading
C.Save As
D.texting

Answers

D.

Texting is associated with instant messaging

Answer: A buddy list is a term that is associated with instant messaging (IM)

Have a wonderful day :D

Explanation:

"We can't a computer use source code

Answers

Answer:

Explanation:

There are two main reasons why you can't access the source code from applications on your computer: It isn't present on your computer. The source code isn't really needed to run the application, the executable is (.exe) The executable is just a bunch of machine code stuff that isn't human readable.

I this is .exe hope it helps

Please Help I'm Very Stressed, my school is holding a competition of making the best video game and the winner gets 1000$ and I really want 1000$, the problem is that I can't make any good games or don't have any ideas for anything the game has to have lore and a plot and characters and it's really stressing so please help me get a idea or something easy enough to make

Answers

Answer:

make a game like fun run

Explanation:

Answer:

u should make an competive game where people battle each other sorry if i cant spell good its cause im rushing

Explanation:

explain the difference between numbered text and outline numbered text in terms of their use.​

Answers

Answer:

With numbered text, the last identifier also conveys how many blocks were in the list. With outline-numbered text, the items are in a well-ordered hierarchy.

I hope this might helps a little bit.

Numbered text refers to a method of numbering in which numbers are placed in front of text such as 1, 2, 3, and so on. Therefore, a simple numbered or bulleted list can be employed in numbered text.

Outline numbered text refers to the numbering that is employed when there is a combination of bullets and numbers, or whether the list is a structured, hierarchical list or an outline. For example, in a legal or structured document, outline numbering assigns sections like 1.1, 1.2, and 1.3, before progressing to 2 (where we will have 2.1. 2.2, and 2.3), etc.

This is for school. The teacher told us to make a song. Here is mine plz be honest and tell me if it is good or not. Plz be honest


So now that we r friends we can all shake hands. I’m glad the bad things r off my mind because I can get back to my grind yeah. So now I feel free can’t you see. Yeah, I’m happy. Yeah, I’m happy yeah. Yeah, I’m happy. Yeah, I’m happy yeah. Now back to the beat while I sit in my seat and get something to eat. Yeah… Uh huh. LET’S GO! So, as I’m walking down the street, I feel free Uh. Don’t play with me yeah. Don’t act like a clown in my hometown. U wana be frowning because I made a touchdown. Maaaaaaaan STOP HATIN. U wana hate go get u a plate. Oh wait... you can’t get a plate. Driving in my car aint going to far. Gona hit the... dance bar! Dance on the floor gona break the door. Alright I’m tired time to go home and play on my phone.

Answers

Answer:

it's funny I honestly like it I guess it just depends on if your teacher has a sense of humor

THE IS REALLY VERY GOOD....

AND ALL THE BEST FOR YOUR SONG....

how are headers and footers are useful in presentation​

Answers

Answer:

Explanation:

PowerPoint is a software that allows user to create headers as well as footers which are information usually appears at the top of the slides and the information that appears at the bottom of all slides. Headers and footers are useful when making presentation in these ways:

✓ Both provide quick information about one's document/ data clearly in a predictable format. The information that is provided by the Header and footers typically consist of ;

©name of the presenters,

©the presentation title

©slide number

©date and others.

✓ They help in setting out different parts of the document.

✓Since the Headers and footers can appear on every slide, corporate confidentiality as well as copyright information can be added to footer area to discourages those that can steal ones secrete.

Which statement in main() generates an error?
public class Players {
public void setName(String newName) { … }
public void setAge(int newAge) { … }
};
public class SoccerPlayers extends Players {
public void setDetails(String newName) { … }
public String getLeague() { … }
};
public static void main(String args[]) {
String leagueName;
Players newPlayers = new Players();
SoccerPlayers playerObject = new SoccerPlayers();
playerObject.setName("Jessica Smith");
playerObject.setAge(21);
leagueName = newPlayers.getLeague(); }
A. SoccerPlayers playerObject=new SoccerPlayers(); An object of a derived class cannot be created.
B. playerObject.setName("Jessica Smith"); setName() is not declared in SoccerPlayers.
C. leagueName=newPlayers.getLeague(); getLeague() is not a member of Players.
D. Players newPlayers=new Players(); An object of a base class cannot be created.

Answers

Answer:

C. leagueName=newPlayers.getLeague(); getLeague() is not a member of Players.

Explanation:

The main method in this code will case an error when trying to run the following line of code...

leagueName=newPlayers.getLeague();

This is because the method getLeague() is being called on a Player object which takes all of its methods from the Player class. Since getLeague() is not a method located in the player class then it cannot be called by an object from that class. Especially since the Player class does not extend to the SoccerPlayers class where the getLeague() method is actually located. Instead, it is the SoccerPlayers class which extends the Players class as its parent class.

Which visual aid best matches each description given?

population clusters within a particular country
✔ map

a cross-section of a cell membrane
✔ line drawing

the changes in cell-phone usage from 2000 to the present
✔ graph

an outline of the order of topics given in the speech
✔ handout

Answers

The changes in cell-phone usage from 2000 to the present

The options given above are all correct about the visual aid that best matches each description given.

What are Visual aids?

These are known to be any kind of thing or an instrument that is often used to portray an item or  one that helps people to know something or to remember something.

Conclusively, population clusters within a particular country can be depicted on a  map as well as the other options are also correct.

Learn more about visual aid from

https://brainly.com/question/3610367

Adding Calculator Write a program that simulates an adding machine. Input to the program will be integers, submitted one per line. Input should be handled as follows: a nonzero value should be added into a subtotal; a zero value should cause the subtotal to be printed and reset to zero; two consecutive zeroes should cause the total (not subtotal) of all the values input to be printed and the program to be terminated. Here’s an example of how the program should work. However, it is only an example. Your program should work for any test case. Input is in red and output is in blue. Your program does not need to display colors, they are show here for illustration only so that you can distinguish input and output.

Answers

The calculator program is an illustration of iteration (loop) and conditional statements

What are iterations?

Iterations are program statements that are used to perform repetition operations

What are conditional statements?

Conditional statements are statements used to make decisions

The main programs

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the subtotal and total to 0

subTotal = 0; total = 0

#This initializes the previous number to an empty list

prevNum = []

#This iteration is repeated for valid inputs

while True:

   #This gets the input from the user

   num = int(input())

   #This calculates the subtotal

   subTotal+=num

   #This calculates the total

   total+=num

   #If the current input is 0

   if num == 0:

       #This prints the sub total

       print("Subtotal:",subTotal)

       #This sets the sub total to 0

       subTotal = 0

   #If the previous number is empty

   if len(prevNum) == 0:

       #This sets it to the current input

       prevNum.append(num)

   #If otherwise

   else:

       #If the previous number and the current input are 0

       if(prevNum[0] == 0 and num == 0):

           #This prints the total input

           print("Total:",total)

           #This exits the loop

           break

       #If otherwise

       else:

           #This sets the previous number to the current input

           prevNum[0] = num

Read more about similar programs at:

https://brainly.com/question/26497128

I need help to pick what programming language is best to make videogames

Answers

Answer:

In my opion its java script

Explanation:

my uh coding teacher would like the class to do little piggy with code.


Write code using def to create functions so that each line is printed in its own function. Turn in a gdb link so I can grade it.


This little pig went to the market.

This little pig stayed home.

This little pig had roast beef.

This little pig had none.

This little pig cried wee wee wee all the way home.


here's a example from him but i don't understand it


import time


def myFunction():

print('In the function called my function')

time.sleep(2)


def yourFunction():

print('In the function called your function')

time.sleep(2)


#*********MAIN**********

print ('In the main part of the program')

time.sleep(2)

myFunction()

print ('Back in the main')

time.sleep(2)

yourFunction()

print ('Back in the main after your function')


please help if you can

Answers

Answer:

see picture below

Explanation:

I added a parameter to factor out the first bit of each sentence into a global variable. If you change for example 'pig' into 'monkey', all sentences will change.

Implement a class named Rectangle. The class should contain:
1. Two data attributes of type float named width and height that specify the width and the height of the rectangle.
2. A constructor that creates a rectangle with the specified width and height. If no argument is provided, it should use 1.0 for both values. If any input value is negative, the function should raise an exception.
3. Functions get_width and get_height that return the corresponding value
4. The set_width and set_height function that update the values if and only if the input is positive; otherwise do nothing
5. Functions get_area and get_perimeter that return the area and the perimeter of this rectangle respectively.
6. A function rotate that swaps the height and width of a rectangle object.
7. A class variable count that keeps track of the number of rectangles created so far.
8. A class method get_count that returns the above value.
9. An equality operator that returns True if and only if the two rectangles are of the same shape.
10. A __str__ function that returns the information of this rectangle in some readable format.

Answers

Answer:

Explanation:

The following code is written in Python and creates a Rectangle class that performs all the necessary functions mentioned in the question...

from itertools import count

class Rectangle():

   _ids = count(0)

   width = 1.0

   height = 1.0

   def __init__(self, width, height):

       if (width < 0) or (height < 0):

           raise Exception("Sorry, no numbers below zero")

       else:

           self.id = next(self._ids)

           self.width = width

           self.height = height

   def get_width(self):

       return self.width

   def get_height(self):

       return self.height

   def set_width(self, width):

       if width > 0:

           self.width = width

   def set_height(self, height):

       if height > 0:

           self.height = height

   def get_area(self):

       return (self.height * self.width)

   def get_perimeter(self):

       return ((self.height * 2) + (self.width * 2))

   def rotate(self):

       temp = self.height

       self.height = self.width

       self.width = temp

   def get_count(self):

       return self._ids

   def equality(self, rectangle1, rectangle2):

       if rectangle1 == rectangle2:

           return True

       else:

           return False

   def __str__(self):

       return 'Rectangle Object with Height: ' + str(self.height) + ' and Width: ' + str(self.width)

Other Questions
Which strategy often works for making new friends? A) Break the ice in an unfamiliar social setting. B) Encourage others to reach goals. C) Change your personality to be more likeable. D) Identify problems and work together. As a reward for good johns parents agreed to pay the same fraction of his auto insurance that he had of A's on his report card. On the next report card John made 5 A's out of 7 grades. His car insurance bill for the grading period was $350. How much did his parents pay? What was life like for Roman teenagers? Given the two triangles shown, find the value of x Costs associated with two alternatives, code-named Q and R, being considered by Albiston Corporation are listed below: Alternative Q Alternative R Supplies costs $ 74,000 $ 74,000 Power costs $ 34,200 $ 33,400 Inspection costs $ 27,000 $ 33,400 Assembly costs $ 39,000 $ 39,000 Required: a. Which costs are relevant and which are not relevant in the choice between these two alternatives please help me on this it is 55 points Since infrared light is not visible, colors were artificially assigned to the photo using the following scheme:Color Photographed Wavelengthblue 1.05 mgreen 1.25 mred 1.60 mIf all the galaxies shown were composed of the same kinds of stars and nebulae, then the reddest galaxies would A. be moving toward us the fastest. B. be moving away fastest. C. be youngest. D. contain the most hydrogen. The following question has two parts. First, answer part A. Then, answer part B.Part A"If you share 7 apples equally with 3 people, then there are 213..."First, complete the sentence. Then, briefly explain what the whole number 2, the denominator 3, and the numerator 1 mean in this problem.Part BThe expression 114 is given. Give a real-life application to explain this expression and then simplify it. Sloths may seem lazy, but their extremely slow movement helps to make them almost invisible to predators. Sloths sleep an average of 16.5 hours a day. What percent of a 24 hour day do they sleep? I need pointers on writing a 250 word essay on the milestone :1784-1800 Constitutional Convention and ratification, 1787-1789 Rick owns a farm, which produces many different crops, including corn. The table shows the relationship between the number of acres, a, and the bushels of corn, c, the farm produces.Which equation models the relationship between the independent and dependent variables?A) a = 45c B) c = 45a C) a = 45 + c D) c = 45 + a Several people of different ages brought things for the party: Charlie, who's 12, brought the POTATO CRISPS. Wayne brought the FIZZY LEMONADE (he's 13). Helen (11) brought the PAPER PLATES, and her brother Peter (9) brought the PAPER CUPS. Sheila is the same age as Charlie: she brought the PARTY POPPERS. Horace brought the PEANUTS: how old is he? GIVING BRAINIEST IF RIGHT!! ANSWER FAST PLEASEThe table below shows the distance covered by a train over time.Do the numbers in the table represent a proportional relationship? Why or why not?A. No, because the ratios simplify to the same number.B. Yes, because the ratios simplify to the same number.C. No, because the ratios don't simplify to the same number.D. Yes, because the ratios don't simplify to the same number. someone plz help me. which word has a similar denotation to the word thrifty but a more negative connotation?a. economicalb. stingyc. cost-consciousd. prudent What elements are needed to carry out photosynthesis? Select all that apply. the sum of twice C and 10 Reread lines 93-105. According to Miller, what effect does social disorder have on the people of Salem? answer The people on Salem that the social disorder come from deep and darkling forces 43 is a number between 6 and 77 and 8 21 and 2284 and 88 In TUV, the measure of V=90, the measure of U=70, and UV = 9.6 feet. Find the length of TU to the nearest tenth of a foot.