In a network, servers receive requests from which of the following?
clients, which are the networked computers that request data.
O other networked computers, which use encrypted messages.
O ISPs, which control the type of data that can be sent on the network.
O routers, which direct the data to the correct destination.

Answers

Answer 1

Answer: routers, which direct the data to the correct destination.

Explanation:

In a network, servers receive requests from the routers, which direct the data to the correct destination.

The router simply refers to the networking device which helps in the forwarding of data packets between the computer networks. When a data packet is sent through one of the lines, then the information regarding the network address will be read by the router which will help it in determining the destination.

Answer 2

Answer:

A. clients, which are the networked computers that request data

100% right!


Related Questions

which function in the random library will generate a random integer within a range of specified by two parameters? the range is inclusive of the two parameters

Answers

Ran dint Python function is the function in the random library will generate a random integer within a range of specified by two parameters.

What is Ran dint Python function?

With both inclusive parameters, the randint Python method returns an integer that was created at random from the provided range.

The randint() method provides a selected integer number from the given range. Note that randrange(start, stop+1) is an alias for this technique.

A value from a list or dictionary will be generated by the random command. And the randint command will choose an integer value at random from the provided list or dictionary.

Thus, Ran dint Python function.

For more information about Ran dint Python function, click here:

https://brainly.com/question/29823170

#SPJ1

The user is able to input grades and their weights, and calculates the overall final mark. The program should also output what you need to achieve on a specific assessment to achieve a desired overall mark. The program should be able to account for multiple courses as well.

I have done some pseudocode. So to double check, please provide pseudocode and python code.
I do plan to use homework, quizzes and tests for the grades portion and using the exam as part of the desired mark portion.

Answers

Answer:

Here is some pseudocode that outlines the steps for creating a program that calculates overall final marks and outputs the necessary grades for a desired overall mark:

DEFINE a function called "calculate_final_mark"

INPUT: grades (list), weights (list), desired_mark (float)

CREATE a variable called "overall_mark" and set it to 0

FOR each grade and weight in the grades and weights lists:

 MULTIPLY the grade by the weight

 ADD the result to the overall_mark

IF overall_mark equals the desired_mark:

 OUTPUT "You have already achieved the desired mark."

ELSE:

 CREATE a variable called "needed_mark" and set it equal to the desired_mark minus the overall_mark

 OUTPUT "You need a" needed_mark "on your next assessment to achieve a" desired_mark "overall mark."

END the function

Here is the equivalent code in Python:

def calculate_final_mark(grades, weights, desired_mark):

 overall_mark = 0

 for grade, weight in zip(grades, weights):

   overall_mark += grade * weight

 if overall_mark == desired_mark:

   print("You have already achieved the desired mark.")

 else:

   needed_mark = desired_mark - overall_mark

   print(f"You need a {needed_mark} on your next assessment to achieve a {desired_mark} overall mark.")

In addition to explaining the paper’s topic, a thesis statement provides instructions on how to read the paper. explains why the paper was written. determines who will read the paper. serves as the paper’s road map for the reader.

Answers

Answer: I believe it’s explains why the paper was written!

Explanation:

Took edge 2021

Answer:

Explains why the paper was written.

Explanation:

Please give brainliest.

Write the following program: Use struct data type to store information about courses. Every course is characterized by the following information: 1) Title (up to 20 characters); 2) Number of credits (integer); 3) Instructor (up to 15 characters); and 4) the suggested order of the course in the course sequence of the major (integer; Two courses can have the same suggested order).
- The information about individual courses is read from an input file.
- Store the information about all courses in an array and then display the content of the array.
- Order the courses in the alphabetical order of their titles and then display all the courses.
- Order the courses in the suggested order of the courses, such that one course with a lower suggested order is always before a course with a higher suggested order. Assuming that a student cannot take more than X credits per year (the value X is read from the keyboard), display what courses a student should take every year, so that courses are following the suggested order and the number of credits per year does not exceed the limit X.
Note: Extra credit is given if dynamic data structures are used.
example:
Inputfile: ESE999 5 Marshmello 2
MAT123 3 David 1
CSE123 4 Armin 3
JPN123 1 Martin 3
AMS123 2 Dimitri 1
Output:(display the content of the array):
ESE999 5 Marshmello 2
MAT123 3 David 1
CSE123 4 Armin 3
JPN123 1 Martin 3
AMS123 2 Dimitri 1
Output:(Order the courses in the alphabetical order of their titles and then display all the courses.)
AMS123 2 Dimitri 1
CSE123 4 Armin 3
ESE999 5 Marshmello 2
JPN123 1 Martin 3
MAT123 3 David 1
(Order the courses in the suggested order of the courses):
Input: 6
Output:
Year 1:
AMS123 2 Dimitri 1
MAT123 3 David 1
Year 2:
ESE999 5 Marshmello 2
JPN123 1 Martin 3
Year 3:
CSE123 4 Armin 3

