Explanation:
the sentence must be selected
The thing that needs to do in Windows 7 Wordpad before applying a format to a sentence is D. The sentence must be selected.
It should be noted that before one applies a format to a particular sentence in Windows 7 Wordpad, one will have to drag and select the text first with the use of the mouse.When this has been done, then the person can then choose the format and select the desired action such as font. One can also adjust the size or color.It should be noted that the spelling of the sentence isn't necessary to be checked.In conclusion, the correct option is D
Read related link on:
https://brainly.com/question/14697747
If you have an array of 100 sorted elements, and you search for a value that does not exist in the array using a binary search, approximately how many comparisons will have to be done?
a)7
b)100
c)50
Answer:
50
Explanation:
as binary search will search the array by dividing it into two halves till it find the value.
Twenty years ago, most games were sold in brick and mortar stores. How did independent game developers get their games into these stores?
Question 18 options:
by working with a crowdfunding specialist who would give developers funds to offer to retailers if they promised to sell the game
by working with a piracy specialist who would ensure the game was distributed to each and every retailer, regardless of licensing
by working with a retail specialist who distributed video games to consumers
by working with a publisher who would help the developer bring their games to stores and then market them and get as much exposure and traction as possible
Answer: by working with a publisher who would help the developer bring their games to stores and then market them and get as much exposure and traction as possible
Explanation:
Publishers were and are still important in the gaming world even if they have now increasingly moved online. Publishers have a reputation and with this reputation comes access to a wide array of services that enable them to sell games.
This was the same when most stores were brick and mortar. One would sign a deal with a publisher who through their expertise would help the game get to market and give it publicity so that it can be sold.
Question # 2 Multiple Choice The _____ method returns an integer between the two provided numbers. It can take the value of either of the provided numbers. seed randint random range
Answer:
randint
Explanation:
Answer:
randint
Explanation:
ed 2021
-(-13) P binary using signed. 2's complement representation
Perform the arithmetic operations (+42) + (-13) and (-42)
negative .
Consider the balloon
Answer:
00011101
00011101
Explanation:
Given the following arithmetic operations
a) (+42) + (-13)
b) (-42) - (-13)
From (a):
We need to convert +42 into binary, so we get = 00101010
Now for +13, when it is converted into binary, we get = 00001101
But, here, the 13 is negative. So, here is what we will do, we will have to take the two compliment of the binary. After doing that, we get = 111110011
∴
+ 42 → 00101010
- 13 → 1 1 1 10011
+29 000 11101
Thus, the arithmetic operation after we use 2's complement is 00011101
b)
Here both 42 and 13 are negative. Using two complement representation
-42 is first converted to binary as 00101010, Then → 11010101 + 1 = 11010110
-13 is converted to binary as 00001101 → 11110010 = 11110011
In between, a negative sign exists, so we take another 2's complement.
i.e.
11110011 → 00001100 + 1 = 00001101
- 42 → 1 1 01 0110
+13 → 00001 101
-29 1 1 1 00011
since there is no carry, we take two's complements for the result as:
1 1 1 00011 →00011100 + 1 = 00011101
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.
If input is 0 or less, output is 'No Change'
For Example: Input: 45
Output:
1 Quarter
2 Dimes
input_val = int(input())
if input_val <= 0:
print('No change')
else:
num_dollars == input_val // 100
input_val %= 100
num_quarters == input_val // 25
input_val %= 25
num_dimes == input_val // 10
input_val %= 10
num_nickels == input_val // 5
input_val %= 5
num_pennies == input_val
if num_dollars > 1:
print('%d dollars' % num_dollars)
elif num_dollars ==1:
print('%d dollar' % num_dollars)
if num_quarters > 1:
print('%d quarters' % num_quarters)
elif num_quarters ==1:
print('%d quarter' % num_quarters)
if num_dimes >1:
print('%d dimes' % num_dimes)
elif num_dimes ==1:
print('%d dime' % num_dimes)
if num_nickels >1:
print('%d nickels' % num_nickels)
elif num_nickels ==1:
print('%d nickel' % num_nickels)
if num_pennies >1:
print('%d pennies' % num_pennies)
elif num_pennies ==1:
print('%d penny' % num_pennies)
Answer:
b ,/knlk
Explanation:
In this exercise, you will get some practice with the __add__ method by implementing it for a class called ContactBook. This class represents a collection of names and phone numbers. ContactBook stores its information as a dictionary, where the key is a name and the value is a phone number or group of phone numbers. The keys and values in this dictionary are stored as strings. When printed, a ContactBook might look like this:
Answer:
class ContactBook():
def __init__(self):
self.contacts ={}
def __repr__(self):
return str(self.contacts)
def add_contact(self,name,number):
self.contacts[name] = number
def __add__(self, other):
new_contact = ContactBook()
other_contact = other.contacts.keys()
for name,num in self.contacts.items():
if name in other_contact:
new_contact.add_contact(name,num or other_contact[name])
else:
new_contact.add_contact(name,num)
for name,num in other.contacts.items():
if name not in self.contacts:
new_contact.add_contact(name, num)
return new_contact-
cb1 = ContactBook()
cb2 = ContactBook()
cb1.add_contact('Jonathan','444-555-6666')
cb1.add_contact('Puneet','333-555-7777')
cb2.add_contact('Jonathan','222-555-8888')
cb2.add_contact('Lisa','111-555-9999')
print(cb1)
print(cb2)
cb3 = cb1+cb2
print(cb3)
Explanation:
The ContactBook class holds the contact details of an instance of the class. The class has three magic methods the '__repr__', '__init__', and the '__add__' which is the focus of the code. The add magic method in the class adds the contact book (dictionary) of two added object instance and returns a new class with the contact details of both operand instances which is denoted as self and other.