Answer:
import random
computer = random.randint(0, 2)
user = int(input("scissor (0), rock (1), paper (2): "))
if computer == 0:
if user == 0:
print("The computer is scissor. You are scissor too. It is a draw")
elif user == 1:
print("The computer is scissor. You are rock. You won")
elif user == 2:
print("The computer is scissor. You are paper. Computer won")
elif computer == 1:
if user == 0:
print("The computer is rock. You are scissor. Computer won")
elif user == 1:
print("The computer is rock. You are rock too. It is a draw")
elif user == 2:
print("The computer is rock. You are paper. You won")
elif computer == 2:
if user == 0:
print("The computer is paper. You are scissor. You won")
elif user == 1:
print("The computer is paper. You are rock. Computer won")
elif user == 2:
print("The computer is paper. You are paper too. It is a draw")
Explanation:
*The code is in Python.
Import the random to be able to generate number number
Generate a random number between 0 and 2 (inclusive) using randint() method and set it to the computer variable
Ask the user to enter a number and set it to the user variable
Check the value of computer the computer variable:
If it is 0, check the value of user variable. If user is 0, it is a draw. If user is 1, user wins. If user is 2, computer wins
If it is 1, check the value of user variable. If user is 0, computer wins. If user is 1, it is a draw. If user is 2, user wins
If it is 2, check the value of user variable. If user is 0, user wins. If user is 1, computer wins. If user is 2, it is a draw
Implement the method countInitial which accepts as parameters an ArrayList of Strings and a letter, stored in a String. (Precondition: the String letter has only one character. You do not need to check for this.) The method should return the number of Strings in the input ArrayList that start with the given letter. Your implementation should ignore the case of the Strings in the ArrayList. Hint - the algorithm to implement this method is just a modified version of the linear search algorithm. Use the runner class to test your method but do not add a main method to your U7_L4_Activity_One.java file or your code will not be scored correctly.
Answer:
Answered below
Explanation:
//Program is implemented in Java
public int countInitials(ArrayList<string> words, char letter){
int count = 0;
int i;
for(i = 0; i < words.length; i++){
if ( words[i][0]) == letter){
count++
}
}
return count;
}
//Test class
Class Test{
public static void main (String args[]){
ArrayList<string> words = new ArrayList<string>()
words.add("boy");
words.add("bell");
words.add("cat");
char letter = 'y';
int numWords = countInitials ( words, letter);
System.out.print(numWords);
}
}
developed the first compiler and conducted work that led to the development of COBOL ?
Answer:
Grace Hopper.
Explanation:
Grace Hopper was a US Naval Rear Admiral and an American computer scientist who was born on the 9th of December, 1906 in New York city, United States of America. She worked on the first commercial computer known as universal automatic computer (UNIVAC), after the second World War II.
In 1953 at the Remington Rand, Grace Hopper invented the first high-level programming language for UNIVAC 1 by using words and expressions.
Additionally, the high-level programming language known as FLOW-MATIC that she invented in 1953 paved the way for the development of common business-oriented language (COBOL).
Hence, Grace Hopper developed the first compiler and conducted work that led to the development of COBOL.
let m be a positive integer with n bit binary representation an-1 an-2 ... a1a0 with an-1=1 what are the smallest and largest values that m could have
Answer:
Explanation:
From the given information:
[tex]a_{n-1} , a_{n-2}...a_o[/tex] in binary is:
[tex]a_{n-1}\times 2^{n-1} + a_{n-2}}\times 2^{n-2}+ ...+a_o[/tex]
So, the largest number posses all [tex]a_{n-1} , a_{n-2}...a_o[/tex] nonzero, however, the smallest number has [tex]a_{n-2} , a_{n-3}...a_o[/tex] all zero.
∴
The largest = 11111. . .1 in n times and the smallest = 1000. . .0 in n -1 times
i.e.
[tex](11111111...1)_2 = ( 1 \times 2^{n-1} + 1\times 2^{n-2} + ... + 1 )_{10}[/tex]
[tex]= \dfrac{1(2^n-1)}{2-1}[/tex]
[tex]\mathbf{=2^n -1}[/tex]
[tex](1000...0)_2 = (1 \times 2^{n-1} + 0 \times 2^{n-2} + 0 \times 2^{n-3} + ... + 0)_{10}[/tex]
[tex]\mathbf {= 2 ^{n-1}}[/tex]
Hence, the smallest value is [tex]\mathbf{2^{n-1}}[/tex] and the largest value is [tex]\mathbf{2^{n}-1}[/tex]
Last one, this is fashion marketing and I need to know the answer to get the 80%
Answer:
D. It requires that each item of stock is counted and recorded to determine stock levels
Explanation:
A perpetual system of inventory can be defined as a method of financial accounting, which involves the updating informations about an inventory on a continuous basis (in real-time) as the sales or purchases are being made by the customers, through the use of enterprise management software applications and a digitized point-of-sale (POS) equipment.
Under a perpetual system of inventory, updates of the journal entry for cost of goods sold or received would include debiting accounts receivable and crediting sales immediately as it is being made or happening.
Hence, an advantage of the perpetual system of inventory over the periodic system of inventory is that, it ensures the inventory account balance is always accurate provided there are no spoilage, theft etc.
The following are the characteristic of a perpetual inventory system;
I. It is the most popular choice for modern business.
II. Inventory is updated in near real-time.
III. It provides up-to-date balance information and requires fewer physical counts.
Approximately how many numeric IP addresses are possible with IPv4?
4 billon
Answer:
4,294,967,296 (~4.3B)
Explanation:
IPv4 uses 32-bits for representing addresses, thus you can have 2^32 total combinations.
Please help! I don’t know the answer to it :( it’s Fashion marketing
Answer:
I believe the answer should be C)
Sorry if it’s wrong,but hope it helps
What is the difference of using Selection Tool and Direct Selection Tool?
Answer:
The Selection tool will always select the object as a whole. Use this tool when you want to manipulate the entire object. The Direct Selection tool will always select the points or segments that make up a frame
Explanation:
Green Fields Landscaping Company sells evergreen trees which are priced by height. Customers have a choice of purchasing a tree and taking it home with them or purchasing a tree and having it delivered. Write a program that asks the user the number of trees purchased, the height of the trees, and if they want the trees delivered. Based on that information the program should then generate an invoice. Assume that ALL the trees purchased by a customer are the same height.
Answer:
Answered below
Explanation:
//Program is written in Python programming //language.
number_of_trees = int(input ("Enter number of trees purchased: "))
height_of_trees = float(input("Enter height of trees: "))
delivery_status = input("Do you want trees delivered? enter yes or no ")
price_of_two_meters = 20
total_price = number_of_trees * price_of_two_meters
//Invoice
print (number_of_trees)
print(height_of_trees)
print (total_price)
print (delivery_status)
A state university locks in costs for a student once a student starts attending the university. The total cost is $24,500. A student has the following help in covering the costs of school.
An academic scholarship of $10,700.
Other scholarships and grants of $5,000.
Relatives pay $1,600.
What is the amount that the student will need to save every month in order to pay off the remaining costs in 10 months?
$500
$550
$600
$720
Answer:
720
Explanation:
instructions and programs data are stored in the same memory in which concept
Answer:
The term Stored Program Control Concept refers to the storage of instructions in computer memory to enable it to perform a variety of tasks in sequence or intermittently.
In CengageNOWv2, you may move, re-size, and rearrange panels in those assignments that use multiple panels.
Answer:
true
Explanation:
trust me lol, I promise it's correct.
When importing data using the Get External Data tools on the Data tab, what wizard is automatically
started after selecting the file you want, to help import the data?
Text Import Wizard
Excel Data Wizard
Import Wizard
Text Wrap Wizard
Answer: text import wizard
Explanation:
Write a program that will perform a few different String operations. The program must prompt for a name, and then tell the user how many letters are in the name, what the first letter of the name is, and what the last letter of the name is. It should then end with a goodbye message. A sample transcript of what your program should do is below:
Enter your name: Jeremy
Hello Jeremy!
Your name is 6 letters long.
Your name starts with a J.
Your name ends with a y.
Goodbye!
Answer:
Follows are the code to this question:
import java.util.*;//import package for user input
public class Main//defining a class Main
{
public static void main(String[] asp)//main method
{
String n;//defining String variable
Scanner oxr=new Scanner(System.in);//creating Scanner class Object
System.out.print("Enter your name: ");//print message
n=oxr.next();//input value
System.out.println("Hello "+n+"!");//print message with value
System.out.println("Your name is "+n.length()+" letters long.");//print message with value
System.out.println("Your name starts with a "+n.charAt(0)+".");//print message with value
System.out.println("Your name ends with a "+n.charAt(n.length()-1)+".");//print message with value
System.out.print("Goodbye!");//print message
}
}
Output:
Please find the attached file.
Explanation:
In the above-given code, A string variable "n" is declared, that uses the Scanner class object for input the value from the user-end.
In the next step, the multiple print method has used, which calculates the length, first and the last latter of the string value, and uses the print method to print the calculated value with the given message.
PLEASE HELP
Which of the following best describes the existence of undecidable problems?
Answer:
D.
Explanation:
Its the exact definition of an undecidable problem. Plus I have my notebook open next to me and that's what it says, trust bro.
An undecidable problem is a problem for which no algorithm can be constructed that always produces a correct output. The correct option is D.
What is undecidable problem?Problems that cannot be solved by an algorithm are known as undecidable problems since no computer program can come up with a solution that works for every scenario.
This is a key drawback of computing systems, and it has been analytically shown that some issues are intractable from the start.
Decision issues that lack an algorithmic solution are referred to as undecidable.
A issue that cannot be solved by a computer or computer software of any type has never been solved by a computer. There is no such thing as a Turing machine that can solve an insoluble problem.
Thus, the correct option is D.
For more details regarding undecidable problems, visit:
https://brainly.com/question/30187947
#SPJ6
You've created a new programming language, and now you've decided to add hashmap support to it. Actually you are quite disappointed that in common programming languages it's impossible to add a number to all hashmap keys, or all its values. So you've decided to take matters into your own hands and implement your own hashmap in your new language that has the following operations:
insert x y - insert an object with key x and value y.
get x - return the value of an object with key x.
addToKey x - add x to all keys in map.
addToValue y - add y to all values in map.
To test out your new hashmap, you have a list of queries in the form of two arrays: queryTypes contains the names of the methods to be called (eg: insert, get, etc), and queries contains the arguments for those methods (the x and y values).
Your task is to implement this hashmap, apply the given queries, and to find the sum of all the results for get operations.
Example
For queryType = ["insert", "insert", "addToValue", "addToKey", "get"] and query = [[1, 2], [2, 3], [2], [1], [3]], the output should be hashMap(queryType, query) = 5.
The hashmap looks like this after each query:
1 query: {1: 2}
2 query: {1: 2, 2: 3}
3 query: {1: 4, 2: 5}
4 query: {2: 4, 3: 5}
5 query: answer is 5
The result of the last get query for 3 is 5 in the resulting hashmap.
For queryType = ["insert", "addToValue", "get", "insert", "addToKey", "addToValue", "get"] and query = [[1, 2], [2], [1], [2, 3], [1], [-1], [3]], the output should be hashMap(queryType, query) = 6.
The hashmap looks like this after each query:
1 query: {1: 2}
2 query: {1: 4}
3 query: answer is 4
4 query: {1: 4, 2: 3}
5 query: {2: 4, 3: 3}
6 query: {2: 3, 3: 2}
7 query: answer is 2
The sum of the results for all the get queries is equal to 4 + 2 = 6.
Input/Output
[execution time limit] 4 seconds (py3)
[input] array.string queryType
Array of query types. It is guaranteed that each queryType[i] is either "addToKey", "addToValue", "get", or "insert".
Guaranteed constraints:
1 ≤ queryType.length ≤ 105.
[input] array.array.integer query
Array of queries, where each query is represented either by two numbers for insert query or by one number for other queries. It is guaranteed that during all queries all keys and values are in the range [-109, 109].
Guaranteed constraints:
query.length = queryType.length,
1 ≤ query[i].length ≤ 2.
[output] integer64
The sum of the results for all get queries.
[Python3] Syntax Tips
# Prints help message to the console
# Returns a string
def helloWorld(name):
print("This prints to the console when you Run Tests")
return "Hello, " + name
Answer:
Attached please find my solution in JAVA
Explanation:
long hashMap(String[] queryType, int[][] query) {
long sum = 0;
Integer currKey = 0;
Integer currValue = 0;
Map<Integer, Integer> values = new HashMap<>();
for (int i = 0; i < queryType.length; i++) {
String currQuery = queryType[i];
switch (currQuery) {
case "insert":
HashMap<Integer, Integer> copiedValues = new HashMap<>();
if (currKey != 0 || currValue != 0) {
Set<Integer> keys = values.keySet();
for (Integer key : keys) {
copiedValues.put(key + currKey, values.get(key) + currValue);
}
values.clear();
values.putAll(copiedValues);
currValue = 0;
currKey = 0;
}
values.put(query[i][0], query[i][1]);
break;
case "addToValue":
currValue += values.isEmpty() ? 0 : query[i][0];
break;
case "addToKey":
currKey += values.isEmpty() ? 0 : query[i][0];
break;
case "get":
copiedValues = new HashMap<>();
if (currKey != 0 || currValue != 0) {
Set<Integer> keys = values.keySet();
for (Integer key : keys) {
copiedValues.put(key + currKey, values.get(key) + currValue);
}
values.clear();
values.putAll(copiedValues);
currValue = 0;
currKey = 0;
}
sum += values.get(query[i][0]);
}
}
return sum;
}
If you are writing an algorithm and you aren’t confident that you understand the problem, what can you do?
Answer:
divide it into smaller pieces
Explanation:
Usually, the main reason a programmer does not understand a problem fully is that there is too much information. The best way to try and fully understand a problem is to divide it into smaller pieces. Start off by answering the question what is the expected output for an input. Then divide each individual issue within the problem. This will allow you as a programmer/developer to create an individual solution for each individual issue within the problem and then test to make sure that the input gives the correct output.
Which is true regarding how methods work? Group of answer choices If a method returns a variable, the method stores the variable's value until the method is called again A return address indicates the value returned by the method After a method returns, its local variables keep their values, which serve as their initial values the next time the method is called A method's local variables are discarded upon a method's return; each new call creates new local variables in memory
Answer:
A method's local variables are discarded upon a method's return; each new call creates new local variables in memory.
Explanation:
A local variable can be defined as an argument passed to a function or a variable that is declared within a function and as such can only be used or accessed within the function.
This ultimately implies that, a local variable is effective whilst the function or block is being executed (active).
Basically, all local variables can only be a member of either the register storage, static or auto (dynamic) categories in computer programming.
The true statement regarding how methods work is that a method's local variables are discarded upon a method's return; each new call creates new local variables in memory. This is so because these local variables are only allocated a storage that is within the frame of the method which is being executed on the run-time stack and would be discarded upon a method's completion or return.
Statement that is true regarding how methods work is :A method's local variables are discarded upon a method's return; each new call creates new local variables in memory.
A local variable serves as a variable which can be accessible within a particular part of a program.
These variables are usually defined within that routine and it is regarded as been local to a subroutine.
We can conclude that in method's local variables it is possible for each new call creates new local variables in memory.
Learn more about method's local variables at:
https://brainly.com/question/19025168
Drag the tiles to the correct boxes to complete the pairs.
Match each type of database to its application
Multistage
Stationary
Distributed
Virtual
used for concise as well as detailed
historical data
arrowRight
used where access to data is rare
arrowRight
used for accessing data in diverse
applications using middleware
arrowRight
used by an organization that runs
several businesses
arrowRight
Answer:
1. Multistage database.
2. Stationary database.
3. Virtual database.
4. Distributed database.
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
There are four (4) major types of database in a data warehouse and these are;
1. Multistage database: used for concise as well as detailed historical data. It provides summarized data which can be used by an employee for short-term decision making.
2. Stationary database: used where access to data is rare i.e business firms who do not access data frequently. In order to use this database, the users must have an access to metadata store and thus, directly having access to the data on a source system.
3. Virtual database: used for accessing data in diverse applications using middleware. This type of database is dependent on having access to information on various databases.
4. Distributed database: used by an organization that runs several businesses. Therefore, this type of database are usually located or situated in various geographical regions.
Which statement is most likely to be true about a computer network?
Answer:
the answer is b
Explanation:
hope this helps
Answer:
A network can have several client computers and only one server.
Explanation:
(Confirmed on Edge)
I hope this helped!
Good luck <3
Python (and most programming languages) start counting with 0.
True
False
Answer:
yes its true :)
Explanation:
Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and suit (Clubs, Diamonds, Hearts, Spades) of the card using python
Answer:
Explanation:
The following is a python function that has arrays with all the cards available and then uses random to choose a random card from the dictionary. Finally it prints out the card chosen...
import random
def choose_card():
card = ["Ace", 2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King']
symbols = ['Clubs', 'Diamonds', 'Hearts', 'Spades']
chosen_card = str(card[random.randint(0, len(card))])
symbols = symbols[random.randint(0, len(symbols))]
print("Chosen Card: " + chosen_card + " of " + symbols)
Write a program that reads in the text file attached, converts all words to lowercase, and prints out all words in the file that begin with that key letter a, the letter b, and so on. Build a dictionary whose keys are the lowercase letters, and whose values are sets of words which begin with that key letter. After processing the data, print the dictionary to the screen in alphabetical order aligned in two fixed sized columns. Such as:
Answer:
Follows are the code to this question:
def dic_sorted(data):#defining a method print_dic_sorted
s = data.split()#defining a variable that use split method
d = {} #defining a dictionary
alpha = '0123456789abcdefghijklmnopqrstuvwxyz' #defining a variable alpha that hold english alphabets values
for k in alpha:#defining for loop that stores values in the dictionary
d[k]= set()# use dictionary to set value in list
for i in s:# defining for loop to convert value in lower case
i = i.lower() #convert value into lower case by using lower method
a = i[0]# adding value into dictionary
d[a].add(i) # use add method to hold value in dictionary
for k,v in sorted(d.items()):#use for loop to convert value in assending order
if len(d[k])!=0: #use if block to check length of dictionary
print(k,":", sorted(v))#use print to sort value
f_name = 'input.txt'#defining a variable that open file
with open(f_name) as fi:#use open method to read file
data = fi.read() # read file data
dic_sorted(data)#calling method
output:
please find the attached file.
Explanation:
In the code, the "dic_sorted" method is used, which accepts a data variable as a parameter, and inside the method, a split method and an empty dictionary are defined, that converts and holds the value by alphabetical order, for this it defines three for loops.
In the first for loop, it holds a value in the dictionary, and in the second loop it converts a value into the lower case, and in the third loop, it stores the value in its alphabetical order.
Consider the following code segment. int[][] arr = {{3, 2, 1}, {4, 3, 5}}; for (int row = 0; row < arr.length; row++) { for (int col = 0; col < arr[row].length; col++) { if (col > 0) { if (arr[row][col] >= arr[row][col - 1]) { System.out.println("Condition one"); } } if (arr[row][col] % 2 == 0) { System.out.println("Condition two"); } } } As a result of executing the code segment, how many times are "Condition one" and "Condition two" printed?
Answer:
Condition one - 1 time
Condition two - 2 times
Explanation:
Given
The above code segment
Required
Determine the number of times each print statement is executed
For condition one:
The if condition required to print the statement is: if (arr[row][col] >= arr[row][col - 1])
For the given data array, this condition is true only once, when
[tex]row = 1[/tex] and [tex]col = 2[/tex]
i.e.
if(arr[row][col] >= arr[row][col - 1])
=> arr[1][2] >= arr[1][2 - 1]
=> arr[1][2] >= arr[1][1]
=> 5 >= 3 ---- True
The statement is false for other elements of the array
Hence, Condition one is printed once
For condition two:
The if condition required to print the statement is: if (arr[row][col] % 2 == 0)
The condition checks if the array element is divisible by 2.
For the given data array, this condition is true only two times, when
[tex]row = 0[/tex] and [tex]col = 1[/tex]
[tex]row = 1[/tex] and [tex]col = 0[/tex]
i.e.
if (arr[row][col] % 2 == 0)
When [tex]row = 0[/tex] and [tex]col = 1[/tex]
=>arr[0][1] % 2 == 0
=>2 % 2 == 0 --- True
When [tex]row = 1[/tex] and [tex]col = 0[/tex]
=>arr[1][0] % 2 == 0
=> 4 % 2 == 0 --- True
The statement is false for other elements of the array
Hence, Condition two is printed twice
Given that the variable named Boy = "Joey" and the variable named Age = 6, create statements that will output the following message:
Congratulations, Joey! Today you are 6 years old.
First, write one statement that will use a variable named Message to store the message. (You will need to concatenate all of the strings and variables together into the one variable named Message. If you don't know what that means, read the section in Chapter 1 about concatenation.)
Then write a second statement that will simply output the Message variable.
Answer:
isn't it already showing it if not put text box
Explanation:
The first and second numbers in the Fibonacci sequence are both 1. After that, each subsequent number is the sum of the two preceding numbers. The first several numbers in the sequence are: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, etc. Write a function named fib that takes a positive integer parameter and returns the number at that position of the Fibonacci sequence. For example fib(1)
Answer:
In Python:
def fib(nterms):
n1, n2 = 1, 1
count = 0
while count < nterms:
term = n1
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
return term
Explanation:
This line defines the function
def fib(nterms):
This line initializes the first and second terms to 1
n1, n2 = 1, 1
This line initializes the Fibonacci count to 0
count = 0
The following while loops gets the number at the position of nterms
while count < nterms:
term = n1
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
This returns the Fibonnaci term
return term
A LAN Uses category 6 cabling. An issue with the connection results in network link to get degeneration and Only one device can communicate at a time. What is the connection operating at?
Half duplex
Simplex
Partial
Full Duplex
Answer:
partial
Explanation:
A structure that organizes data in a list that is commonly 1-dimensional or 2-
dimensional
Linear Section
Constant
No answertet provided
It intro technology
Answer:
An array.
Explanation:
An array can be defined as a structure that organizes data in a list that is commonly 1-dimensional or 2-dimensional.
Simply stated, an array refers to a set of memory locations (data structure) that comprises of a group of elements with each memory location sharing the same name. Therefore, the elements contained in array are all of the same data type e.g strings or integers.
Basically, in computer programming, arrays are typically used by software developers to organize data, in order to search or sort them.
Binary search is an efficient algorithm used to find an item from a sorted list of items by using the run-time complexity of Ο(log n), where n is total number of elements. Binary search applies the principles of divide and conquer.
In order to do a binary search on an array, the array must first be sorted in an ascending order.
Hence, array elements are mainly stored in contiguous memory locations on computer.
what is a computer modem?
Answer:
A modem modulates and demodulates electrical signals sent through phone lines, coaxial cables, or other types of wiring.
Write a lottery program that will ask the user if they would like to pick 5 numbers (1-30) or if they would like to choose EZ Pick where the computer randomly picks their 5 numbers at a cost of $1.00. Then you will give them a chance to also play the Next Chance drawing for an extra $1.00. They do not choose additional numbers for the Next Chance drawing. Once they have all of their selections complete, have the computer game generate the five random winning numbers and if they opted for the Next Chance drawing, select 4 more random numbers. Display all of the users numbers, all of the winning numbers, and display how much, if any, that the player has won based on the following information:
Answer:
Explanation:
The following code is written in Python and creates arrays for the user's numbers and the next chance numbers, it also creates a cost variable and a did_you_win variable. The function takes in the winning numbers as an array parameter. It asks all the necessary questions to generate data for all the variables and then compares the user's numbers to the winning numbers in order to detect if the user has won. Finally, it prints all the necessary information.
import random
def lottery(winning_numbers):
user_numbers = []
next_chance_drawing = []
cost = 0
did_you_win = "No"
#print("Would you like to choose your own 5 numbers? Y or N")
answer = input("Would you like to choose your own 5 numbers? Y or N: ")
if answer.capitalize() == "Y":
for x in range(5):
user_numbers.append(input("Enter number " + str(x+1) + ": "))
else:
for x in range(5):
user_numbers.append(random.randint(0,31))
cost += 1
next_chance = input("Would you like to enter a Next Chance drawing for $1.00? Y or N: ")
if next_chance.capitalize() == "Y":
for x in range(4):
next_chance_drawing.append(random.randint(0, 31))
cost += 1
if user_numbers == winning_numbers or next_chance_drawing == winning_numbers:
did_you_win = "Yes"
print("User Numbers: " + str(user_numbers))
print("Next Chance Numbers: " + str(next_chance_drawing))
print("Cost: $" + str(cost))
print("Did you win: " + did_you_win)
5. All sites are required to have the following reference materials available for use at VITA/TCE sites in paper or electronic format: Publication 17, Publication 4012, Volunteer Tax Alerts (VTA), and Quality Site Requirement Alerts (QSRA). AARP Foundation Tax Aide uses CyberTax Alerts in lieu of VTAs and QSRAs. What other publication must be available at each site and contains information about the new security requirements at sites
Answer:
Publication 5140.
Explanation:
The acronym VITA stands for Volunteer Income Tax Assistance and TCE stands for Tax Counseling for the Elderly. VITA/TCE is a certification gotten from the Internal Revenue Service in which the holders of such certification are trained on how to help people that have disabilities or that their incomes earners that are low. These volunteers help these set of people to prepare for their tax return.
In order to make the volunteers to be able to perform their work with high accuracy, the Department of Treasury, Internal Revenue Service gave out some aids for Quality Site. One of the aids which is the one contains information about the new security requirements at sites is given in the Publication 5140.