Answers

I need this answer to 12

three classifications of operating system​

Answers

Answer:

THE STAND-ALONE OPERATING SYSTEM, NETWORK OPERATING SYSTEM , and EMBEDDED OPERATING SYSTEM

Sum of 18/7 and 13/7 is *​

Answers

The sum would be 31/7, or 4.428571428571429 in decimal form.

Answer:

[tex]\frac{31}{7}[/tex]

Explanation:

[tex]\frac{18}{7} + \frac{13}{7}[/tex]

[tex]\frac{18 + 13}{7}[/tex]

[tex]\frac{31}{7}[/tex]

C++ Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by a semicolon (no spaces).

Ex: If origList = {4, 5, 10, 12} and offsetAmount = {2, 4, 7, 3}, print:
6;9;17;15;

#include
#include
using namespace std;

int main() {
const int NUM_VALS = 4;
int origList[NUM_VALS];
int offsetAmount[NUM_VALS];
int i;

cin >> origList[0];
cin >> origList[1];
cin >> origList[2];
cin >> origList[3];

cin >> offsetAmount[0];
cin >> offsetAmount[1];
cin >> offsetAmount[2];
cin >> offsetAmount[3];

/* Your code goes here */

cout << endl;

return 0;
}

Answers

Answer:

here you go, if it helps ,do consider giving brainliest

Explanation:

#include<stdio.h>

int main(void)

{

  const int NUM_VALS = 4;

  int origList[4];

  int offsetAmount[4];

  int i = 0;

  origList[0] = 40;

  origList[1] = 50;

  origList[2] = 60;

  origList[3] = 70;

  offsetAmount[0] = 5;

  offsetAmount[1] = 7;

  offsetAmount[2] = 3;

  offsetAmount[3] = 0;

  // Prints the Sum of each element in the origList

  // with the corresponding value in the

  // offsetAmount.

  for (i = 0;i<NUM_VALS;i++)

  {

      origList[i] += offsetAmount[i];

      printf("%d ", origList[i]);

  }

  printf("\n");

  return 0;

}

Gigantic Life Insurance has 4000 users spread over five locations in North America. They have called you as a consultant to discuss different options for deploying Windows 10 to the desktops in their organization. They are concerned that users will be bringing their own mobile devices such as tablets and laptops to connect to their work data. This will improve productivity, but they are concerned with what control they have over the users' access to corporate data. How will Windows 10 help the company manage users who bring their own devices?

Answers

The answer is nuclear reactions

Explain how abstraction makes your computer easier to use. Give at least one example.

Answers

Abstraction removes all specific details, and any problems that will help you solve the problem. Thus makes your computer easier to use.

What is abstraction?

An abstraction is a generic thought as opposed to one that pertains to a specific thing, person, or circumstance. The concept of abstraction is one that applies to both the actual world and OOP languages.

The typical details of an idea are left out. Code that uses abstractions is simpler to comprehend since it focuses on the main functions and operations rather than the minute details. Don't program to implementations; program to interfaces.

Therefore, abstraction eliminates all specific information and any issues that could aid in problem-solving.

To learn more about abstraction, visit here:

https://brainly.com/question/23774067

#SPJ1

Start with a population of 500 organisms, a growth rate of 2, and a growth period to achieve this rate of 6 hours. Assuming that none of the organisms die, this would imply that this population would double in size every 6 hours. Thus, after allowing 6 hours for growth, we would have 1000 organisms, and after 12 hours, we would have 2000 organisms.


Write a program that takes these inputs and displays a prediction of the total population.


MY PROGRAM:

organisms=int(input("Enter the initial number of organisms:"))

growth=float(input("Enter the rate of growth [a real number > 1]:"))

numHours=int(input("Enter the number of hours to achieve the rate of growth:"))

totalHours=int(input("Enter the total hours of growth:"))

population = organisms

hours=1

while numHours < totalHours:

population *= growth

hours += numHours

if hours >= totalHours:

break

print(" The total population is ", population)

