Answer:
Count
Explanation:
Let's see which function does what:
SUM
This function totals one or more numbers in a range of cells.COUNT
This function gets the number of entries in a number field that is in a range or array of numbersSQRT
This function returns the square root of a number.SORT
This function sorts the contents of a range or array.As we see, Count is the function that gets the number of entries.
Answer:
CountExplanation:
Tells how many numeric entries are there.
Write a recursive function sumSquares(num) that given an integer num, returns the sum of squares of numbers from 1 to num. For example: sumSquares(3) should return 1^2 2^2 3^2
Answer:
Here is the recursive function sumSquares(num) that takes an integer num as parameter and returns the sum of squares of numbers from 1 to num.
def sumSquares(num):
if(num >= 0): # checks if the value of num is less than or equal to 0
if (num==0): #if value of num is 0
return 0 #returns 0 if value of num is 0
else: #if value of num is greater than 0
return sumSquares(num - 1)+ num * num #recursively calls the sumSquares method to return the sum of squares of numbers from 1 to num
else: # if a user enters a negative num
(print("The number if not positive")) #prints this message
exit() # exits after displaying that number if not positive message
#below print statement is used in order to check the working of the function
print(sumSquares(3)) #calls function and passes value 3 for num
Explanation:
The program works as follows:
The function sumSquares(num) that takes an integer num as parameter and returns the sum of squares of numbers from 1 to num
The first if condition checks if value of num is positive. If this condition evaluates to true then the another if statement inside this if statement is executed which checks if the value of num is 0. If this condition evaluates to true then the program returns 0. However if this condition evaluates to false then the else part executes which has the following statement:
return sumSquares(num - 1) + num * num
For example num = 3
so the above recursive statement works as follows:
sumSquares(3-1) + 3 * 3
sumSquares(2) + 9
Note that the sumSquares() method is called again and the value 2 is passed as num. As 2 is greater than 0. So again the recursive statement executes:
sumSquares(2 - 1) + 2 * 2 + 9
sumSquares(1) + 4 + 9
sumSquares(1) + 13
sumSquare() method is called again and the value 1 is passed as num. As 1 is greater than 0. So again the recursive statement executes:
sumSquares(1 - 1) + 1 * 1 + 13
sumSquares(0) + 1 + 13
sumSquares(0) + 14
sumSquare() method is called again and the value 0 is passed as num
As the value of num=0 So the if (num == 0): condition evaluates to true and the statement returns 0 executes which returns 0:
sumSquares(0) + 14
0 + 14
Hence the output is:
14
The screenshot of the program along with its output is attached.
A direct-mapped cache holds 64KB of useful data (not including tag or control bits). Assuming that the block size is 32-byte and the address is 32-bit, find the number of bits needed for tag, index, and byte select fields of the address.
Answer:
A) Number of bits for byte = 6 bits
B) number of bits for index = 17 bits
C) number of bits for tag = 15 bits
Explanation:
Given data :
cache size = 64 kB
block size = 32 -byte
block address = 32 -bit
number of blocks in cache memory
cache size / block size = 64 kb / 32 b = 2^11 hence the number of blocks in cache memory = 11 bits = block offset
A) Number of bits for byte
[tex]log _{2} (6)^2[/tex] = 6 bits
B) number of bits for index
block offset + byte number
= 11 + 6 = 17 bits
c ) number of bits for tag
= 32 - number of bits for index
= 32 - 17 = 15 bits
Assume a client calls an asynchronous RPC to a server, and subsequently waits until the server returns a result using another asynchronous RPC. Is this approach the same as letting the client execute a normal RPC
Answer:
This approach is not the same as letting the client execute a normal RPC
Explanation:
This approach is not the same as letting the client execute a normal RPC and this is because an asynchronous RPC sends an additional message across the network after the initial call/message is sent by the sender to the client. this additional message sent through the network is directed towards the sender of the initial call/message as an acknowledgement of the receipt of the initial message by the client .
synchronous RPC is made of two asychronous RPCs, hence the client executing a normal RPC will not establish a reliable communication between the client and the sender as asynchronous RPC would
How can the system administrator give the executive assistant the ability to view, edit, and transfer ownership of all records, but not allow her to delete the records
You suspect that a hacker has compromised a computer using one of its open ports. Which command would allow you to view the open ports on the computer
Answer:
[tex]netstat[/tex]
Explanation:
The netstat command displays network connections for TCP and can help to view the open ports on the computer.
Hope this helped!
While interoperability and unrestricted connectivity is an important trend in networking, the reality is that many diverse systems with different hardware and software exist. Programming that serves to "glue together" or mediate between two separate and usually already existing programs is known as:
Answer:
Middleware
Explanation:
In today's technology like networking, software development, web development, etc, there is a need for connectivity. The problem at hand is the variation of the tech brands which results in the difference in operating systems, applications, and connectivity protocols. This problem is solved with the introduction of Middleware.
Middleware is the solution to conflicting software applications, interconnectivity between various tech platforms. It promotes cross-platform interactions.
EAPOL operates at the network layers and makes use of an IEEE 802 LAN, such as Ethernet or Wi-Fi, at the link level.
A. True
B. False
Draw the binary search tree that results from starting with an empty tree and
a. adding 50 72 96 94 26 12 11 9 2 10 25 51 16 17 95
b. adding 95 17 16 51 25 10 2 9 11 12 26 94 96 72 50
c. adding 10 72 96 94 85 78 80 9 5 3 1 15 18 37 47
d. adding 50 72 96 94 26 12 11 9 2 10, then removing 2 and 94
e. adding 50 72 96 94 26 12 11 9 2 10, then removing 50 and 26
f. adding 50 72 96 94 26 12 11 9 2 10, then removing 12 and 72
Answer:
See the attached document for answer.
Explanation:
See the attached document for the explanation.
d. Application software are developed by software companies
Answer:
May this help you l think
Explanation:
There are several different types. They can be grouped into four basic categories:
Application development that provides functionality for users to perform tasks. Examples include office productivity suites, media players, social media tools, and booking systems. Applications can run on the user’s own personal computing equipment or on servers hosted in the cloud or by an internal IT department. Media streaming development is one example of application development for the cloud.2.System software development to provide the core functions such as operating systems, storage systems, databases, networks, and hardware management.
Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a foot. Sample output with inputs: 58 Total inches: 68 def print_total_inches (num_feet, hum_inches): 2 str1=12 str2=num_inches 4 print("Total inches:',(num_feet*strl+str2)) 5 print_total_inches (5,8) 6 feet = int(input) 7 inches = int(input) 8 print_total_inches (feet, inches)
I'll pick up your question from here:
Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a foot.
Sample output with inputs: 5 8
Total inches: 68
Answer:
The program is as follows:
def print_total_inches(num_feet,num_inches):
print("Total Inches: "+str(12 * num_feet + num_inches))
print_total_inches(5,8)
inches = int(input("Inches: "))
feet = int(input("Feet: "))
print_total_inches(feet,inches)
Explanation:
This line defines the function along with the two parameters
def print_total_inches(num_feet,num_inches):
This line calculates and prints the equivalent number of inches
print("Total Inches: "+str(12 * num_feet + num_inches))
The main starts here:
This line tests with the original arguments from the question
print_total_inches(5,8)
The next two lines prompts user for input (inches and feet)
inches = int(input("Inches: "))
feet = int(input("Feet: "))
This line prints the equivalent number of inches depending on the user input
print_total_inches(feet,inches)
Answer:
Written in Python:
def print_total_inches(num_feet,num_inches):
print("Total inches: "+str(12 * num_feet + num_inches))
feet = int(input())
inches = int(input())
print_total_inches(feet, inches)
Explanation:
What are the constraints for designing small and large files and how these are resolved in different file system
Answer:
space management and buffering speed.
Explanation:
There are different types of file management systems in a computer system, examples of which are NTFS, FAT, WAFL, etc, and are governed by protocols like NFS, TFTP, FTP, etc.
These file systems are used in storages like the hard disk drive, CD and DVD, solid-state drive, etc, to organize or manage the files from boot setup, device drivers to permission-seasoned user files.
Files in storage range from small to large files, for which the schema of the file system must adjust to manage and allocate free space to other files in the future. The file system is also able to index the location of a file for retrieval to a cache memory, making buffering faster.
Given a number N, write a code to print all psoitive numbers less than N in which all adjacent digits differ by 1
Answer:
def lesser_adjacent_num ( N ):
N = int( N )
while N == True:
next = N - 1
print if next >= 0 ? next : break
Explanation:
The python function above called "lesser_adjacent_num" accepts an argument called "N" which is an integer. The function print the number "next" which is a number less than the N integer for every loop for the condition where N is not zero.
Write the program to compute how many gallons of paint are needed to cover the given square feet of walls. Assume 1 gallon can cover 350.0 square feet. So gallons =the square feet divided by 350.0. If the input is 250.0, the output should be: 0.714285714286
Answer:
Here is the Python and C++ program.
Python program:
gallons_paint=0.0 #declare and initialize gallons_paint
wall_area = float(input()) #prompts user to enter wall area
gallons_paint = wall_area / 350 #formula to compute gallons of paint needed to cover the given square feet of walls
print(gallons_paint) #display the result
C++ program:
#include <iostream> //to use input output functions
using namespace std; //to identify objects like cin cout
int main(){ //start of main() function body
float wall_area,gallons_paint=0; //declare variables
cin>>wall_area; //reads input wall area from user
gallons_paint=wall_area/350; //formula to compute gallons of paint needed to cover the given square feet of walls
cout<<gallons_paint;} //print the result
Explanation:
The program prompts the user to enter the area of wall and stores the input value in wall_area
Suppose the user enters 250 as wall area
The the formula gallons_paint=wall_area/350; works as follows:
gallons_paint = wall_area/350;
= 250/350
= 0.71428
gallons_paint = 0.71428
So the output is:
0.71428
The screenshot of the program along with its output is attached.
During the data transmission there are chances that the data bits in the frame might get corrupted. This will require the sender to re-transmit the frame and hence it will increase the re-transmission overhead. By considering the scenarios given below, you have to choose whether the packets should be encapsulated in a single frame or multiple frames in order to minimize the re-transmission overhead.
Justify your answer
Scenario A: Suppose you are using a network which is very prone to errors.
Scenario B: Suppose you are using a network with high reliability and accuracy.
1. Based on Scenario A, the packets should be encapsulated in multiple frames to minimize the re-transmission overhead.
This is because there will be the need to re-transmit the packets because the network environment is not reliable and accurate. Therefore, a single frame may be too costly when the need for re-transmission arises.
2. Based on Scenario B, the packets should be encapsulated in a single frame because of the high level of network reliability and accuracy.
There will not be further need to re-transmit the packets in a highly reliable and accurate network environment. This environment makes a single frame better.
Encapsulation involves the process of wrapping code and data together within a class so that data is protected and access to code is restricted.
With encapsulation, each layer:
provides a service to the layer above itcommunicates with a corresponding receiving nodeThus, in a reliable and accurate network environment, single frames should be used to enhance transmission and minimize re-transmission overhead.
Learn more about data encapsulation here: https://brainly.com/question/23382725
The intention of this problem is to analyze a user input word, and display the letter that it starts with (book → B).
a. Create a function prototype for a function that accepts a word less than 25 characters long, and return a character.
b. Write the function definition for this function that evaluates the input word and returns the letter that the word starts with in capital letter (if it’s in small letters).
c. Create a function call in the main function, and use the function output to print the following message based on the input from the user. (Remember to have a command prompt in the main function requesting the user to enter any word.)
Computer starts with the letter C.
Summer starts with the letter S.
d. Make sure to consider the case where a naughty user enters characters other than the alphabet to form a word and display a relevant message.
%sb$ is not a word.
$500 is not a word.
e. Have the program process words until it encounters a word beginning with the character
Answer:
Here is the C++ program:
#include<iostream> // to use input output functions
using namespace std; //to identify objects like cin cout
void StartChar(string str) { // function that takes a word string as parameter and returns the first letter of that word in capital
int i;
char c;
do //start of do while loop
{
for (int i = 0; i < str.length(); i++) { //iterates through each character of the word str
if(str.length()>25){ //checks if the length of input word is greater than 25
cout<<"limit exceeded"; } //displays this message if a word is more than 25 characters long
c = str.at(i); // returns the character at position i
if (! ( ( c >= 'a' && c <= 'z' ) || ( c >= 'A' && c <= 'Z' ) ) ) { //checks if the input word is contains characters other than the alphabet
cout<<str<<" is not a word!"<<endl; break;} //displays this message if user enters characters other than the alphabet
if (i == 0) { //check the first character of the input word
str[i]=toupper(str[i]); //converts the first character of the input word to uppercase
cout<<str<<" starts with letter "<<str[i]<<endl; } // prints the letter that the word starts with in capital letter
} cout<<"Enter a word: "; //prompts user to enter a word
cin>>str; //reads input word from user
}while(str!="#"); } //keeps prompting user to enter a word until the user enters #
int main() //start of the main() function body
{ string str; //declares a variable to hold a word
cout<<"Enter a word: "; //prompts user to enter a word
cin>>str; //reads input word from user
StartChar(str); } //calls function passing the word to it
Explanation:
The program prompts the user to enter a word and then calls StartChar(str) method by passing the word to the function.
The function StartChar() takes that word string as argument.
do while loop starts. The for loop inside do while loop iterates through each character of the word string.
First if condition checks if the length of the input word is greater than 25 using length() method which returns the length of the str. For example user inputs "aaaaaaaaaaaaaaaaaaaaaaaaaaa". Then the message limit exceeded is printed on the screen if this if condition evaluates to true.
second if condition checks if the user enters anything except the alphabet character to form a word. For example user $500. If this condition evaluates to true then the message $500 is not a word! is printed on the screen.
Third if condition checks if the first character of input word, convert that character to capital using toupper() method and prints the first letter of the str word in capital. For example if input word is "Computer" then this prints the message: Computer starts with the letter C in the output screen.
The program keeps prompting the user to enter the word until the user enters a hash # to end the program.
The output of the program is attached.
is there similarities between plagiarism and software piracy? explain.
The POR is a systematic method of documentation that includes a database, problem list, initiitial plan and progress notes.
A. True
B. False
Explanation:
The POR is a systematic method of documentation that includes a database, problem list, initiitial plan and progress notes is true
1.the following code example would print the data type of x, what data type would that be?
x=5
print (type(x))
2.The following code example would print the data type of x, what data type would that be?
x="Hello World"
print(type(x))
3. The following code example would print the data type x, what data type would that be?
x=20.5
print (type(x))
Answer:
x = 5, the data type is integer( integer data type is for whole numbers)
2. The data type is string
3. The data type is float (float data type is for decimals)
Explanation:
fill in the blank with the correct response
Answer:
regenerates
Explanation:
a hub regenerates it's signal bit by bit as it travels down the physical medium
Why operating system is pivotal in teaching and learning
Answer:
Without it information flow is impossible
Explanation:
The word 'pivotal' also means crucial or vital, and so we need to consider what an operating system actually does.
Remember, merely having all the hardware of a computer would not allow you to run (install and use) programs. It is by means of an operating system that teaching programs can be installed, and it is also by means of an operating system learning can take place.
For example, a student can decode (learn) instructions/lessons from his teacher via a software program; and the software program needs an operating system to open (run) the program.
Write a Visual Basic Program to display factorial series upto nth term 1! 2! 3! 4! ...!
Answer:
n = n(n-1)!
Explanation:
expanding the factorial we get;
1!=1.
2!=2x1.
3!=3x2x1.
4!=4x3x2x1.
5!=5x4x3x2x1.
we can rewrite the above factorials as:
1!=1
2!=2!
3!=2!x3
4!=4x3!
5!=5x4!
the pattern applies such that if we have n th number we get it's factorial as;
n = n(n-1)!
Jeni is using the Label Wizard to solve a problem. What problem was she most likely experiencing?
O The images were not attaching to the labels.
O The spell check feature was not working within the label boundaries. O The text was getting cut off when the labels printed.
O The print preview function was showing only one label at a time.
Will the Python code below print something? And will it terminate?
def print_n(s, n):
if n > 0:
print(s)
print_n(s, n-1)
return n
n = 3
while print_n("hi", n):
print_n("there!", n)
n = 0
a. no and no
b. yes and no
c. no and yes
d. yes and yes
e. syntax error
Answer:
Yes and Yes
Explanation:
When programs are written without indentation; it becomes a problem to read;
I'll rewrite your program as follows:
def print_n(s, n):
if n > 0:
print(s)
print_n(s, n-1)
return n
n = 3
while print_n("hi", n):
print_n("there!", n)
n = 0
Using the above as a point of reference,
Yes, the program will run and Yes, it'll terminate;
Because n is initialized to 3 at line 6 (where the main starts);
The following is passed to the function; s = "hi" and n=3
This prints "hi", three times
s = "there" and n=3 is then passed to the function print_n, afterwards;
The function then prints "there" three times
Then, the program terminates
Consider a world named ‘Square World’. In this world a person can move only up,
down, left, right squares and only one square at a time. The squares are numbered. In
square number 3, there is our hero Yellow. His dream girl Pinky is in square number
16. There are bombs in the red squares and if someone goes there, he/she will be
busted! Yellow wants to see Pinky as quickly as possible and starts his journey from
square 3. Help him to find the shortest route. Which search technique will you use to
help Yellow? Demonstrate your idea by showing your simulation step by steps.
Answer:
Explanation:
It is hard , please any one help me.
Solve this question
computer in education are used for teaching and learning aids
5.15 LAB: Count input length without spaces, periods, or commas Given a line of text as input, output the number of characters excluding spaces, periods, or commas. Ex: If the input is:
Answer:
Following are the code to this question:
userVal = input()#defining a variable userVal for input the value
x= 0#defining variable x that holds a value 0
for j in userVal:#defining for loop to count input value in number
if not(j in " .,"):#defining if block that checks there is no spaces,periods,and commas in the value
x += 1#increment the value of x by 1
print(x)#Print x variable value
Output:
Hello, My name is Alex.
17
Explanation:
In the above-given code, a variable "userVal" is defined that uses the input method for input the value from the user end, in the next line, an integer variable "x" is defined, hold value, that is 0, in this variable, we count all values.
In the next line, for loop is defined that counts string value in number and inside the loop an if block is defined, that uses the not method to remove spaces, periods, and commas from the value and increment the value of x by 1. In the last step, the print method is used, which prints the calculated value of the "x" variable.
Answer:
Explanation:#include <iostream>
#include<string>
using namespace std;
int main()
{
string str;
cout<<"Enter String \n";
getline(cin,str);/* getLine() function get the complete lines, however, if you are getting string without this function, you may lose date after space*/
//cin>>str;
int count = 0;// count the number of characeter
for (int i = 1; i <= str.size(); i++)//go through one by one character
{
if ((str[i]!=32)&&(str[i]!=44)&&(str[i]!=46))//do not count period, comma or space
{
++ count;//count the number of character
}
}
cout << "Number of characters are = "; //display
cout << count;// total number of character in string.
return 0;
}
}
Write a query to display the department name, location name, number of employees, and the average salary for all employees in that department. Label the columns dname, loc, Number of People, and Salary, respectively.
Answer:
is hjs yen ; he jawjwjwjwjw
3. Which of the following is called address operator?
a)*
b) &
c).
d) %
Answer:
The Ampersand Symbol (Option B)
Explanation:
A 'address of operator' specifies that a given value that is read needs to be stored at the address of 'x'.
The address operator is represented by the ampersand symbol. ( & )
Hope this helps.
When working with the instruction LAHF, the lower eight bits of the EFLAGS register will wind up getting moved into the
hellohellohellohello
Write down the complete AJAX code to avoid page caching.
Answer:
AZAX is key sentence for without reloading page.
Explanation:
AJAX is also known as XHR. If some one wants to send the file without reloading then look ahead at the search function and prompt the users by auto saving the documents. This request is sent to the server. The server return the data to your network. Whenever you have seen the file form, some action on the page. You will see some request from AJAX server request on your functional area. AJAX is called a reloading file without page. AZAX is stands for Asynchronous java scripts And XML. AJAX is used to send an email. AZAX is not used in front end, it is used from back end process.
Objects for AJAXJava ScriptWord Press Action.ProtectionError handling process