it is . org Explanation:
Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitude value.Ex: If the inputs are:57the function returns:7Ex: If the inputs are:-8-2the function returns:-8
I wrote my code in python 3.8:
def max_magnitude(num1, num2):
return num1 if abs(num1) > abs(num2) else num2
print(max_magnitude(-8,-2))
I hope this helps!
Write a python application to simulate a Password Storage and Management system. The purpose of this assignment is to gain experience in python loop (while and for) structure, condition structure, sequence, and basic I/O.
Answer:
Explanation:
Udueuheyeheehhehehehejjejejejehebbevevsvevebebehehh
The standard library for Python includes modules for storing and retrieving serialized data in a number of different data structures, including JSON and XML. A standardized method of working with relational databases is offered by Python's DB-API.
What application of python to Storage and Management?Python's ability to swiftly generate and maintain data structures is one of its most popular applications; Pandas, for example, provides a wealth of tools to modify, analyze, and even depict data structures and complex datasets.
It will be easier to debug memory problems and create memory-efficient apps if you have a superpower for memory management. Join Rupesh Mishra for a thorough examination of CPython's inner workings.
Therefore, Python stores all of its objects and data structures in a private heap that it utilizes to manage memory. The internal management of this private heap is the responsibility of the Python memory manager.
Learn more about python here:
https://brainly.com/question/3533553
#SPJ5
what makes a computer a computer?
Answer:
A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You may already know that you can use a computer to type documents, send email, play games, and browse the Web
Explanation:
Follow me..............
central processor unit (CPU)
memory (ram)
input (mouse keyboard)
output (monitor or printer)
browse the web
ability to store retrieve and process data
I don't rlly know much about technology but I hope this helps
g You and your friend both send documents to the printer, but the printer can only print one document at a time. What does it do with the other document
Answer:
It places the document in a buffer
Explanation:
Since the printer can only print a document at a time, the other document is going to be placed in a buffer.
The print buffer can be described as a location in memory that has the function of holding data that is going to be sent to a computers printer. A print job such as in this scenario may remain in the buffer because another document is to be printed first.
Sometimes a document could be put in the buffer because the computer is waiting for the printer to respond. This is just another reason why documents are placed in a buffer.
As a user of media what will you say to those people who are under of misleading use media
Answer:
search more sa google
if you make homemade knitted garments and you sell them to individuals online, what e-commerce are you participating in?
is it B2B or B2C or C2C or SaaS
The Answer Of This Question Is C2C.
The document ____ controls the variety of fonts, colors, and other visual effects available for formatting a document.
Answer:
Theme
Explanation:
In Microsoft Office particularly Microsoft Word, the document THEME is where a user can quickly go to in order to controls the variety of fonts, colors, and other visual effects available for formatting a document.
To do this, a user can click on the Design menu, then click on the THEME option, after that, a user can hover the mouse on different themes to preview how the effects will show on the text or page in the document, before settling for one.
How did Aryan religion contribute to class differences in India?
Write pseudocode for a function that translates a telephone number with letters in it (such as 1-800-FLOWERS) into the actual phone number. Use the standard letters on a phone pad.
Answer:
Explanation:
Function telToNumbers with one parameter of a String input for the telephoneNumber
String var newTelephoneNum;
for loop through telephoneNumber {
Char var currentChar = current Character in the loop;
currentChar to lower Case;
Switch statement (currentChar) {
case "a" or "b" or "c" : newTelephoneNum += "2"; break;
case "d" or "e" or "f" : newTelephoneNum += "3"; break;
case "g" or "h" or "i" : newTelephoneNum += "4"; break;
case "j" or "k" or "l" : newTelephoneNum += "5"; break;
case "m" or "n" or "o" : newTelephoneNum += "6"; break;
case "p" or "q" or "r" or "s" : newTelephoneNum += "7"; break;
case "t" or "u" or "v" : newTelephoneNum += "8"; break;
case "w" or "x" or "y" or "z" : newTelephoneNum += "9"; break;
default : newTelephoneNum += currentChar; break;
}
}
print newTelephoneNum;
A database has one physical schema and one conceptual (logical) schema but many external schemas (views).
a) True
b) False
Answer:
true
Explanation:
A database has one physical schema and one conceptual (logical) schema but many external schemas (views): a. True.
A database refers to a structured (organized) collection of data that are stored on a computer system and usually accessed in various ways such as electronically.
In database management, a database schema can be defined as a structure which is typically used to represent the logical design of the database. Thus, it denotes how data are stored (organized) and the relationships existing in a database management system (DBMS).
Generally, there are two (2) main types of a database schema and these include;
Physical database schema: it is only one per database.Conceptual (logical) schema: it is only one per database.However, there are multiple number of external schemas (views) for each database because it is what an end user is interested in.
Read more on database here: https://brainly.com/question/3259292
Review how to write a for loop by choosing the output of this short program.
for counter in range(3):
print(counter * 2)
2
3
4
0
2
4
0
1
2
2
4
6
Answer:
The answer is 0 2 4. I hope this helps you out. Have a wonderful day and stay safe.
Explanation:
Answer: 0 2 4
Explanation: got it right on edgen
________ help(s) prevent a hard drive from being a single point of failure. __________ help(s) prevent a server from being a single point of failure. _________ help(s) prevent a person from being a single point of failure.
Answer:
RAID, Failover clusters, Cross-training
Explanation:
RAID function by preventing a hard drive from being a single point of failure. It is called Redundant array of independent disks (RAID). Failover cluster duties is to prevent a server from being a single point of failure.requires at least 2 node
Help me! I’ll mark you brainly and give extra points!
Answer:
52 5,
Explanation:
Why is it useful to teach Karl new commands
Answer:
It's important to teach karl more commands so karl can do more tasks and create more complex algorithms
Explanation:
Which choices correctly describe an Else
statement? Check all that apply.
a conditional statement that will show
different information if the answer to the If
statement is true
a conditional statement that will show
different information after the If statement
answer is false
a statement that contains the code to be
executed when the If value is false or zero
a conditional statement that runs a piece of
code when all program statements are true
Answer: B C
Explanation:
Answer:B,C,D
Explanation:
Write an If/else statement to check whether host is online. If it is online, then print system is online otherwise print system is unreachable.
Answer:
from socket import *
hostname = input('Enter the host to be scanned: ')
ip_add = gethostbyname(hostname)
connections = [ ]
for i in range(133, 136):
s = socket(AF_INET, SOCK_STREAM)
conn = s.connect_ex((ip_add, i))
print(conn)
connections.append(conn)
if 0 in connections:
print ('Host is online')
s.close()
else:
print ('system is unreachable')
Explanation:
The python source code above scans for all the available range of ports in the provided hostname, if any port is available, the host is online else the program print the error message "system is unreachable.
If you need to download something for a class, first
Answer:
left click, then click save image
Explanation:
Answer:
first try to do it on kami, then on Google docs, then on doc-hub
Corina has added animations to objects on a particular slide within a presentation. She needs to reorder the animations. How should she achieve this goal?
A. Use the Preview button.
B. Access the Advanced timeline.
C. Use the Animation pane.
D. Delete and recreate the animations in the correct order.
I think it's B but im not 100% sure sorry if im wrong
Answer: C
Explanation:
How do I charge my ACDC Halo bolt?
Answer:
To recharge your HALO Bolt, using the provided AC wall adapter cable, plug the AC adapter tip into the charger's charge input DC 20V/0.6A port. Next, connect the AC adapter into a wall outlet. Your HALO Bolt will automatically begin charging. Charge your HALO Bolt for a full eight hours.
Explanation:
Write code which takes a sentence as an input from the user and then prints the length of the first word in that sentence.
Hint: think about how you know where the first word ends - you may assume that the sentence contains more than one word.
Input a code in the following:
/* Lesson 3 Coding Activity Question 4 */
import java.util.Scanner;
public class U2_L3_Activity_Four{
public static void main(String[] args){
/* Write your code here */
}
}
import java.util.Scanner;
public class U2_L3_Activity_Four {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter a sentence.");
String sent = scan.nextLine();
int count = 0;
for (int i = 0; i < sent.length(); i++){
char c = sent.charAt(i);
if (c != ' '){
count++;
}
else{
break;
}
}
System.out.println("The first word is " + count +" letters long");
}
}
We check to see when the first space occurs in our string and we add one to our count variable for every letter before that. I hope this helps!
Following are the java code to the given question:
import java.util.Scanner;//import package
public class U2_L3_Activity_Four //defining a class U2_L3_Activity_Four
{
public static void main(String[] args) //defining main method
{
String s;//defining String variable
int x,v=0;//dclaring integer variable x,v
Scanner obx = new Scanner(System.in);//creating Scanner class Object
System.out.println("Enter a sentence.");//print message
s = obx.nextLine();//input string value
for (x = 0; x < s.length(); x++)//defining loop to count string length
{
char c = s.charAt(x);//defining char variable that hold char value
if (c != ' ')//defining if that check space value
{
v++;
}
}
System.out.println("The first word is " + v +" letters long");//print length of first word
}
}
Output:
Please find the attached file.
Program Explanation:
Import package.Defining a class U2_L3_Activity_Four, inside the class main method is declared.Defining a string variable "s" and an integer variable "x,v=0", and a scanner class object is created that inputs string value.In the next step, a for loop is defined that checks the first word in the string value and prints its length value.Learn more:
brainly.com/question/16092924
Which of the following would be appropriate to create using the CMYK color model?
Select all that apply.
a printed takeout menu a printed takeout menu , ,
a photography blog a photography blog , ,
a tri-fold brochure a tri-fold brochure , ,
a mobile app logo
Answer:
B, and C
Explanation:
they look like the only two answers that make sence
Given two integer variables distance and speed, write an expression that divides distance by speed using floating point arithmetic, i.e. a fractional result should be produced.
1. Calculate the average (as a double) of the values contained in the integer variables num1, num2, num3 and assign that average to the double variable avg. Assume the variables num1, num2, and num3 have been declared and assigned values, and the variable avg declared.
Creating objects
2. Declare a reference variable of type File named myFile.
3. Declare a variable named myMenu suitable for holding references to Menu objects.
4. Suppose a reference variable of type File called myFile has already been declared. Create an object of type File with the initial file name input.dat and assign it to the reference variable myFile.
invoking methods
Answer:
Following are the solution to this question:
Explanation:
In this question, the result value which would be produced are as follows:
[tex]= \frac{distance}{(double) \ speed}[/tex]
In point 1:
The formula for the avg variable:
[tex]\to avg = \frac{(num_1 + num_2 + num_3)}{(double)\ 3};[/tex]
In point 2:
The variable for the file is:
File myFile;
In point 3:
The variable for the mymenu:
Menu myMenu;
In point 4:
myString = new String();
nder a Huffman encoding ofnsymbols with frequenciesf1, f2, . . . , fn, what is the longest a codewordcould possibly be
Answer:
The longest codeword that could possibly be for "n" symbol is n-1 bits.
Explanation:
From the given information:
Suppose we are to consider a set of frequencies [tex]\mathtt{f_1,f_2,f_3 ...,f_n}[/tex], for which f is a symbol for the length n. Therefore, the longest codeword that could possibly be for "n" symbol is n-1 bits.
However, during the encoding for "n" in conjunction with n-2, then the possibilities for n are; [tex]\mathtt{\dfrac{1}{2}, \dfrac{1}{4}, ... \dfrac{1}{2^{n-2}}}[/tex]
We can conclude that the longest codeword that could possibly be for "n" symbol is n-1 bits.
Which function converts the users input to a number without a decimal?
Answer:
Explanation: integer is the meaning of int() if you payed attention to programming class, int() would be a WHOLE number and not a decimal number, 2nd of all, a decimal number would be float() so the answer is int() hope i helped!
Explanation:
hope this helped byyyyyyyyyyye
How does a search engine use algorithms to provide search results?
by creating keywords and phrases
by recording and storing data for worldwide use
by retrieving and ranking relevant search results
by limiting the type of search terms that it will accept
Answer:
By retrieving and ranking relevant search results
Explanation:
A search engine use algorithms to provide search results by retrieving and ranking relevant search results. The correct option is c.
What is an algorithm?When a user enters a search query into a search engine, all of the sites that are considered relevant are pulled from the index and ranked in a set of results using a hierarchical algorithm.
Each search engine uses a different set of algorithms to determine which results are the most pertinent. Through tags like HREF and SRC, they may detect new links on these pages, and they add such pages to their list of sites to index.
Then, based on the search phrases you entered, search engines utilize their algorithms to produce a prioritized list from their index of the pages you should be most interested in.
Therefore, the correct option is c. by retrieving and ranking relevant search results
To learn more about the algorithm, refer to the link:
https://brainly.com/question/13092388
#SPJ6
What is the role of CPU in the computer system?
Answer:
role of cpu in computer is ut is a brain nd a power point if a computer
Explanation:
It helps of shut down and open it
Answer:
CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.
Which of the following best describes the basic purpose of the internet?
A. The internet protects the privacy of sensitive information.
B. The internet sends information from one computer to another.
C. The internet stores data.
D. The internet connects input and output devices to a computer.
The best description of the basic purpose of the internet is that internet sends information from one computer to another. The correct option is B.
What is the importance of the internet?The internet was developed so that you can quickly get solutions to your questions there. People utilize it every day to learn something new, and it can mean anything. The internet aids in understanding pretty much anything.
Computers all over the world are connected by a huge global network called the Internet. People can share information and converse via the Internet from any location with an Internet connection.
The most significant tool and well-known resource used by practically everyone in the world is the internet. It links countless numbers of servers, webpages, and websites. We may communicate with our loved ones online by sending emails, images, videos, and messages.
Therefore, the correct option is B. The internet sends information from one computer to another.
To learn more about the internet, visit here:
https://brainly.com/question/13308791
#SPJ6
Type the correct answer in the box. Spell the word correctly.
Under which menu option of a word processing program does a star appear?
A star appears under the
menu of the word processing program.
Reset
Next
Answer:
"a callout is a type of text box that also includes a line for pointing to any location on the document. A callout appears under the SHAPES menu of the word processing program. The answer that completes this statement is the word "shapes". Hope this answers your question."
Explanation:
The correct answer in the box is as follows:
A star appears under the shapes menu of the word processing program. What is the word processing program?The word processing program may be characterized as a type of MS software that is significantly used to create, edit, save, and print documents on a computer. It permits a user to create documents that mimic the format and style of the original document along with diverse functions.
The Shapes menu in the word processing program has numerous shapes like rectangles, Ellipses, and Freehand polygons. There are some other numbers of other shapes such as arrows, speech balloons, various stars, and others are also included in this menu tool.
If a user wants to add any specific shape, he/she is allowed to click Insert, click Shapes, select a shape, and then click and drag to draw the shape. That specific shape is now inserted in the word processing documents.
Therefore, a star appears under the shapes menu of the word processing program.
To learn more about Word processing documents, refer to the link:
https://brainly.com/question/1596648
#SPJ7
The Electronic Age began in the
A. 1940s
B. 1970s
C. 1980s
D. 1990s
Answer:
1940
Explanation:
please help me!!!!!! all of the following may be benefits of a technical or vocational college except
Answer:
im not sure
Explanation: is their supposed to be a picture or something?
Answer: better scholarship opportunities
Explanation: