Answer:
Equipment recycling, reduction of paper usage, virtualisation, cloud computing, power
20
Select the correct answer
Mike logged into a shopping website and entered his username and password, which protocol will the website use to verify his credentials?
A HTTP
B SMTP
C. СМР
D. POP3
E. LDAP
Answer:
LDAP
Explanation:
The Lightweight Directory Access Protocol (LDAP) is a vendor-neutral application protocol used to maintain distributed directory info in an organized, easy-to-query manner. That means it allows you to keep a directory of items and information about them. This allows websites to verify credentials when accessing websites.
Consider the following program written in C syntax:
void swap(int a, int b) {
int temp;
temp = a;
a = b;
b = temp;
} void main() { int value = 2, list[5] = {1, 3, 5, 7, 9};
swap(value, list[0]);
swap(list[0], list[1]);
swap(value, list[value]);
}
For each of the following parameter-passing methods, what are all of the
values of the variables value and list after each of the three calls to
swap?
1. Passed by value
2. Passed by reference
3. Passed by value-result
6.
The values of the variables value and list after each of the three calls to
swap are:
value = 2 and list[5] = {1, 3, 5, 7, 9};value = 2 and list[5] = {3, 1, 5, 7, 9};value = 2 and list[5] = {3, 1, 5, 7, 9};How to determine the values of variable value and the list?1. Passed by value
In this case, the values of the actual arguments remain unchanged; So the variable value and the list would retain their initial values
The end result is:
value = 2 and list[5] = {1, 3, 5, 7, 9};
2. Passed by reference
With pass by reference, the arguments are changed.
Given that
value = 2 and list[5] = {1, 3, 5, 7, 9};
The value of variable value is swapped with list[0].
So, we have:
value = 1 and list[5] = {2, 3, 5, 7, 9};
Then list[0] and list[1] are swapped
So, we have:
value = 1 and list[5] = {3, 2, 5, 7, 9};
Lastly, value and list[value] are swapped
So, we have:
value = 2 and list[5] = {3, 1, 5, 7, 9};
The end result is:
value = 2 and list[5] = {3, 1, 5, 7, 9};
3. Passed by value-result
Since there is no loop in the program, the pass by value-result has the same output as the pass by reference.
So, the end result is:
value = 2 and list[5] = {3, 1, 5, 7, 9};
Read more about C syntax at:
https://brainly.com/question/15705612
Explain why database management systems are used in hospitals? Discuss
The reason why database management systems are used in hospitals is because the use of Healthcare databases aids in terms of diagnosis and treatment, handle documentation and billing, and others.
What is a database management system in healthcare?A database management system (DBMS) is known to be a type of software that has been developed to help people to form and keep databases.
It is one that helps to lower the risk of errors associated with medical operations and management. It reduces paperwork and staff and also improves performance.
Learn more about database management from
https://brainly.com/question/24027204
Nhich of these is an optical medium of storage?
Answer:
Compact Disks, DVDs, Floppy Drives, Hard Disk Drives
with the aid of your own example explain how memory,registers and secondary storage all work together
Memory, registers and secondary storage all work together so as to create or produce an ideal storage conditions.
How does memories works together?The use of storage memory serves for different purposes. There is the primary storage and secondary storage that are known to work together so as to bring about a better ideal storage conditions.
An example is if a person save their work in Word, the file data is said to move the data or file from primary storage to a secondary storage device for long-term keeping.
Learn more about Memory from
https://brainly.com/question/25040884
Why do crawlers not use POST requests?
Answer:
Generally they do not do POST requests. This is just the current state of affairs and is not dictated anywhere, I believe. Some search engines are experimenting with crawling forms, but these are still GET requests.Explanation:
explain declaration and initialization of one and two dimensional arrays with example
The declaration and initialization of arrays involves creating and using the arrays
How to declare an array?Assume the programming language is Java.
To declare and initialize an array, we make use of:
One dimensional array: Data-Type Array-name [] = {List of array values}Two dimensional array: Data-Type Array-name [] [] = {List of array values}Assume the array name of the one dimensional array is num, and the data type is integer.
The following can be used to declare and initialize the array to have 5 elements
int num [] = {1,2,3,4,5}
Assume the array name of the two dimensional array is num, and the data type is integer.
The following can be used to declare and initialize the array to have 2 rows and 3 columns
int num [][] = {{1,2},{3,4},{5,6}}
Read more about arrays at:
https://brainly.com/question/22364342
Write a program that allows two players (player X and player O) to play a game of tic-tac-toe. Use a two- dimensional char array with three rows and three columns as the game board. Each element of the array should be initialized with an asterisk (*). The players take turns making moves and the program keeps track of whose turn it is. Player X moves first. The program should run a loop that:
#include <iostream>
using namespace std;
//function prototypes
void showBoard(char[][3]);
bool checkWinner(char[][3], char);
void playerMove(char[][3], char);
int main()
{
//declare variables needed
//declare 2D array for the board
//and initialize with all *
char board[3][3] = {{'*', '*', '*'},
{'*', '*', '*'},
{'*', '*', '*'}};
int moves = 0; //variable to keep track
//of number of moves
//to determine tie
cout << "TIC - TAC - TOE\n\n";
//while loop to repeat until 9 moves are done
while(true){
//display board
showBoard(board);
cout << "Player 1 moves\n";
//get player X move
playerMove(board, 'X');
//increment moves counter
moves++;
//if this is a winning move
//store winner and terminate
if(checkWinner(board, 'X')){
showBoard(board);
cout << "\nPlayer 1 (X) wins!\n";
return 0;
}
//if 9 moves are done
//break from loop
if(moves == 9)
break;
//display board again
showBoard(board);
cout << "Player 2 moves\n";
//do the same thing for player O
playerMove(board, 'O');
moves++;
if(checkWinner(board, 'O')){
showBoard(board);
cout << "\nPlayer 2 (O) wins!\n";
return 0;
}
}
//if we have gone this far and program
//still has not terminated (no winner)
//it means this is a tie
showBoard(board);
cout << "This game is a tie!\n";
//return 0 to mark successful completion of program
return 0;
}
//this function is helpful because we need to show
//the board repetitively during the program
void showBoard(char board[][3]){
cout << endl;
//loop on the rows
for(int row = 0; row < 3; row++){
//loop on the columns
for(int col = 0; col < 3; col++)
cout << board[row][col] << " ";
//display newline after each row
cout << endl << endl;
}
cout << endl;
}
//this function checks if second argument
//is a winning player
bool checkWinner(char board[][3], char player){
//boolean variable to check
//for winner later
bool flag;
//CHECK FOR WINNER IN ROWS
for(int row = 0; row < 3; row++){
//initialize flag to true
flag = true;
//loop within a row
for(int col = 0; col < 3; col++){
//Notice that the right part of the
//assignment operator, is an expression
//with a relational operator (==)
//this expression will yield either
//true (1) or false (0)
//while flag is already true (1)
//if multiplied by true (1) will result
//in true(0), or multiplied by false (0)
//will result in false (0)
flag *= (board[row][col] == player);
}
//after checking within row, if the flag
//is still true at this point, it means we have
//three chars of the same kind within the row,
//thus we have a winner
if(flag)
return true;
else
continue;
}
//CHECK FOR WINNER IN COLUMNS
//using a similar logic
for(int col = 0; col < 3; col++){
flag = true;
for(int row = 0; row < 3; row++){
flag *= (board[row][col] == player);
}
if(flag)
return true;
else
continue;
}
//CHECK FIRST DIAGONAL (row = col)
//reset flag to true
flag = true;
//check diagonal
for(int i = 0; i < 3; i++){
flag *= (board[i][i] == player);
}
//check if there is winner
if(flag)
return true;
//CHECK OTHER DIAGONAL (row = 2 - col)
//reset flag to true
flag = true;
//check diagonal
for(int col = 0; col < 3; col++){
flag *= (board[2-col][col] == player);
}
//check if there is winner
if(flag)
return true;
//if all of these have been checked
//and function still has not returned,
//it means there is no winner
return false;
}
//this function gets a move from the player,
//checks if it is valid, and if yes it puts
//it on the board
void playerMove(char board[][3], char player){
//variables to store user move
int row, col;
//get user move
cout << "Row: ";
cin >> row;
cout << "Col: ";
cin >> col;
//check if this is valid move
//you have to check if that tile has
//already been marked, or if tile
//of choice is out of bounds of board
while(board[row-1][col-1] != '*' ||
row > 3 || row < 0 ||
col > 3 || row < 0)
{
cout << "Invalid move! Try again\n";
cout << "Row: ";
cin >> row;
cout << "Col: ";
cin >> col;
}
//after validation, mark new move
board[row-1][col-1] = player;
}
Answer:
if on edgen. The answer is c
Explanation:
In this lab, you will implement a temperature converter in JavaScript. The user may type a temperature in either the Celsius or Fahrenheit textbox and press Convert to convert the temperature. An image displays based on the converted temperature. (see the image uploaded here)
Use the knowledge in computational language in JAVA to write a code that convert the temperature.
How do I convert Celsius to Fahrenheit in Java?So in an easier way we have that the code is:
Fahrenheit to celsius:/* When the input field receives input, convert the value from fahrenheit to celsius */
function temperatureConverter(valNum) {
valNum = parseFloat(valNum);
document.getElementById("outputCelsius").innerHTML = (valNum-32) / 1.8;
}
Celsius to Fahrenheit:function cToF(celsius)
{
var cTemp = celsius;
var cToFahr = cTemp * 9 / 5 + 32;
var message = cTemp+'\xB0C is ' + cToFahr + ' \xB0F.';
console.log(message);
}
function fToC(fahrenheit)
{
var fTemp = fahrenheit;
var fToCel = (fTemp - 32) * 5 / 9;
var message = fTemp+'\xB0F is ' + fToCel + '\xB0C.';
console.log(message);
}
cToF(60);
fToC(45);
See more about JAVA at brainly.com/question/12975450
Homework 8 Matlab Write a function called fibonacciMatrix. It should have three inputs, col1, col2, and n. col1 and col2 are vertical arrays of the same length, and n is an integer number greater than 2. It should return an output, fib, a matrix with n columns. The first two columns should be col1 and col2. For every subsequent column:
In this exercise we have to use the knowledge in computational language in python to write the following code:
We have the code can be found in the attached image.
So in an easier way we have that the code is:
function v = myfib(n,v)
if nargin==1
v = myfib(n-1,[0,1]);
elseif n>1
v = myfib(n-1,[v,v(end-1)+v(end)]);
end
end
function v = myfib(n,v)
if nargin==1
v = myfib(n-1,[0,1]);
elseif n>1
v = myfib(n-1,[v,v(end-1)+v(end)]);
elseif n<1
v = 0;
end
function [n] = abcd(x)
if (x == 1 || x==0)
n = x;
return
else
n = abcd(x-1) + abcd(x-2);
end
end
fibonacci = [0 1];
for i = 1:n-2
fibonacci = [fibonacci fibonacci(end)+fibonacci(end-1)];
end
>> myfib(8)
ans =
0 1 1 2 3 5 8 13
>> myfib(10)
ans =
0 1 1 2 3 5 8 13 21 34
See more about python at brainly.com/question/18502436
Explain the distinction between a real address and a virtual address.
Answer:
A real address is the physical address in main memory. Though a virtual address is the address of a storage location in virtual memory.
hopes this help (:`
Answer:
send to you and the world is
why is this not working for my plus membership
Answer:
The overwhelming main cause for PlayStation Plus subscriptions not being recognised is because of PlayStation server maintenance which prevents your PS4 from communicating with Sony and discovering that you are a paid up PS Plus subscriber.
PLEASE HELP WILL MARK BRAINLIEST
Answer:
Ok, first what do u think their action is saying/doing, then state if it's effective or ineffective.Explanation:
What stands for “vlog”?
Answer:
Vlog means a Video Blog or log
Explanation:
Stay safe, stay healthy and blessed.
Have a blessed day !
Thank you
"vlog" stands for "video blog"
Explanation ↓If you have a vlog, you have a blog where most of the content is in video format. So your content is mostly videos.
hope helpful ~
type of software designed for users to customise programs is?
What statement is accurate in regards to
sharing workbooks?
Select an answer:
It is a legacy feature that is no longer a feature in Excel.
You must add the feature to the Quick Access Toolbar.
You can share and unshare from the Review option on the
ribbon.
You cannot track the changes of each user.
The statement that is accurate in regards to sharing workbooks is that You must add the feature to the Quick Access Toolbar
What does a shared workbook implies?The term connote the act of sharing an Excel file. Here, a person can give other users any form of access to the same document.
Sharing workbook is one that allow people to make any kinds of edits at the same time, which saves a person the trouble of keeping track of different versions.
Learn more about workbooks from
https://brainly.com/question/5450162
what is the important of hvac?
Answer:
Moreover, buildings need HVAC installed in them because:
HVAC systems are used for controlling the overall climate in a building. ...
HVAC fosters enhanced productivity in offices as they feel comfortable. ...
HVAC improves air quality in the building, helping make it appropriate for human breathing and comfort. ...
HVAC systems help you achieve more savings when it comes to energy bills
Explanation:
Answer:
Units larger than a terabyte include a petabyte, exabyte, zettabyte, yottabyte and brontobyte. A geopbyte is also larger than a terabyte and refers to 10 30 bytes, or 1,000 brontobytes. Additional units of measurement become necessary as the amount of data in the world increases.
Explanation:
what is an example of fibre optic cable
Answer:
printing cable
Explanation:
is a cable used to transfer information from a computer to the printer in packages
What is the binary of the following numbers
10
6
22
12
You can use this table to help you!
Answer:
10 = 00001010
6 = 00000110
22 = 00010110
12 = 00001100
9.3 code practice
Write a program that creates a 4 x 5 array called numbers. The elements in your array should all be random numbers between -30 and 30, inclusive. Then, print the array as a grid.
For instance, the 2 x 2 array [[1,2],[3,4]] as a grid could be printed as:
1 2
3 4
Sample Output
18 -18 10 0 -7
-20 0 17 29 -26
14 20 27 4 19
-14 12 -29 25 28
Note: the numbers generated in your program will not match the sample output, as they will be randomly generated.
pls help
The program is an illustration of arrays; Arrays are variables that are used to hold multiple values of the same data type
The main programThe program written in C++, where comments are used to explain each action is as follows:
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main(){
//This declares the array
int myArray[4][5];
//This seeds the time
srand(time(NULL));
//The following loop generates the array elements
for(int i = 0; i< 4;i++){
for(int j = 0; j< 5;j++){
myArray[i][j] = rand()%(61)-30;
}
}
//The following loop prints the array elements as grid
for(int i = 0; i< 4;i++){
for(int j = 0; j< 5;j++){
cout<<myArray[i][j]<<" ";
}
cout<<"\n";
}
return 0;
}
Read more about arrays at:
https://brainly.com/question/22364342
3.10 LAB: List basics
Given the user inputs, complete a program that does the following tasks:
Define a list, my_list, containing the user inputs: my_flower1, my_flower2, and my_flower3 in the same order.
Define a list, your_list, containing the user inputs, your_flower1 and your_flower2, in the same order.
Define a list, our_list, by concatenating my_list and your_list.
Append the user input, their_flower, to the end of our_list.
Replace my_flower2 in our_list with their_flower.
Remove the first occurrence of their_flower from our_list without using index().
Remove the second element of our_list.
Observe the output of each print statement carefully to understand what was done by each task of the program.
Ex: If the input is:
rose
peony
lily
rose
daisy
aster
the output is:
['rose', 'peony', 'lily', 'rose', 'daisy']
['rose', 'peony', 'lily', 'rose', 'daisy', 'aster']
['rose', 'aster', 'lily', 'rose', 'daisy', 'aster']
['rose', 'lily', 'rose', 'daisy', 'aster']
['rose', 'rose', 'daisy', 'aster']
The program is an illustration of Python lists; lists are used to hold multiple values in a variable
The main programThe program written in Python, where comments are used to explain the code is as follows:
#This gets all required outputs
my_flower1 = input(); my_flower2 = input(); my_flower3 = input(); your_flower1 = input(); your_flower2 = input(); their_flower = input()
# This defines my_list and appends the values of my_flower1, my_flower2, and my_flower3
my_list=[my_flower1,my_flower2,my_flower3]
# This defines your_list and appends your_flower1 and your_flower2
your_list=[your_flower1,your_flower2]
# This defines our_list by and concatenates my_list and your_list
our_list = my_list+your_list
#This prints our_list
print(our_list)
# This appends their_flower to the end of our_list
our_list.append(their_flower)
#This prints our_list
print(our_list)
# This replaces my_flower2 in our_list with their_flower
our_list[our_list.index(my_flower2)]=their_flower
#This prints our_list
print(our_list)
#This removes the first occurrence of their_flower from our_list
our_list.remove(their_flower)
#This prints our_list
print(our_list)
#This removes the second element of our_list
our_list.remove(our_list[1])
#This prints our_list
print(our_list)
Read more about python lists at:
https://brainly.com/question/16397886
Which is the best explanation for why tutorials are useful?
Answer:
Tutorials are important for your learning because you can:
Solve problems in a team, develop your group skills, and get to know your peers better (which may come in handy when picking group members for group projects) Prepare for and/or review midterms and exams. Clarify any concepts that you might not understand.
Explanation:
Hope it helps
Look at the lines that say health, dental, and retirement which statement below is accurate
The statement that is accurate is that Those lines represent insurance and retirement plans that Hope funds directly from her paycheck.
What is a retirement plan?A retirement plan is known to be a type of plan that has been set up to take handle all the needs of a post-retirement days.
This was designed to help a person have a stress-free life. A retirement savings plan is one that helps to your money to grow and care for your life.
See full question below
Look at the lines that say HEALTH, DENTAL, and RETIREMENT. Which statement below is accurate? Those lines represent taxes that Hope paid to the Federal government b. Those lines represent taxes that Hope paid to the state government Those lines represent benefits that the employer is paying to Hope in addition to her wages d. Those lines represent insurance and retirement plans that Hope funds directly from her paycheck
Learn more about retirement plans from
https://brainly.com/question/12143528
A set of processes and procedures that transform data into information and knowledge is
a.
Computer system
b.
Business system
c.
Database system
d.
Knowledge system
e.
Information system
Answer:
the answer is information system
A set of processes and procedures that transform data into information and knowledge is an Information system, which is the correct answer that would be an option (D).
What is the information system?Information system(IS) refers to systematic, social, and technical, organizational systems that obtain, process, store, and distribute information. Information systems are made up of four components from a socio-technological standpoint: task, people, structure (or roles), and technology.
A computer information system is a system that processes or interprets data that is made up of people and computers.
The term is also used in more limited contexts to refer only to the software used to run a computerized database or to refer only to a computer system.
Thus, a set of processes and procedures that transform data into information and knowledge is an Information system.
Hence, the correct answer would be an option (D).
To learn more about the Information system click here:
https://brainly.com/question/28945047
#SPJ2
discuss the information justify with two examples
Answer:
An example of information is what's given to someone who asks for background about something
what is seo stands for?
S.E.O. stands for "Search Engine Optimization"
Explanation ↓
In the abbreviation S.E.O.,
"S" stands for "Search"
"E" stands for "Engine"
"O" stands for "Optimization"
Therefore, S.E.O. or SEO stands for "Search Engine Optimization"hope helpful ~
Answer:
SEO=
Search
Engine
Optimization
Hope this helps^^^
Complete the sentence.
Times New Roman, Courier New, Arial and Verdana are all examples of _____.
1. web-safe colors
2. web-safe fonts
3. formatting templates
4. accessible fonts
Answer:
web-safe fonts
Explanation:
Because if you look at the different fonts they are all readable
Answer: 2. web-safe fonts
Explanation: got it right on edgen
Misinformations about Corona virus
Answer:
be in a crowded place without a mark
Match the product to its function.
Answer:
MYSQL: Database
MONGO DB: Database
SVELTE: Framework
JS: Language
VUE: Framework
PHP: Language
POSTGRES: Database
React: Framework (a JS library actually)
Python: Language
Restarting a computer which is already on is referred as
Answer:
what is compute
Explanation:
computer is machine