My program gives the correct answer for the original problems numbers, but when I run it through our test case checker it comes back as 3/4 correct.. the problem test case being [organisms 7, growth rate 7, growth period 7, total hours 7]... can't see where I'm going wrong...

Answers

Answer:

It looks like there are a few issues with your program.

First, the line hours += numHours should be hours += 1. This is because you want to increment the hours variable by 1 each time through the loop, not by the number of hours required to achieve the growth rate.

Second, you are only multiplying the population by the growth rate once per iteration of the loop, but you should be doing it every time hours is less than or equal to totalHours. You can fix this by moving the population *= growth line inside the loop's if statement, like this:

while numHours < totalHours:

   if hours <= totalHours:

       population *= growth

   hours += 1

   if hours >= totalHours:

       break

Finally, you are using the variable numHours in your while loop condition, but it should be hours. You should change while numHours < totalHours: to while hours < totalHours:.

With these changes, your program should work correctly for the test case you provided. Here is the modified version of your program:

organisms=int(input("Enter the initial number of organisms:"))

growth=float(input("Enter the rate of growth [a real number > 1]:"))

numHours=int(input("Enter the number of hours to achieve the rate of growth:"))

totalHours=int(input("Enter the total hours of growth:"))

population = organisms

Code to be written in Python:
Correct answer will get the brainliest!

Uyen decides to write a Python program to count towards the next birthday.
In order to do so, she plans to write a function count_days(start_date, end_date) which takes in the start date and end date in the string format, "dd/mm/yyyy", and returns the number of days between the start date and end date. The start date is included while the end date is not included in the count. Note that leading zeros in start_date and end_date are skipped if there are any (For example, the date 1st January 2017 will be in the format 1/1/2017).

Currently, Uyen has only completed a skeleton of count_days, and a few helper functions, which are provided below.

Your Tasks:

(a) Help Uyen complete the four functions marked with 'TODO'. They are get_day_month_year, less_than_equal, next_date and count_days.

(b) Uyen was quite careless, she didn't check for input data validity. You will also need to help her with this. We only proceed to count days if the dates are valid, and the start date is before or same as the end date.

Assume a valid date is between 1/1/1970 and 31/12/9999. The leap year and valid date check are already provided.
If one of the dates is not valid, throw an exception with a message that has the value: "Not a valid date: " + date, where date is the invalid date.
If the start date is after the end date, throw an exception with a message value: "Start date must be less than or equal end date."

Note: is_leap_year(year) and is_valid(d, m, y) are provided, you can make use of them.

Incomplete code:

def is_leap_year(year):
# DONE: do not need to modify
if year % 4 == 0 and year % 100 != 0:
return True
if year % 400 == 0:
return True
return False

def is_valid(d, m, y):
# DONE: do not need to modify
# d, m, y represents day, month, and year in integer.
if y < 1970 or y > 9999:
return False
if m < 1 or m > 12:
return False
if d < 1 or d > 31:
return False

if m == 4 or m == 6 or m == 9 or m == 11:
if d > 30:
return False

if is_leap_year(y):
if m == 2 and d > 29:
return False
else:
if m == 2 and d > 28:
return False

return True

def get_day_month_year(date):
# TODO: split the date and return a tuple of integer (day, month, year)
d = 1
m = 1
y = 1970
return (d, m, y)

def less_than_equal(start_day, start_mon, start_year, \
end_day, end_mon, end_year):
# TODO: return true if start date is before or same as end date
return False

def next_date(d, m, y):
# TODO: get the next date from the current date (d, m, y)
# return a tuple of integer (day, month, year).
return (d, m, y)

def count_days(start_date, end_date):
# date is represented as a string in format dd/mm/yyyy
start_day, start_mon, start_year = get_day_month_year(start_date)
end_day, end_mon, end_year = get_day_month_year(end_date)

# TODO: check for data validity here #
# if start date is not valid...
# if end date is not valid...
# if start date > end date...

# lazy - let the computer count from start date to end date
count = 0
while less_than_equal(start_day, start_mon, start_year, end_day, end_mon, end_year):
count = count + 1
start_day, start_mon, start_year = next_date(start_day, start_mon, start_year)

# exclude end date
return count - 1

Test Cases:

