Answer:
D. if else inside a for loop
Explanation:
A program that will ring a bell six times is what kind of program?
A. Edited
B. Iterative
C. Selection
D. Sequence
Answer:
D
Explanation:
because it is a sequence it does more than one thing
Answer:
B
Explanation:
I took the test
Which elements of text can be changed using automatic formatting? Check all that apply.
A) smart quotes
B) accidental usage of the Caps Lock key
C) fractions
D) the zoom percentage
E) the addition of special characters
Answer:a, d, e
Explanation:
program a macro on excel with the values: c=0 is equivalent to A=0 but if b is different from C , A takes these values
The followng program is capable or configuring a macro in excel
Sub MacroExample()
Dim A As Integer
Dim B As Integer
Dim C As Integer
' Set initial values
C = 0
A = 0
' Check if B is different from C
If B <> C Then
' Assign values to A
A = B
End If
' Display the values of A and C in the immediate window
Debug.Print "A = " & A
Debug.Print "C = " & C
End Sub
How does this work ?In this macro, we declare three integer variables: A, B, and C. We set the initial value of C to 0 and A to 0.Then, we check if B is different from C using the <> operator.
If B is indeed different from C, we assign the value of B to A. Finally, the values of A and C are displayed in the immediate window using the Debug.Print statements.
Learn more about Excel:
https://brainly.com/question/24749457
#SPJ1
Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a single line separated by a space
The coding for completing the program is by using two words and a number, storing each into separate variables.
What are variables?In coding or any computer language like python, the variables are the things that are taken in the subject.
def userdetails():
words = input("Enter a word: ")
word2 = input("Enter a word: ")
numm = input("Enter a number: ")
pw1 = words+"_"+word2
pw2 = numm+words+numm
print("You entered: {} {} {}" .format(words,word2,numm))
print("First password:",pw1)
print("Second password:",pw2)
print("Number of characters in",pw1,":",len(pw1))
print("Number of characters in",pw2,":",len(pw2))
Thus, the code for given words and numbers is given above.
To learn more about variables, refer to the below link:
https://brainly.com/question/14679709
#SPJ1
would someone know how to write this in python and make sure it works.
The program written in Python programming language that performs the required computations is:
def calculate(data):
for item in data:
print(item, end = ' ')
print()
for item in data:
print(item, ' ', (item**2))
total = 0
for item in data:
total += item
print("The total of the values is",total)
total = 1
for item in data:
total *= item
print("The product of the values is",total)
data1 = [12, 10, 32, 3, 66, 17, 42, 99, 20]; data2 = [14, 7, -12, 88, -17, 22, -5, 18]
calculate(data1); calculate(data2)
How to write the program in Python programming language?The program written in Python programming language, where comments are used to explain each line is as follows:
#This defines the calculate function
def calculate(data):
#This iterates through the list
for item in data:
#This prints the list elements
print(item, end = ' ')
#This prints a new line
print()
#This iterates through the list
for item in data:
#This prints the list elements and the squares
print(item, ' ', (item**2))
#This initializes the total to 0
total = 0
#This iterates through the list
for item in data:
#This calculates the total
total += item
#This prints the total
print("The total of the values is",total)
#This initializes the product to 1
total = 1
#This iterates through the list
for item in data:
#This calculates the products
total *= item
#This prints the products
print("The product of the values is",total)
#This initializes data1 and data2
data1 = [12, 10, 32, 3, 66, 17, 42, 99, 20]; data2 = [14, 7, -12, 88, -17, 22, -5, 18]
#This calls the function for data1 and data2
calculate(data1); calculate(data2)
Read more about python programs at
https://brainly.com/question/26497128
#SPJ1
Why should we apply print preview before printing the document.
to helps them to see how the final printed material will appear.
Which of the following statements about mentors is true?
A. Most companies do not support mentoring programs.
B. Mentors rarely provide real-life and practical advice.
C. Mentors are an excellent way to learn on the job.
D. Leaders in high positions rarely have time to be mentors.
Recall your technology experience in the workplace or at home. When adopting a new technology, what specific problems were you or your employer trying to resolve?
Describe your biggest challenge in adopting new technologies based on your experience.
Share how you or your employer overcame these issues.
Answer:
Use of technology helps solve issues like file management, receipt tracking, report generation and growth tracking that often hamper employee productivity. Modern workplaces extensively rely on computer-aided tools for efficiency. These tools help cut down both the time and money needed for getting the job done.
How do you implement new technology in the workplace?
To help you streamline the process, here are steps for integrating new technology into your organization:
Identify Your Organization's Needs.
Investigate Technologies That Will Solve Problems for Your Organization.
Develop a Plan for Implementing Your New Technology.
Train Other Employees in Using the New Technology
Jeremy has created a snippet of JavaScript. Which event handlers will he use to invoke JavaScript from his HTML form?
onClick
SelectedIndex
onCheck
onSubmit
inputText
Answer:
One of them is OnClick, but there are more.
Explanation:
I took my post test and only clicked OnClick and I missed this one and it says "not all correct answers chosen"
Answer:
The TWO correct answers are:
onClick
onSubmit
Python question
The following code achieves the task of adding commas and apostrophes, therefore splitting names in the list. However, in the case where both first and last names are given how would I "tell"/write a code that understands the last name and doesn't split them both. For example 'Jack Hansen' as a whole, rather than 'Jack' 'Hansen'.
names = "Jack Tomas Ponce Ana Mike Jenny"
newList = list(map(str, names.split()))
print(newList) #now the new list has comma, and apostrophe
Answer:
You can use regular expressions to match patterns in the names and split them accordingly. One way to do this is to use the re.split() function, which allows you to split a string based on a regular expression.
For example, you can use the regular expression (?<=[A-Z])\s(?=[A-Z]) to match a space between two capital letters, indicating a first and last name. Then use the re.split() function to split the names based on this regular expression.
Here is an example of how you can use this approach to split the names in your list:
(Picture attached)
This will give you the output ['Jack', 'Tomas', 'Ponce', 'Ana', 'Mike', 'Jenny', 'Jack Hansen']. As you can see, the name "Jack Hansen" is not split, as it matches the pattern of first and last name.
It's worth noting that this approach assumes that all first and last names will have the first letter capitalized and the last names capitalized too. If this is not the case in your data, you may need to adjust the regular expression accordingly.
Your computer freezes up on a regular basis. You have checked your hard drive and you have sufficient space. You have not installed any software that could cause disruption. You have recently added more RAM so you realize that you have enough memory and that isn’t causing the problem. Which of the following should you check next?
Attendees who are also board members receive a discount off the registration fees. The discount amount varies based on the type of event. In cell J11 enter a formula that will return the discount amount if the registrant is a board member and return a blank value ("") if they are not.
Use a VLOOKUP function to retrieve the EventType from the EventDetails named range.
Use an INDEX function, with the cell range A5:B8 on the ClientRegistration worksheet as the array and the result of the VLOOKUP as the lookup_value for the MATCH function needed for the row_num argument.
Use an IF function so that the discount only applies to board members and all others will display as a blank ("")
Format the result as Percentage with 0 decimal places.
Copy the formula down through J34.
Initially, the formula verifies whether or not the attendee is a board member using the COUNTIF function.
How to explain the informationThis counts how many times their name appears in the "BoardMembers" named range. If the count exceeds zero, then the VLOOKUP operator within the formula retrieves the EventType of the current attendee from the "EventDetails" named range.
Then, via usage of the MATCH and INDEX functions, the formula identifies the matching row number in the registration worksheet for the retrieved EventType. The identified row number will be positioned as an argument (row_num) for the INDEX formula. As it executes, the INDEX formula can retrieve the relevant discount percentage value from column B.
Finally, by executing multiplication between the extracted discount percentage and 0.1 (as this expresses the respective reduction), the newly achieved outcome -a properly formatted percentage with no decimal points is returned by the original formula.
Learn more about formula on
https://brainly.com/question/657646
#SPJ1
Design a flowchart and code for a program that tabulates contributions collected by an organization. The organization wishes to accept contributions until a total of $10,000,000 is met. Once this total is hit, no further contributions should be accepted.
The organization wants the program to read data from an input file (input.in). The following data should be written to a file called results.out
a.The total number of contributions needed to meet the goal of 10 million dollars
b.The amount of the largest and smallest contribution accepted
c.The average contribution size
d.The final total of the contributions accepted
In this exercise we have to use the knowledge of computational language in JAVA to write a code that Design a flowchart and code for a program that tabulates contributions collected by an organization.
Writting the code:import java.io.*;
import java.util.Random;
import java.util.Scanner;
class Contribution {
public static void main(String[] args) {
String fileInput = "contributions.txt"; // input file
String fileOutput = "results.out"; // the output file to write the result
final double UPPER_LIMIT = 10000000; // declare constant for 10,000,00
double min = 0, max = 0;
double contribution, total = 0;
int counter = 0;
try {
// read the input file using scanner class
Scanner fileReader = new Scanner(new File(fileInput));
// loop as long total contribution is less than max there are contributions in the file
// read line by line
while (fileReader.hasNextDouble() && total < UPPER_LIMIT) {
// read the contribution amount from the file
contribution = fileReader.nextDouble();
// increment counter
counter += 1;
// update the min value
if (counter == 1 || min > contribution) min = contribution;
// update the max value
if (counter == 1 || max < contribution) max = contribution;
// running total of all contribution so far
total += contribution;
}
// close the input file
fileReader.close();
// write the data to the output file now
double average = total / counter;
FileWriter writer = new FileWriter(new File(fileOutput));
writer.write(String.format("It took %d contributions to reach the goal.\r\n", counter));
writer.write(String.format("The maximum contribution received was $%,.2f\r\n", max));
writer.write(String.format("The minimum contribution received was $%,.2f\r\n", min));
writer.write(String.format("The average contribution received was $%,.2f\r\n", average));
writer.write(String.format("A total of $%,.2f was collected.\r\n", total));
writer.flush();
writer.close(); // close the output file
} catch (IOException e) {
System.out.println("Error: could not read/open file: " + fileInput);
}
}
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
where in system settings can you find which version of Windows is installed on your computer?
Answer:
Select the Start button > Settings > System > About . Under Device specifications > System type, see if you're running a 32-bit or 64-bit version of Windows. Under Windows specifications, check which edition and version of Windows your device is running.
Explanation:
brainliest pls
17. What data structure is used for depth first
traversal of a graph.
Answer:
Depth First Search (DFS) algorithm traverses a graph in a depthward motion and uses a stack to remember to get the next vertex to start a search, when a dead end occurs in any iteration.anation:
when writing a function or a formula in a spreadsheet,what is the first u should do
Answer:
I think you need to add the equal (=) sign to start writing an equation to find the sum for example.
Read the following code:
# Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .065
There is an error in the code. How should the code be revised in order to get the correct output?
totalCost = itemA * 0.065
totalCost = (itemA) + 0.065
totalCost = itemA * ( itemA + 0.065)
totalCost = itemA + (itemA * 0.065)
Answer:
answer is D
Explanation:
i took the test and sales tax is just multiple the tax with the price of the item
Deleting a folder will ________ the subfolders.
Answer:
delete
Explanation:
I think this is the answer. :)
Research and a well-written problem statement are important because A)they give a clear understanding of the problem and its solution. B)they ensure that anyone in the general public will be able to understand and solve the problem. C)they give a list of the needs of the stakeholders. D)they ensure that questions still need to be asked about the problem.
Answer:
A. they give a clear understanding of the problem and it's solution
Explanation:
Research and a well-written problem statement are important because they give a clear understanding of the problem and its solution.
Answer:
Research and a well-written problem statement are important because
they give a clear understanding of the problem and its solution.
they ensure that anyone in the general public will be able to understand and solve the problem.
they give a list of the needs of the stakeholders.
they ensure that questions still need to be asked about the problem.
1 megabyte is equal to 1024 gigabyte. True/False
Answer:
false
Explanation:
1 MB = 0.001 GB
survey and describe the system
Survey systems help create, distribute, and analyze surveys by providing a framework for designing questionnaires, managing respondents, and analyzing data.
What is survey?A survey system lets users create surveys with different question types and response options. The system offers multiple ways to distribute surveys, including sharing a web link, email invites, website embedding, and social media.
Data is collected from respondents and stored accurately and securely, with error checking and validation in place. After survey completion, analyze data with summary stats, visualizations, filters, and cross-tabulations for identifying patterns. Survey systems have reporting features to generate detailed reports based on its data, including statistics, graphs, etc.
Learn more about survey from
https://brainly.com/question/14610641
#SPJ1
Augustus and Beatrice play the following game. Augustus thinks of a secret integer number from 1 to n. Beatrice tries to guess the number by providing a set of integers. Augustus answers YES if his secret number exists in the provided set, or NO, if his number does not exist in the provided numbers. Then after a few questions Beatrice, totally confused, asks you to help her determine Augustus's secret number.
Given the value of n in the first line, followed by the a sequence Beatrice's guesses, series of numbers separated by spaces and Agustus's responses, or Beatrice's plea for HELP. When Beatrice calls for help, provide a list of all the remaining possible secret numbers, in ascending order, separated by a space.
n = int(input())
all_nums = set(range(1, n + 1))
possible_nums = all_nums
while True:
guess = input()
if guess == 'HELP':
break
guess = {int(x) for x in guess.split()}
answer = input()
if answer == 'YES':
possible_nums &= guess
else:
possible_nums &= all_nums - guess
print(' '.join([str(x) for x in sorted(possible_nums)]))
Guessing game in python, where one player tries to find out the number the other player thinks. The program displays a list of possible numbers based on the given hint.
Python codeif __name__ == '__main__':
# Define variablesa = int()
s = int()
q = int()
k = int()
e = int()
n = int()
i = int()
norepeat = int()
num = str()
soi = str()
anw = str()
listy = str()
listn = str()
a = 1
s = 1
q = 1
k = 1
e = 1
# Entry data and define list lengthprint("Players: Augustus and Beatrice")
print("Augustus thinks of a secret integer number from 1 to n")
print("Enter n: ", end="")
n = int(input())
num = [str() for ind0 in range(n)]
listy = [str() for ind0 in range(n)]
listn = [str() for ind0 in range(n)]
norepeat = [int() for ind0 in range(n)]
print("Beatrice tries to guess the number by providing a set of integers")
while True:
b = 1
print("Enter set of integers (series of numbers seperated by spaces): ")
soi = input()
# Split the string and put each number in a list called "num" for j in range(1,len(soi)+1):if soi[j-1:j]==" ":
a = a+1
b = b+1
else:
num[b-1] = num[b-1]+soi[j-1:j]
a = a+1
if a-1<=n:
print("Question for Augustus: Secret number exists in the provided set? (enter YES or NO)")
anw = input()
# Create others two lists, one of which contains the secret number and the other no.if anw=="YES":
q = 1
while True:
listy[s-1] = num[q-1]
num[q-1] = ""
q = q+1
s = s+1
if q>b: break
else:
q = 1
while True:
listn[k-1] = num[q-1]
num[q-1] = ""
q = q+1
k = k+1
if q>b: break
else:
print("Amount of given numbers (",a,") is greater than n (",n,"). Try again")
a = a-b
if a>=n: break
print("Beatrice asks for helping her to determine secret number: Enter HELP")
anw = input()
# Identify repeating numbers in previously created listsfor d in range(1,s+1):
p = 0
for z in range(1,k+1):
if listy[d-1]==listn[z-1]:
p = p+1
# Loading a new list with numbers that are not repeated in the previous listsif p==0:
norepeat[e-1] = float(listy[d-1])
e = e+1
# Sorting listfor a in range(1,e):
for b in range(a,e):
if norepeat[a-1]>norepeat[b-1]:
aux = norepeat[a-1]
norepeat[a-1] = norepeat[b-1]
norepeat[b-1] = aux
# Output: list of all possible secret numbersprint("List of all possible secret numbers: ")
for x in range(1,e):
print(norepeat[x-1]," ", end="")
print("")
To learn more about game algorithm in python see: https://brainly.com/question/19163610
#SPJ4
discuss MIS as a technology based solution must address all the requirements across any
structure of the organization. This means particularly there are information to be
shared along the organization
MIS stands for Management Information System, which is a technology-based solution that assists organizations in making strategic decisions. It aids in the efficient organization of information, making it easier to locate, track, and manage. MIS is an essential tool that assists in the streamlining of an organization's operations, resulting in increased productivity and reduced costs.
It is critical for an MIS system to address the needs of any organization's structure. This implies that the information gathered through the MIS should be easily accessible to all levels of the organization. It must be capable of handling a wide range of activities and functions, including financial and accounting data, human resources, production, and inventory management.MIS systems must be scalable to meet the needs of a company as it expands.
The information stored in an MIS should be able to be shared across the organization, from the highest to the lowest level. This feature allows for smooth communication and collaboration among departments and employees, which leads to better decision-making and increased productivity.
Furthermore, MIS systems must provide a comprehensive overview of a company's operations. This implies that it must be capable of tracking and recording all relevant information. It should provide a real-time picture of the company's performance by gathering and analyzing data from a variety of sources. As a result, businesses can take quick action to resolve problems and capitalize on opportunities.
For more such questions on Management Information System, click on:
https://brainly.com/question/14688347
#SPJ8
You are doing a multimedia presentation on World War I, and you want to use a visual aid to show the battle areas. What visual aid is best suited for this purpose?
Answer:
Map
Explanation:
I put it in on Edg and got it correct, hope this helps :)
Answer:
The correct answer is map
Explanation:
I just did the assignment on edge 2020 and got it right
Assume you have bought a new mother board. It has 4 DIMM sockets with alternating colors. Slot 1 is blue, slot 2 is black, slot 3 is blue and slot 4 is black. How do you fix two 512 MB RAM modules to your motherboard to get the best performance
To fix two 512 MB RAM modules to the motherboard to get the best performance, one must follow these steps:
1. First of all, check the documentation of the motherboard to see the supported RAM.
2. After confirming the compatibility of the RAM with the motherboard, locate the RAM slots on the motherboard.
3. Make sure that the computer is turned off and unplugged.
4. Insert one of the 512 MB RAM modules into the first slot (blue) by lining up the notches on the RAM module with the slot and pressing down until it clicks into place.
5. Next, insert the second 512 MB RAM module into the third slot (blue) by lining up the notches on the RAM module with the slot and pressing down until it clicks into place.
6. Now, turn on the computer and check if the RAM has been detected by the system.
7. To check, right-click on My Computer, select Properties, and navigate to the System Properties window. Check the Installed Memory (RAM) entry to see if it shows the correct amount.
8. If the RAM has been detected, then the system should now be running with 1024 MB of RAM installed and will provide the best performance possible.
For more such questions on motherboard, click on:
https://brainly.com/question/12795887
#SPJ8
Create a program that uses a Java method to determine the length of a line by inputting the X,Y coordinates of the line endpoints. Show the result with a precision of four decimal places.
Answer:
import java.lang.Math;
import java.util.Scanner;
class lineLength {
private double x1;
private double x2;
private double y1;
private double y2;
public lineLength(double x1, double y1, double x2, double y2){
this.x1 = x1;
this.x2 = x2;
this.y1 = y1;
this.y2 = y2;
}
public String toString(){
double length = Math.sqrt( ( ( this.x2 - this.x1 ) * ( this.x2 - this.x1 ) ) + ( ( this.y2 - this.y1 ) * ( this.y2 - this.y1 ) ) );
String answer = String.format("%.4f %n", length);
return answer;
}
}
class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Please input x1, y1, x2, and y2");
double x1 = scanner.nextDouble();
double y1 = scanner.nextDouble();
double x2 = scanner.nextDouble();
double y2 = scanner.nextDouble();
lineLength test = new lineLength(x1,y1,x2,y2);
System.out.println(test);
}
}
Explanation:
we use formula
\(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\)
L7 Assignment: Tip and Tax We will put together some of the thing we learned. This program is about paying a bill in a restaurant. It is not the same as the one in the book. Be sure to use appropriate variable names, comments, prompts, and labels. Continued on the next slide: 1. Input the total without tip or tax. We will call this the meal price. 2. Calculate the tax as 8.25% of the meal price. 3. Add the meal price to the tax. This is called the subtotal. 4. Calculate the tip as 15% of the subtotal. 5. Add the tip to the subtotal. This is called the grand total. 6. Output the tax, the subtotal, the tip, and the grand total
Answer:
use the system 9+9+9 and so on
Explanation:
what is the difference between hydra and hadoop?
Hadoop is batch oriented whereas Hydra supports both real-time as well as batch orientation.
The Hadoop library is a framework that allows the distribution of the processing of large data maps across clusters of computers using simple as well as complex programming models. batch-oriented analytics tool to an ecosystem full of multiple sellers in its own orientation, applications, tools, devices, and services has coincided with the rise of the big data market.
What is Hydra?
It’s a distributing multi - task-processing management system that supports batch operations as well as streaming in one go. It uses the help of a tree-based data structure and log algorithms to store data as well as process them across clusters with thousands of individual nodes and vertexes.
Hydra features a Linux-based file system In addition to a job/client management component that automatically allocates new jobs to the cluster and re-schedules the jobs.Know more about Big Data: https://brainly.com/question/28333051
Make sure your animal_list.py program prints the following things, in this order:
The list of animals 1.0
The number of animals in the list 1.0
The number of dogs in the list 1.0
The list reversed 1.0
The list sorted alphabetically 1.0
The list of animals with “bear” added to the end 1.0
The list of animals with “lion” added at the beginning 1.0
The list of animals after “elephant” is removed 1.0
The bear being removed, and the list of animals with "bear" removed 1.0
The lion being removed, and the list of animals with "lion" removed
Need the code promise brainliest plus 100 points
Answer:#Animal List animals = ["monkey","dog","cat","elephant","armadillo"]print("These are the animals in the:\n",animals)print("The number of animals in the list:\n", len(animals))print("The number of dogs in the list:\n",animals.count("dog"))animals.reverse()print("The list reversed:\n",animals)animals.sort()print("Here's the list sorted alphabetically:\n",animals)animals.append("bear")print("The new list of animals:\n",animals)
Explanation:
What output will this code produce?def whichlist():
11=[3,2,1,0]
12=11
11[0]=42
return 12
print(whichlist())
Answer: are you using chIDE
Explanation: yui