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
Which term is defined by the total operating current of a circuit?
Answer:
OK PERO NOSE LM SOTTY BROTHER
Explanation:
giving Brianlist (to the correct answers)help plesee question is what is keyboard (long paragraph)plzz don't spam with unnecessary answers !!!!thankyouuuuuuu:)
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".
A group of statisticians at a local college has asked you to create a set of functions that compute the median and mode of a set of numbers. Define these functions, median and mode, in a module named stats.py. Also include a function named mean, which computes the average of a set of numbers. Each function should expect a list of numbers as an argument and return a single number. Each function should return 0 if the list is empty. Include a main function that tests the three statistical functions using the following list defined in main:
List: [3, 1, 7, 1, 4, 10]
Mode: 1
Median: 3.5
Mean: 4.33333333333
#Here is the code I am using:
def median(list):
if len(list) == 0:
return 0
list.sort()
midIndex = len(list) / 2
if len(list) % 2 == 1:
return list[midIndex]
else:
return (list[midIndex] + list[midIndex - 1]) / 2
def mean(list):
if len(list) == 0:
return 0
list.sort()
total = 0
for number in list:
total += number
return total / len(list)
def mode(list):
numberDictionary = {}
for digit in list:
number = numberDictionary.get(digit, None)
if number == None:
numberDictionary[digit] = 1
else:
numberDictionary[digit] = number + 1
maxValue = max(numberDictionary.values())
modeList = []
for key in numberDictionary:
if numberDictionary[key] == maxValue:
modeList.append(key)
return modeList
def main():
print ("Mean of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]: "), mean(range(1, 11))
print ("Mode of [1, 1, 1, 1, 4, 4]:"), mode([1, 1, 1, 1, 4, 4])
print ("Median of [1, 2, 3, 4]:"), median([1, 2, 3, 4])
main()
The Error that I am getting is on Line 14: AttributeError: 'range'object has no attribute 'sort'.
Also on Line 36:
Line36: 10]: "), mean(range1, 11)).
Answer:
In Python:
def median(mylist):
mylist.sort()
if len(mylist) % 2 == 1:
midIndex = int((len(mylist) +1)/ 2)
print("Median: "+str(mylist[midIndex-1]))
else:
midIndex = int((len(mylist))/ 2)
Mid = (mylist[midIndex] + mylist[midIndex-1] )/2
print("Median: "+str(Mid))
def mean(mylist):
isum = 0
for i in range(len(mylist)):
isum += mylist[i]
ave = isum/len(mylist)
print("Mean: "+str(ave))
def mode(mylist):
print("Mode: "+str(max(set(mylist), key=mylist.count)))
Explanation:
Your program is a bit difficult to read and trace. So, I rewrite the program.
This defines the median function
def median(mylist):
This sorts the list
mylist.sort()
This checks if the list count is odd
if len(mylist) % 2 == 1:
If yes, it calculates the mid index
midIndex = int((len(mylist) +1)/ 2)
And prints the median
print("Median: "+str(mylist[midIndex-1]))
else:
If otherwise, it calculates the mid indices
midIndex = int((len(mylist))/ 2)
Mid = (mylist[midIndex] + mylist[midIndex-1] )/2
And prints the median
print("Median: "+str(Mid))
This defines the mean function
def mean(mylist):
This initializes sum to 0
isum = 0
This iterates through the list
for i in range(len(mylist)):
This calculates the sum of items in the list
isum += mylist[i]
This calculates the mean
ave = isum/len(mylist)
This prints the mean
print("Mean: "+str(ave))
This defines the mode
def mode(mylist):
This calculates and prints the mode using the max function
print("Mode: "+str(max(set(mylist), key=mylist.count)))
Sentence Deobfuscate Name this file deobfuscate.cpp Hints: Don’t overthink this problem. Prompt the user to enter a collection of sentence words (i.e., words in the sentence), with the spaces removed (i.e., the obfuscated sentence) and with words that are less than ten (10) letters each. Then prompt the user to enter a sequence of numbers that represent the length of each corresponding sentence word (i.e. the deobfuscated details). Output the deobfuscated sentence. Convert char c to int by subtracting 48 (‘0’) from c.
Sample Execution:
Please enter obfuscated sentence: Thisisasentence
Please enter deobfuscation details: 4218
Deobfuscated sentence: This is a sentence
Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
string text,lengt;
cout<<"Please enter obfuscated sentence: "; cin>>text;
cout<<"Please enter deobfuscation details: "; cin>>lengt;
string t1, t2;
int kount = 0;
for(int i = 0;i<lengt.length();i++){
kount+=(int)(lengt[i]-'0');
t1 = text.substr(0, kount);
t2 = text.substr(kount, text.length()-1);
text = t1 +" "+ t2;
kount++; }
cout<<"Deobfuscated sentence: "<<text;
return 0; }
Explanation:
This declares the text and the deobfuscation details as string
string text,lengt;
This prompts for the sentence
cout<<"Please enter obfuscated sentence: "; cin>>text;
This prompts for the details
cout<<"Please enter deobfuscation details: "; cin>>lengt;
t1 and t2 are declared as string. They are used to split the texts into 2 parts
string t1, t2;
This declares and initializes a count variable to 0
int kount = 0;
This iterates through the deobfuscation details
for(int i = 0;i<lengt.length();i++){
This gets each deobfuscation character
kount+=(int)(lengt[i]-'0');
The next two instructions splits the text into 2
This gets from 0 to kount.
t1 = text.substr(0, kount);
This gets from kount to the last index
t2 = text.substr(kount, text.length()-1);
The new string or sentence is calculated here
text = t1 +" "+ t2;
The kount variable is incremented by 1
kount++; } The loop ends here
This prints the new sentence
cout<<"Deobfuscated sentence: "<<text;
See attachment for program file
15 points....How do you get money at home by just playing a vidio game.
Streaming or you tube!
I personally am starting to stream within the new few years but creating content and streaming can make you money by getting subs, bits, and more :)
(python) Given the formula for conversion from Celsius to Fahrenheit
Fahrenheit = 1.8 x Celsius + 32
Write a Python program that takes as input a temperature in degrees Celsius, calculates the temperature in degrees Fahrenheit, and display the result as output.
Answer:
initial_temp = float(input('Celsius Temperature: '))
final_temp = (initial_temp * 1.8) + 32
print(f'{final_temp} F')
What is full form of (IP)
answer:
internet protocol?
explanation:
the set of rules governing the format of data sent via the internet or local networkadvantage of micro teaching over traditional way of teaching
Complete the sentence.
When you enter “weather.com" into the URL, the _____ acquires the IP address.
a. Revolver
b. HTTP
c. Telnet
the http acquires the ip address
Explanation:
this is because it is the default protocol
Answer:
A. Revolver
Explanation:
On Edge, it states that a revolver, "makes a request to a name server, giving a domain name and receiving an IP address."
I hope this helped!
Good luck <3
What are the short comings of the Napier bones?
Answer:
Disadvantages of Napier's bone: It became tedious when the multiplication has to be done with big numbers. It was a much elaborate setup. It was made up of 200 rods placed in a special box.
Select all examples of active listening.
Interrupt if you do not agree
Give the speaker your full attention
Be aware of how your opinions could influence what you hear
Notice the speaker's emotions
Ask questions to clarify
Answer:
Give the speaker your full attention
Be aware of how your opinions could influence what you hear
Notice the speaker's emotions
Ask questions to clarify
What is true about super computers?
Explanation:
Super Computer are expensive computer that are used to provide very quick results. Super computer are used in calculating complex mathematical calculations. Calculations such as weather forecast and Atomic energy research. Therefore Super Computer perform complex calculations rapidly.
What are the 3 biggest advancements in computers?
Answer:
abacus . Mesopotamia or China, possibly several thousand years BCE. ...
binary math . Pingala, India, 3rd century BCE. ...
punched card . Basile Bouchon, France, 1725. ...
Explanation:
:)
How can you determine if the story is told in the third person
Answer:
They use pronouns like They, Them, He, She, It.
what was his beliefs?
A belief is an attitude that something is the case, or that some proposition about the world is true.[1] In epistemology, philosophers use the term "belief" to refer to attitudes about the world which can be either true or false.[2] To believe something is to take it to be true; for instance, to believe that snow is white is comparable to accepting the truth of the proposition "snow is white". However, holding a belief does not require active introspection. For example, few carefully consider whether or not the sun will rise tomorrow, simply assuming that it will. Moreover, beliefs need not be occurrent (e.g. a person actively thinking "snow is white"), but can instead be dispositional (e.g. a person who if asked about the color of snow would assert "snow is white").[2]
There are various different ways that contemporary philosophers have tried to describe beliefs, including as representations of ways that the world could be (Jerry Fodor), as dispositions to act as if certain things are true (Roderick Chisholm), as interpretive schemes for making sense of someone's actions (Daniel Dennett and Donald Davidson), or as mental states that fill a particular function (Hilary Putnam).[2] Some have also attempted to offer significant revisions to our notion of belief, including eliminativists about belief who argue that there is no phenomenon in the natural world which corresponds to our folk psychological concept of belief (Paul Churchland) and formal epistemologists who aim to replace our bivalent notion of belief ("either we have a belief or we don't have a belief") with the more permissive, probabilistic notion of credence ("there is an entire spectrum of degrees of belief, not a simple dichotomy between belief and non-belief").[2][3]
Beliefs are the subject of various important philosophical debates. Notable examples include: "What is the rational way to revise one's beliefs when presented with various sorts of evidence?"; "Is the content of our beliefs entirely determined by our mental states, or do the relevant facts have any bearing on our beliefs (e.g. if I believe that I'm holding a glass of water, is the non-mental fact that water is H2O part of the content of that belief)?"; "How fine-grained or coarse-grained are our beliefs?"; and "Must it be possible for a belief to be expressible in language, or are there non-linguistic beliefs?".[2]
true or false with reason :- profit and loss account is a real account
Answer:
False
Explanation:
Account of expenses, losses, gains, and incomes is called the Nominal account. Profit and Loss Account contains all indirect expenses and indirect incomes of the firm. Therefore, Profit and Loss Account is a Nominal Account and not a real account.
:)
what is digital museum
Access hundreds of professional development resources for museum professionals. Museum professionals can benefit at any career stage from student to retiree. Student Membership. Industry Membership. Established Since 1906. Museum Memebership. 501(c)3 Nonprofit Org.
Explanation:
1.Digital museum is a museum exhibition platform that utilizes computer and information technology, on which cultural relics and historical collections can be preserved and displayed in digital format. It is one of the main outcomes of digital curation. Learn more in: The Challenges of Digital Museum
A Products table and an Orders table have several linked records that are joined by a cross-referencing table named ProductsOrders. What kind of table relationship do these tables demonstrate?
A.one-to-one
B.one-to-many
C.many-to-many
D.many-to-none
Answer:
I believe it could be D. many to many.
Answer:
C. Many-to-Many
Explanation:
:)
What are some positive and nevative aspects of technology?
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
what is the command used to retrieve the java files along with the string existence "Hello world" in it
Answer:
java” xargs grep -i "Hello World”
how does abstraction help us write programs
Answer:
Abstraction refines concepts to their core values, stripping away ideas to the fundamentals of the abstract idea. It leaves the common details of an idea. Abstractions make it easier to understand code because it concentrates on core features/actions and not on the small details.
This is only to be used for studying purposes.
Hope it helps!
What is
Computer Security
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:
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.
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.
What is the value of: 1 + int(3.5) / 2?
Select one:
a. 2
b. 2.25
C. 2.5
d. 3
Answer:
C (2.5)
Explanation:
int(3.5) = 3
So, using order of operations, (3/2)+1=2.5
The value of the expression value of: 1 + int(3.5) / 2 is known to be option C, which is (2.5).
What is the expression about?In maths, an expression is known to be the composition of numbers, functions such as addition, etc.
Note that int(3.5) = 3
Therefore, using the given order of operations, (3/2)+1
=2.5
Therefore the answer =2.5 is correct.
Learn more about Expression from
https://brainly.com/question/723406
#SPJ2
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
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; }
Stroke weight - ____ of the line around a shape or size of the point
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.
A set of object that share a common structure and common behavior in database is called
What happens when text is added to grouped objects that is larger than an object ?
Answer:
You have to select the picture and pick the text at first.
Then press context menu key on a keyboard or right mouse button and choose group/ungroup point.
Choose group.
And finally you can select and resize the object and text simultaneously.
Harry wants to change the background of all of his presentation slides. Which slide will enable him to make this change to all the slides at once?
Harry needs to change the ___________ to change the background of all his presentation slides.
Answer:
settings
Explanation:
edmentum
What are folders within folders called
Answer:
The folder within folder are also know as subfolder .