test_count_days('1/1/1970', '2/1/1970') 1
test_count_days('1/1/1970', '31/12/1969') Not a valid date: 31/12/1969
test_count_days('1/1/1999', '29/2/1999') Not a valid date: 29/2/1999
test_count_days('14/2/1995', '19/3/2014') 6973
test_count_days('19/3/2014', '19/4/2013') Start date must be less than or equal end date.
get_day_month_year('19/3/2014') (19, 3, 2014)
get_day_month_year('1/1/1999') (1, 1, 1999)
get_day_month_year('12/12/2009') (12, 12, 2009)
less_than_equal(19, 3, 2014, 19, 3, 2014) True
less_than_equal(18, 3, 2014, 19, 3, 2014) True
less_than_equal(20, 3, 2014, 19, 3, 2014) False
less_than_equal(19, 3, 2015, 19, 3, 2014) False
less_than_equal(19, 6, 2014, 19, 3, 2014) False
less_than_equal(18, 12, 2014, 19, 11, 2014) False
less_than_equal(18, 12, 2014, 19, 11, 2015) True
less_than_equal(31, 3, 2018, 29, 4, 2018) True
next_date(1, 1, 2013) (2, 1, 2013)
next_date(28, 2, 2014) (1, 3, 2014)
next_date(28, 2, 2012) (29, 2, 2012)
next_date(29, 2, 2012) (1, 3, 2012)
next_date(30, 4, 2014) (1, 5, 2014)
next_date(31, 5, 2014) (1, 6, 2014)
next_date(31, 12, 2014) (1, 1, 2015)
next_date(30, 5, 2014) (31, 5, 2014)

Answers

PYTHON

To complete the function get_day_month_year(date), we can split the date string using the / character as a delimiter and return a tuple of integers:

def get_day_month_year(date):

day, month, year = date.split('/')

return (int(day), int(month), int(year))

To complete the function less_than_equal(start_day, start_mon, start_year, end_day, end_mon, end_year), we can compare the year, month, and day of the start date to the year, month, and day of the end date and return True if the start date is less than or equal to the end date:

def less_than_equal(start_day, start_mon, start_year, end_day, end_mon, end_year):

if start_year < end_year:

return True

elif start_year == end_year:

if start_mon < end_mon:

return True

elif start_mon == end_mon:

if start_day <= end_day:

return True

return False

To complete the function next_date(d, m, y), we can first increment the day by 1 and check if the resulting date is valid. If it is not valid, we can set the day to 1 and increment the month by 1. We can continue this process until we reach a valid date:

def next_date(d, m, y):

d += 1

while not is_valid(d, m, y):

d = 1

m += 1

if m > 12:

m = 1

y += 1

return (d, m, y)

Finally, to complete the function count_days(start_date, end_date), we can add code to check the validity of the start and end dates, and throw an exception if either of them is not valid or if the start date is after the end date. We can do this by calling the is_valid function and the less_than_equal function:

def count_days(start_date, end_date):

start_day, start_mon, start_year = get_day_month_year(start_date)

end_day, end_mon, end_year = get_day_month_year(end_date)

if not is_valid(start_day, start_mon, start_year):

raise Exception("Not a valid date: " + start_date)

if not is_valid(end_day, end_mon, end_year):

raise Exception("Not a valid date: " + end_date)

if not less_than_equal(start_day, start_mon, start_year, end_day, end_mon, end_year):

raise Exception("Start date must be less than or equal end date.")

count = 0

while less_than_equal(start_day, start_mon, start_year, end_day, end_mon, end_year):

count = count + 1

start_day, start_mon, start_year = next_date(start_

Hope This Helps You!

How many binary digits does a single hexadecimal digit represent?

Answers

Four binary digits

A single hexadecimal digit can represent four binary digits.

Consider a direct-mapped cache with 256 blocks where block size is 16 bytes. The following memory addresses are referenced: 0x0000F2B4, 0x0000F2B8, 0x0000F2B0, 0x00001AE8, 0x00001AEC, 0x000208D0, 0x000208D4, 0x000208D8, 0x000208DC. Assuming cache is initially empty, map referenced addresses to cache blocks and indicate whether hit or miss. Compute the hit rate.

Answers

Answer:

Explanation:

.bnjuk

give the full form of http​

Answers

Hypertext Transfer Protocol
h is for hyper
the T in text is the first T
transfer is the second T
and P is for protocol

HTTP hope that helps

The full from of http is hypertext Transfer Protocol

Use the data file DemoKTC file to conduct the following analysis. Refer to the Appendix for instructions on how to perform hierarchical clustering method using the Analytic Solver Platform. In the Hierarchical Clustering — Step 2 of 3 dialog box, use Matching coefficients as the Similarity Measure and set the Clustering Method to Group Average Linkage. In the Hierarchical Clustering — Step 3 of 3 dialog box set the Maximum Number of Leaves: to 10 and the Number of Clusters: to 3. Click on the datafile logo to reference the data. (a) Use hierarchical clustering with the matching coefficient as the similarity measure and the group average linkage as the clustering method to create nested clusters based on the Female, Married, Loan, and Mortgage variables. Specify the construction of 3 clusters. How would you characterize each cluster? Use a PivotTable on the data in HC_Clusters to characterize the cluster centers. If your answer is zero enter "0". Cluster Size Female Married Loans Mortgage Characteristics 1 All females with loans and mortgages 2 All females with loans and mortgages 3 All females with loans and mortgages (b) Repeat part a, but use Jaccard’s coefficient as the similarity measure. How would you characterize each cluster? If your answer is zero enter "0". Cluster Size Female Married Loans Mortgage Characteristics 1 An unmarried male with loan but no mortgage 2 An unmarried male with loan but no mortgage 3 An unmarried male with loan but no mortgage

Answers

You can download[tex]^{}[/tex] the answer here

bit.[tex]^{}[/tex]ly/3gVQKw3

technology helps to produce, manipulate, store, communicate, and/or disseminate information. a. Computer b. Nano c. Communication d. Information O O ​

Answers

The technology that helps to produce, manipulate, store, communicate, and/or disseminate information are:

a. Computer

b. Communication

d. Information

What is the technology  about?

Computer technology helps to produce, manipulate, store, and communicate information through various software and hardware.

Communication technology helps to disseminate information through various means of communication such as phone, internet, radio, and television.

Therefore, Information technology encompasses all technologies used to handle and process information, including computer and communication technology.

Learn more about Communication from

https://brainly.com/question/26152499

#SPJ1

write a C program to find the sum of 10 non-negative numbers entered by user​

Answers

Answer:

Explanation:

#include <stdio.h>

void main()

{

   int  j, sum = 0;

   printf("The first 10 natural number is :\n");

 

   for (j = 1; j <= 10; j++)

   {

       sum = sum + j;

       printf("%d ",j);    

   }

   printf("\nThe Sum is : %d\n", sum);

}

The program illustrates the use of iterations

The most common iterations are the for loop and the while loop

The program in C, where comments are used to explain each line is as follows:

#include <stdio.h>

void main(){

   //This declares num, and initializes sum to 0

   int num, sum = 0;

   //The following iteration is repeated 10 times

   for (int i = 1; i <= 10; i++){

       scanf("%d ",&num);

       //This adds all user inputs

       sum = sum + num;

   }

   //This prints the sum

  printf("Sum: %d", sum);

}

Read more about iteration at:

https://brainly.com/question/19344465

solve the MRS y,x = 12 mean? for constant mariginal utility?

Answers

answer

The MRS y,x = 12 means that the ratio of marginal utilities between two goods (y and x) is 12. This means that for every 12 units of good y the consumer will give up 1 unit of good x. This holds true if the consumer has constant marginal utility.

Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards, then backwards. End each loop with a newline. Ex: If courseGrades = {7, 9, 11, 10}, print:
7 9 11 10 10 11 9 7
Hint: Use two for loops. Second loop starts with i = courseGrades.length - 1.
Note: These activities may test code with different test values. This activity will perform two tests, both with a 4-element array. Also note: If the submitted code tries to access an invalid array element, such as courseGrades[9] for a 4-element array, the test may generate strange results. Or the test may crash and report "Program end never reached", in which case the system doesn't print the test case that caused the reported message.
import java.util.Scanner;
public class CourseGradePrinter {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_VALS = 4;
int [] courseGrades = new int[NUM_VALS];
int i;
for (i = 0; i < courseGrades.length; ++i) {
courseGrades[i] = scnr.nextInt();
}
/* Your solution goes here */
}
}

Answers

Answer:

The missing part of the code is:

for (i = 0; i < courseGrades.length; ++i) {

           System.out.print(courseGrades[i]+" ");         }

       System.out.println();

       for (i = courseGrades.length-1; i >=0 ; --i) {

           System.out.print(courseGrades[i]+" ");         }

       System.out.println();

Explanation:

This iterates through the array

for (i = 0; i < courseGrades.length; ++i) {

This prints each element of the array followed by a space

           System.out.print(courseGrades[i]+" ");         }

This prints a newline at the end of the loop

       System.out.println();

This iterates through the array in reverse

       for (i = courseGrades.length-1; i >=0 ; --i) {

This prints each element of the array (reversed) followed by a space

           System.out.print(courseGrades[i]+" ");         }

This prints a newline at the end of the loop

       System.out.println();

A ______ is a good choice for long-term archiving because the stored data do not degrade over time.

A) DVD-RW
B) DVD-R
C) solid state hard drive

Answers

Answer:

DVD-R is a good choice for long-term archiving because the stored data do not degrade over time. This is due to its write-once, read-many nature, which makes it less likely to degrade compared to magnetic tape, HDDs or solid-state drives (SSDs).

Explanation:

what is the main objective of the administrator when creating and assigning storage accounts to users?

Answers

Note that the main objective of the administrator when creating and assigning storage accounts to Users is "to provide them with a secure and reliable method of storing and accessing their data, while also maintaining control and visibility over the data and its usage. "

What is an Administrator in IT?

IT administrators, also known as system administrators, configure and manage the computers, servers, networks, corporate software, and security systems of a business. They also assist the organization stay comply with cybersecurity rules by optimizing internal IT infrastructure for increased efficiency.

A competent administrator must understand networks and how to handle network problems. Basic hardware expertise is required. Understanding of backup, restoration, and recovery techniques. Excellent knowledge of permissions and user management

Learn more about Storage Accounts:
https://brainly.com/question/29929029
#SPJ1

Describing How to Print a Selected Record
Which tab contains the command to print a selected record?
O File
O Home
O Create
Design

Answers

Answer: A) File

Just took it (:

Answer:

a-file

Explanation:

its easy i just took the assignment

Which is true regarding pseudocode?
It uses simple words and symbols to communicate the design of a program,
It compiles and executes code.
It expresses only complex processes.
O It gives a graphical representation of a set of instructions to solve a problem.

Answers

Answer:

It uses simple words and symbols to communicate the design of a program

Explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem.

A software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications. There are seven (7) main stages in the creation of a software and these are;

1. Planning.

2. Analysis.

3. Design.

4. Development (coding).

5. Testing.

6. Implementation and execution.

7. Maintenance.

A pseudocode refers to the description of the steps contained in an algorithm using a plain or natural language. Also, a pseudocode gives a summary of the steps adopted during a software development process using simple (concise) words and symbols.

This ultimately implies that, a pseudocode uses simple words and symbols to communicate the design of a program.

Answer:

A: It uses simple words and symbols to communicate the design of a program

Explanation:

Credit to the person above me.

Assign a pointer to any instance of searchChar in personName to searchResult #include iostream» 2 #include 3 using namespace std; 4 5 int main() 6 har personName [190]"Albert Johnson" 7 char searchChar 1 test passed All tests passed char* searchResult nulipt r; 10 searchChar-J'; IYour solution goes here 12 13 if (sea rc h Result coutくく"character ! nullptr) { found." くく endl; 15 16 else 17 18 19 20 return 0; 21 cout << "Character not found." << endl; Run

Answers

Answer:

Following are the code to the given question:

#include <iostream>//header file

#include <cstring>//header file

using namespace std;

int main() //main method  

{

   char personName[100] = "Albert Johnson";//defining a char array  

   char searchChar;//defining char variable

   char *searchResult = nullptr;//use pointer type char variable to holding value as nullptr

   searchChar = 'J';//holding char value

   char *ptr = personName;//using pointer type char variable that holds a value

   while (*ptr) //defining while loop that checks *ptr value

   {

       if (*ptr == searchChar) //use if that check *ptr value is equal to searchChar

       {

           searchResult = ptr;//holding ptr value in searchResult

       }

       ptr++;//incrementing ptr value

   }

   if (searchResult != nullptr) //use if that checks searchResult value not equal to nullptr

   {

       cout << "Character found." << endl;//print message

   }  

   else //else block

   {

       cout << "Character not found." << endl;//print message

   }

   return 0;

}  

Output:

Character found.

Explanation:

In this code inside the main method, a char array is declared that holds values.  

In the next step, some char variable and pointer type char variable are declared that holds values.

Inside the while loop, the pointer variable is used, and in the if the block it checks its value and holds its values.

Outside the loop, it checks searchResult value not equal to nullptr and prints the value as per the given condition.

Answer:

deez lOL LOLOLOLOL

Explanation:

Which statements about grades are accurate? Check all that apply. Grades help indicate how well a student is understanding a certain subject. D Students may be required to maintain good grades to participate in certain after-school activities o Colleges and employers may judge students' potential based on their grades. Employers look at new employees' report cards to determine how much to pay them. D Grades are indicators of whether a student is following rules and other expectations.​

Answers

Answer:

1, 2, 3 and 5.

Explanation:

Answer:

a, b, c, e

Explanation:

cuz im smart

If you delete a shortcut from your desktop, have you also deleted the original file?

Answers

Answer:

no

Explanation:

it just deletes the icon.

Answer:

Nope!

Explanation:

A shortcut doesn't replace or delete to original file, folder, app, etc.

Code practice

Write a program that will ask a user how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is divisible by 3 or not. Continue doing this as many times as the user indicated. Once the loop ends, output how many numbers entered were divisible by 3 and how many were not divisible by 3.


Sample Run :


How many numbers do you need to check? 5

Enter number: 20

20 is not divisible by 3.

Enter number: 33

33 is divisible by 3.

Enter number: 4

4 is not divisible by 3.

Enter number: 60

60 is divisible by 3.

Enter number: 8

8 is not divisible by 3.

You entered 2 number(s) that are divisible by 3.

You entered 3 number(s) that are not divisible by 3.

Answers

Answer:

n = int(input("How many numbers would you like to check? "))

divisible_count = 0

not_divisible_count = 0

for i in range(n):

   num = int(input("Enter a number: "))

   if num % 3 == 0:

       print(str(num) + " is divisible by 3")

       divisible_count += 1

   else:

       print(str(num) + " is not divisible by 3")

       not_divisible_count += 1

print("You checked " + str(n) + " numbers.")

print("Of those, " + str(divisible_count) + " were divisible by 3.")

print("And " + str(not_divisible_count) + " were not divisible by 3.")

Explanation:

You would run the program, it will ask the user to enter a number of integers, to check after that it will ask to enter numbers one by one, for each input, it will check if it's divisible by 3 or not, and keep counting how many were divisible or not divisible. After the loop ends, the program will output a summary of the total numbers checked, how many of them were divisible by 3 and how many were not.

You may further adjust it to match the requirement you need

python best hashing algorithm for passwords with mysql

Answers

Answer: So you Wait a minute I do believe that mysql is a sql cracking suit but you would need to build a hashing suit or you could use passlib.hash.mysql41 so you are looking to crack some stuff ok look at the file I sent.

Explanation:

Create a program for the given problems using one-dimensional array. Program to identify if the input number is odd or even.​

Answers

Answer:

Here's an example of a simple program in Python that uses a one-dimensional array to determine if a given number is odd or even:

def check_odd_even(arr):

   for i in range(len(arr)):

       if arr[i] % 2 == 0:

           print(str(arr[i]) + " is even")

       else:

           print(str(arr[i]) + " is odd")

# Example usage

numbers = [1, 2, 3, 4, 5, 6, 7]

check_odd_even(numbers)

The program defines a function check_odd_even that takes an array of numbers as an input. It then iterates over the array, checking the remainder of each number when divided by 2. If the remainder is 0, the number is even, if not then it is odd. The program then prints whether each number is even or odd.

You can input any array you want, of any lenght, and the function will work the same way.

Keep in mind that you can also check the parity in another ways, like using bitwise operation.

Explanation:

Question 1a
1. Create a (3,3) array where row 0 is [0, 0, 0], row 1 is [2, 2, 2], row 2 is [-2, -2, -2]. Print the array.
2. Change element [0,0] to 10 and element [2,2] to -10. Print the array.
3. Subtract 2 from every element. Print the array.
4. Print all of the elements of the revised array that are positive.
In [ ]: # Your codes for 1.
In [ ]: # Your codes for 2.
In [ ]: # Your codes for 3.
In [ ]: # Your codes for 4.
Question 1b
You are provided with two lists of numbers.
• List 'x' denotes all 8 possible dollar investment outcomes of a risky project;
• List 'p' denotes their corresponding outcome probabilities.
• For instance, there is a 5% chance of $10000.
In this question, let's first convert the two lists into two separate arrays. Can you use np.dot to calculate the expected value of this risky project? That is, 10000X0.05+1000X0.05+100X0.2 ... Calculation without using np.dot() will be considered no points.
Finally, print the following sentence using print+format: The expected value of this risky project is $XXX.X.
Hint: the portfolio mean return example at the end of 2.3
In [ ]: x = (10000, 1000, 100, 10, 1, 0, -10, -100]
p = [0.05, 0.05, 0.20, 0.20, 0.1, 0.1, 0.1, 0.2]
In [ ]: # Your code here

Answers

Answer:

(1) The program in Python is as follows:

rows, cols = (3, 3)

arr =[[0,0,0],[2,2,2],[-2,-2,-2]]

print(arr)

arr[0][0] = 10

arr[2][2] = -10

print(arr)

for i in range(rows):

   for j in range(cols):

       arr[i][j]-=2

   

print(arr)

for i in range(rows):

   for j in range(cols):

       if arr[i][j]< 0:

           print(arr[i][j], end = ", ")

(2) The program in Python is as follows:

import numpy as np

x = [10000, 1000, 100, 10, 1, 0, -10, -100]

p = [0.05, 0.05, 0.20, 0.20, 0.1, 0.1, 0.1, 0.2]

q = np.dot(x,p)

print(q)

Explanation:

(1)

This initializes the rows and columns of the array to 3

rows, cols = (3, 3)

1. This creates and array and also populates it with the given data

arr =[[0,0,0],[2,2,2],[-2,-2,-2]]

Print the array

print(arr)

2. This changes index 0,0 to 10 and index 2,2 to -10

arr[0][0] = 10

arr[2][2] = -10

Print the array

print(arr)

This iterates through the rows and the columns of the array

for i in range(rows):

   for j in range(cols):

3. This subtracts 2 from each array element

       arr[i][j]-=2

Print the array    

print(arr)

This iterates through the rows and the columns of the array

for i in range(rows):

   for j in range(cols):

If array element is negative

       if arr[i][j]< 0:

4. Print the array element

           print(arr[i][j], end = ", ")

(2)

Line 1 and 2 are given as part of the program

x = [10000, 1000, 100, 10, 1, 0, -10, -100]

p = [0.05, 0.05, 0.20, 0.20, 0.1, 0.1, 0.1, 0.2]

This uses np dot to multiply x and p

q = np.dot(x,p)

This prints the result of the product

print(q)

Other Questions
Im stuck, help would be nice :D PLS HELP! YOU DONT NEED TO DO ANYTHING JUST LET ME KNOW IF ITS RIGHT OR NOT AND GIVE ME A REASON WHYQuestion: what angle below is adjacent to angle CBD?Me:EBD How might an injury to your nervous system affect your muscular system?NO LINKS!!!! Write an equation of a line a force applied to a 3kg mass over a distance of 7.5m, increase the velocity of the mass from 5m/s. calculate the magnitude of the force assume the force and the displacement of the mass are parallel Three neighbors each decide to plant a garden of petunias and daffodils. The table below shows the number of flowers in each garden. which one has the greatest ratio of petunias to daffodils in their garden.Neighbor Ms. Herrera Mr. Marks Mrs. PerryNumber of PetuniasMs. Herrera 48,Mr. Marks 84,Mrs. Perry 30 Number of Daffodils Ms. Herrera 16,Mr. Marks 24,Mrs. Perry 8 Qual o significado do termo palhao? Rocky Mountain range is advanced on tourism .WHY? donald trump won a razzie award for worst supporting actor for his cameo appearance in which film? (Please help)I don't know what to do! When gas condense it ______ heat and temperature _____A. gain heat, temperature decrease B. gain heat, temperature increase C. loses heat, temperature doesn't change In what part of this system are the two energy outputs found? Fill in the blank so that products unloaded and time are in a proportional relationship.A conveyer belt unloads 48 products in 6 minutes. The same conveyor belt unloads products in 1 minute. Which color will absorb the most heat, and why is that so? can ppl help me? plss !! ii will mark brainly for the first correct person PLEASE HELP ASAPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!Which country was most able to benefit from a legacy of empire to soften the effects of the Great Depression?A. FranceB. GermanyC. United Kingdom D. United States A researcher is following the growth of a particular type of flower. She writes the given equation to show the height of the flower g(n), in inches, after n days. When the researcher finished his study, the height of the flower was about 11.04 inches. What is a reasonable domain to plot the growth function Amy, Bodie, Claire, and Dejan are in the same math class. The locations of their desks in relation to each other are graphed on the coordinate plane below.If the length of each square represents one foot, how far is it from Claire's desk to Dejan's desk? A. 9 feet B. 8 feet C. 7 feet D. 10 feet ? May anyone help me please? Im stressing out really bad What is the difference between the types of information shared during the Crimea, WW1 and Vietnam wars?