A core authentication server is exposed to the internet and is connected to sensitive services. How can you restrict connections to secure the server from getting compromised by a hacker? Check all that apply.

Answers

Answer 1

Answer:

Secure firewall , Access Control Lists (ACLs) , and Bastion hosts

Explanation:

In this scenario, the best options to be able to accomplish this would be a Secure firewall , Access Control Lists (ACLs) , and Bastion hosts. A secure firewall and an access control list will prevent specific harmful files and computers from entering a network unless it has the proper clearance. A bastion host on the other hand is a special-purpose computer on a network specifically designed and configured to withstand attacks, acting as a secondary defense mechanism.

Answer 2

It is possible to restrict connections by using a secure firewall, bastion hosts, and access control lists (ACLs).

A firewall can be defined as a security device that protects the network by filtering traffic and blocking unauthorized access.

A bastion host is a computer in a network that is designed and configured to withstand attacks.

An access control list (ACL) refers to a table that indicates an operating system the access rights of each specific user.

In conclusion, it is possible to restrict connections by using a secure firewall, bastion hosts, and access control lists (ACLs).

Learn more in:

https://brainly.com/question/11921446


Related Questions

Define a function named swap_nums that has 2 parameters: num_one and num_two. The function should swap the two numbers by using only one additional variable!

Answers

Answer:

def swap_nums(num_one, num_two):

   temp_value = num_one

   num_one = num_two

   num_two = temp_value

   

   return num_one, num_two

print(swap_nums(10, 20))

Explanation:

Create a function called swap_nums that takes num_one and num_two as parameters.

Inside the function, create a temporary variable, temp_value, and set it to the num_one. Set the num_one as num_two and num_two as temp_value. Return the num_one and num_two

Call the function with two numbers and print the result

Consider the Palindrom class discussed in class. Which of the following is true? It uses one stack and one queue to find out if a given string is palindrom It uses a glass queue to find out if a string is a palindrome It uses a recursive method to find out if a string is a palindrome It uses 2 stacks to find out of a string is a palindrome

Answers

Answer:

It uses a recursive method to find out if a string is a palindrome

Explanation:

Palindrome is a word or a sequence which is read same as backward as forwards. There are various method to find a palindrome. Palindrome can be determined recursively by identifying the first and last letters of the word. These first and last letter should be same. If they are same then the word or sequence is palindrome.

Write a program in python that ask the user to enter a word and then capitalizes every other letter of that word

Answers

Answer:

a = input("please enter a word: ")

print("Here is the capitalized version: ")

print(a.upper())

Explain why an organization's firewall should block outgoing packets the source addresses of which are not in the organization's address space.

Answers

Answer:

A firewall is used to monitor and control incoming and outgoing (or in better terms, inbound and outbound) traffic in a network based on some pre-defined  security rules set by either an individual or a business.

Now, using firewall to block outgoing packets that have source addresses which are not in an organization's address space means rejecting requests that, though originate from the organization's address space, are not in the organization's allowable address.

This is necessary and of utmost importance because even though an hacker (or simply an attacker) gains access into the organization's network, there is a limit to what harm they can do. If for example, they manage to get some malicious programs into the system's via network processes such as using infected e-mails or using a browser, they might also want to make some requests to the Internet to get some additional programs downloaded which altogether is harmful to the system. Disabling or blocking outgoing packets or traffic will stop this combined hazard from happening.

Problem You Need to Solve for This Lab:

You are asked to write an app to keep track of a relatively small music library. The app should load song information from a data file once the app is started. It should allow user to view, add, remove, and search for songs. The app should save the data back to the same data file when the program exits.

What Your Program Should Do:

Write an interactive text based menu interface (using a loop) that will allow the user to

ï‚· Enter information for a new song

ï‚· Display information for all the songs in the database with index for each song

ï‚· Remove a song by index

ï‚· Search for songs by a certain artist

ï‚· Search for songs by a certain album

ï‚· Quit

For each song, you need to keep track of:

title

artist

duration

album

Allow the program to keep looping until user wants to quit. When the program starts, it should load the tasks from external file ("songs.txt") into memory. When user enters information about the new song, the program needs to read them in, save them in memory and eventually write them to the external data file ("songs.txt"). The file format could look like:

Stereo Hearts;Gym Class Heroes;3;34;The Papercut Chronicles II
Counting Stars;OneRepulic;4;17;Native
The ';' is used as a delimiter or field separator. Each record ends with a new line character.

Some Implementation Requirements:

Write at least four functions WITH arguments for this assignment.

Use struct named Song to model each song

Use array of structs to model the collection of songs.

Hint: In this assignment, some data fields may have multiple words in it. Therefore,

you now SHOULD read using the 3 argument version of get.

Watch out. When using the 3 argument version of get you need to make sure to

remove the delimiter or newline. Therefore, anytime you read (even a confirmation

message), make sure to eat the newline using cin.ignore(...)!

Make sure to have a delimiter written between each item in the file – like a newline.

This will be important when you read the information back from the file.

For submission, your data file should contain a sufficient set of test data. It should have test cases for same artist with multiple songs and same album with multiple songs in it.

Do-Not List:

No Global Variables (you can have global constants)

Do not use Classes or Linked Lists

You must use cstring and char arrays. (do not use )

No use of the stdio library (use iostream and fstream)

Instead of the string class, you will be using arrays of characters and the cstring library

No STL containers such as vector. You must implement your own array for this class.

Answers

Answer:

Write questions properly

Explanation:

Then it is easy to say answer

Brainstorm ideas for a new information system that could be implemented by your school or university to benefit the student community in some way. Create a one- to two-page document requesting the IS department of your school or university to initiate systems investigation for this project. Be sure to cover all the information that is typically contained in a system request form as described in the text.

Answers

My current employer can implement Oracle based Enterprise Resource Planning to cover the information management along its 8 factories , 22 warehouses and 15 branches all over India . They can cover all functional areas of Procurement , Inventory , Finance and Accounts , Warehouse , Engineering , Production Planning , Human Resource and Sales . All these functions can be integrated with information interphase . There are tremendous benefits of this information system . The biggest advantage is inventory management as this information system has the potential to reduce inventory holding costs tremendously . The information system provide real time access of the inventory of any item at any place to every person in the organization at any time which is very esential for multifacility organizations . As a result we can keep items especially maintenace and insurance items at only one place instead of keeping them at eight places . So we can reduce the inventory of maintenace spares by eight times which can be major boost to the working capital which is generally locked in dead and non moving inventories . Simillarly on finished goods we can have an integrated view of the inventories of finished goods and work in progress so that we can take into account the availability of finished goods and WIP inventories correctly while doing the production planning . This again has the potential to reduce the working capital requirement as generally the inventories in an integrated manner are not taken into account and even if they are taken into account they are mannualy taken which may not be correct. On procurement side we can look into the live status of our pending orders on account of which we can reduce duplicate ordering and can again reduce inventories. Through MRP and Advanced Supply Chain Planning we can in one go release orders to suppliers . On Finance and Accounts side we can get an integrated picture of receivables and payables so we can see where we are and can make balanced decisions . On production side we can have a live update of the production plan completed so far and what needs to be completed . They can also see what they can accomplish and what they cannot on account of non availability of raw materials . So proper production planning can be done . Through distribution requirement planning we can set priorities for our production department as to what is needed when for dispatch so that the plan gets modified and the requirement is also met . Engineering department can view the sub assembly preparedness of each unit in an integrated fashion and it may not be necessary for keeping sub assemblies at all units as equipments are same at all places . So for one engineering department do not have to do job duplication and again inventories can be reduced tremendously . Engineering can also schedule their maintenance activities through the system as they can get an alert on the basis of manufacturing as to when the maintenance of which equipement has become due . Simillarly sales can make out the inventories of finished goods in an integrated manner and if any thing is short at some place it can be arranged from a neighbouring warehouse at the earliest if it is available . They can also do fast analysis as to which areas or geographic locations are performing better and which are not so that instead of moving finished goods to better performing areas inventories can be dispatched from non performing areas so that the inventories do not become tale and later written off as each product is dated and has a shelf life . Human resource can maintain their skill inventories of employees and in case a requirement from any facility they can first lookin with in if they have additional inventories of skill at some location and instead of hiring from inside we can meet the inventory from within.

So all in all it is an excellent system which has the potential of integrating all the elements of the organization , making it more compact and delivering tremendous savings which can help the bottomline grow tremendously.

Many of the special staff teams require leadership training, which is offered to staff with more than 1 year of service at Camp Bright Firewood. Dean wants to identify the staff members eligible for leadership training in the table.
In cell M2, enter a formula using a nested IF function and structured references to determine first if a staff member already has completed Academic Technology training, and if not, whether that staff member is eligible for Academic Technology training.
If the value of the Leadership Training column is equal to the text "Yes", the formula should return the text Completed. Remember to use a structured reference to the Leadership Training column.If the value of the Leadership Training column is not equal to yes, the formula should determine if the value in the Service Years column is greater than 1.The formula should return the text Yes if the staff member’s Service Years value is greater than 1.The formula should return the text No if the staff member’s Service Years value is not greater than 1.

Answers

Answer:

The answer to this question can be defined as follows:

Explanation:

In the given question attachment file is missing so, following the code to this question:

using function IF:

=IF(Logical test, how to do it when testing is right, how to do it when testing is wrong)

In this scenario, a leader development Worker should pass 2 tests

In the First test may not finish his training

If yes-" satisfied"  

It is not true, it will go to 2nd test  

In the second test, If employee served a service period of even more than 1 year (to be performed in a first check if not correct)

If, It is yes=" yes"  else  not ="No"  

= IF(Leader Training = Yes, "Completed," IF(Service time> 1," Yes ","No")  

That's means,  

The sort IF(I2 = "Yes","Completed"),IF(D2>1," Yes","No") must be used in cell M2)

Copy Cell M2 Then the selected M3 over M30

What's the value of this Python expression? ((10 >= 5*2) and (10 <= 5*2))

Answers

Answer:

The Boolean value returned by that expression will be True

Explanation:

We have two logical statements in that expression:

Expression 1: (10 >= 5*2)

This can be read as: is 10 greater than or equal to 5 multipled by 2. This evaluates to true as 10 is equal to 5 * 2. Hence expression 1 returns true

Expression 2: (10 <= 5*2)

This can be read as: is 10 less than or equal to 5 multiplied by 2. This also evaluates to true as 10 is equal to 5*2. Hence expression 2 returns true.

Now between this two expression is the and operator which evaluates to true if and only if both logical expressions returnes true.

True and True ==> True

Since Expression 1 ==> True and Expression 2 ==> True

This means Expression 1 and Expression 2 ==> True which is the Boolean value returned by the statement

The value of the python expression ((10 >= 5*2) and (10 <= 5*2)) is True

The code will definitely return a Boolean value(True or False).

For the expression to be True , the two statements must be True. The AND gate returns True if the whole statement is True.

(10 >= 5*2) is True because 10 is equals to 5 × 2 = 10.

(10 <= 5*2) is True because 10 is equals to 5 × 2 = 10.

The two statements are True . Therefore,

True and True = True.

learn more on python code; https://brainly.com/question/17013562?referrer=searchResults

Write a single Java if-else statement that outputs the value of a char variable GRADE if GRADE is equal to 'A' or 'B' or 'C' or 'D' or 'F'; otherwise, output the message "Input Error".

Answers

Answer:

Following are the program in java is given below

import java.util.*; // import package

public class Main // main class

{

public static void main(String[] args) // MAIN FUNCTION

{

Scanner scan2 = new Scanner(System.in);// scanner CLASS

System.out.println("Enter the Grade ");

char GRADE = scan2.next().charAt(0);//Read input by user

if(GRADE=='A' || GRADE=='B' || GRADE=='C' || GRADE=='D' || GRADE=='F' ) // //CHECK CONDITION

{    

System.out.println("The GRADE is :" +GRADE); // display grade  

}

else // Else block

{

System.out.println(" Input Error"); // display message

}

}

}

Output:

Enter the Grade

D

The GRADE is :D

Explanation:

Following are the description of program

Create the object of scanner class for read the value of grade by the user .Read the value of "GRADE" variable by using the scanner class object  scan 2Now check the condition in if block if the "GRADE" is  'A' or 'B' or 'C' or 'D' or 'F' then display the value of the GRADE variable otherwise else block is executed and input error message is displayed .

With modeling and simulation, we model the system and then test the ______________ to gather test predictions.

Answers

Answer:

With modeling and simulation, we model the system and then test the system to gather test predictions.

Explanation:

You would have to test the system in order to see if it's working right and everything is all good with the system.

I hope this helped. I am sorry if you get this wrong.

#this is 34 lines -- you can do it! # #In web development, it is common to represent a color like #this: # # rgb(red_val, green_val, blue_val) # #where red_val, green_val and blue_val would be substituted #with values from 0-255 telling the computer how much to #light up that portion of the pixel. For example: # # - rgb(255, 0, 0) would make a color red. # - rgb(255, 255, 0) would make yellow, because it is equal # parts red and green. # - rgb(0, 0, 0) would make black, the absence of all color. # - rgb(255, 255, 255) would make white, the presence of all # colors equally. # #Don't let the function-like syntax here confuse you: here, #these are just strings. The string "rgb(0, 255, 0)" #represents the color green. # #Write a function called "find_color" that accepts a single #argument expected to be a string as just described. Your #function should return a simplified version of the color #that is represented according to the following rules: # # If there is more red than any other color, return "red". # If there is more green than any other color, return "green". # If there is more blue than any other color, return "blue". # If there are equal parts red and green, return "yellow". # If there are equal parts red and blue, return "purple". # If there are equal parts green and blue, return "teal". # If there are equal parts red, green, and blue, return "gray". # (even though this might be white or black). #Write your function here!

Answers

Answer:

Following are the code to this question:

def find_color(color):#definig a method find_color that accepts color parameter

   color = str(color).replace('rgb(', '').replace(')', '')#definig color variable that convert parameter value in string and remove brackets

   r, g, b = int(color.split(', ')[0]), int(color.split(', ')[1]), int(color.split(', ')[2])#defining r,g,b variable that splits and convert number value into integer

   if r == g == b:#defining if block to check if r, g, b value is equal

       return "gray"#return value gray

   elif r > g and r > b:#defining elif block that checks value of r is greater then  g and b

       return "red"#return value red

   elif b > g and b > r:#defining elif block that checks value of b is greater then g and r

       return "blue"#return value blue

   elif g > r and g > b:#defining elif block that checks value of g is greater then r and b

       return "green"#return value green

   elif r == g:#defining elif block that checks r is equal to g

       return "yellow"#return value yellow

   elif g == b:#defining elif block that checks g is equal to b

       return "teal"#return value teal

   elif r == b:#defining elif block that checks r is equal to b

       return "purple"#return value purple

print(find_color("rgb(125, 50, 75)"))#using print method to call find_color method that accepts value and print its return value

print(find_color("rgb(125, 17, 125)"))#using print method to call find_color method that accepts value and print its return value

print(find_color("rgb(217, 217, 217)"))#using print method to call find_color method that accepts value and print its return value

Output:

red

purple

gray

Explanation:

In the above method "find_color" is declared that uses the color variable as the parameter, inside the method a color variable is declared that convert method parameter value into the string and remove its brackets, and three variable "r,g, and b" is defined.  In this variable first, it splits parameter value and after that, it converts its value into an integer and uses the multiple conditional statements to return its calculated value.

if block checks the r, g, and b value it all value is equal it will return a string value, that is "gray" otherwise it will go to elif block. In this block, it checks the value of r is greater then g, and b if it is true it will return a string value, that is "red" otherwise it will go to another elif block.   In this block, it checks the value of b is greater then g, and r if it is true it will return a string value, that is "blue" otherwise it will go to another elif block.    In this block, it checks the value of g is greater then r and b if it is true it will return a string value, that is "green" otherwise it will go to another elif block.    In the other block, it checks r is equal to g or g is equal to b or r is equal to b, it will return the value, that is "yellow" or "teal" or "purple".

Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.) If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.

Answers

Answer:

def countup():

pass

def countdown():

pass

x = int(input("Choose a number: "))

if x >= 0:

countup()

if x < 0:

countdown()

Explanation:

I start by getting a user input which is saved to variable called "x." I then make if statements to see whether is greater than, equal to, or less than 0. After that, I call the functions.

Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75).

Answers

Answer:

Following is the program in the python language

hr = input("input hours:") #Read input by user

h1 = float(hr)

rate =input("Input Rate:") #Read RATE BY USER

r1 = float(rate) #CONVERT INTO FLOAT

if h1 <= 40: #check condition

   t=h1 * r1

   print (t) #DISPLAY

else :#else block

   t1=(40 * r1) + (h1 -40) * r1 * 1.5

   print('The pay is :')

   print(t1)#DISPLAY

Output:

input hours:45

Input Rate:10.50

The pay is :

498.75

Explanation:

Following are the description of program

Read the value of hour in the "hr" variable and convert into the float value in the "h1" variable .Read the value of rate in the " rate" variable and convert into the float value in the "r1" variable .After that check the condition of hour if block if the hour is less then or equal to 40 then it multiplied h1 *t1 otherwise else block will be executed and print the value of pay .

A security administrator is investigating a report that a user is receiving suspicious emails. The user's machine has an old functioning modem installed. Which of the following security concerns need to be identified and mitigated? (Choose two.)
A. Vishing
B. Whaling
C. Spear phishing
D. Pharming
E. War dialing
F. Hoaxing

Answers

Answer: Spear phishing; Pharming

Explanation:

Based on the information given in the question, the security concerns that need to be identified and mitigated are spear phishing and pharming.

Spear phishing is the fraudulent practice whereby emails are sent from a trusted sender in which people are targeted to give out some confidential information.

Pharming is a cyberattack whereby the traffic of a website is redirected to another fake site. This is typically done when the host file on the computer of the victim has been changed.

Consider a situation where we have a file shared between many people.  If one of the people tries editing the file, no other person should be reading or writing at the same time, otherwise changes will not be visible to him/her.  However if some person is reading the file, then others may read it at the same time. Precisely in OS we call this situation as the readers-writers problem Problem parameters:  One set of data is shared among a number of processes  Once a writer is ready, it performs its write. Only one writer may write at a time  If a process is writing, no other process can read it  If at least one reader is reading, no other process can write  Readers may not write and only read

Answers

Explanation:

I am a collection of this process from Trash on the computer system and the program that included a new twist on the computer and the skin that appears after loading and the Windows operating system it was much that appear on identifying long horizontal bar at the bottom of the screen and water pollution and its control car parts of the computer with enough letters and adware if for the collection of the fat calculation in the complete committee that in the water method is a product of a screensaver been disciplined displayed at the subject of the right click an icon To Number Sau new file getting opened on you can getting opened on a forgiving of an operational effectiveness of the program is a false false false

Write a program that asks users to enter letter grades at the keyboard until they hit enter by itself. The program should print the number of times the user typed A on a line by itself.

Answers

Answer:

The complete code in Python language along with comments for explanation and output results are provided below.

Code with Explanation:

# the index variable will store the number of times "A" is entered

index = 0

while True:

# get the input from the user

   letter = input('Please enter letter grades: ')

# if the user enters "enter" then break the loop

   if letter == "":

       break

# if user enters "A" then add it to the index

   if letter == "A":

       index = index + 1

# print the index variable when the loop is terminated

# the str command converts the numeric type into a string

print("Number of times A is entered: " + str(index))

Output:

Please enter letter grades: R

Please enter letter grades: A

Please enter letter grades: B

Please enter letter grades: L

Please enter letter grades: A

Please enter letter grades: A

Please enter letter grades: E

Please enter letter grades:

Number of times A is entered: 3

A cashier distributes change using the maximum number of five-dollar bills, followed by one-dollar bills. Write a single statement that assigns num_ones with the number of distributed one-dollar bills given amount_to_change. Hint: Use %. Sample output with input: 19

Answers

Answer:

amount_to_change = int(input("Enter amount to change: "))

num_fives = amount_to_change // 5

num_ones = amount_to_change % 5

print("There are " + str(num_fives) + " five dollars and " + str(num_ones) + " one dollars in the change")

Explanation:

Ask the user to enter the amount_to_change

Calculate the number of five dollars, use floor division

Calculate the number of one dollars, use modulo operator

Print the number of five dollars and number of one dollars

Constructing a concurrent server by spawning a process has some advantages and disadvantages compared to multithreaded servers. Discuss a few.

Answers

Answer:

The advantage and the disadvantage of the relevant query are illustrated in the explanation in the paragraph below.

Explanation:

Advantage:

The benefit of creating a simultaneous server through spawning a mechanism seems to be that alternative methods are shielded against everyone else, which would be very necessary whenever the extremely database manages communication services entirely.

Disadvantage:

The downside about creating a concurrent system through spawning a methodology seems to be that this process seems to be very expensive but using multicore processing systems should save this expense. It is also easier when using threads again for the aim of communicating between two or even more participants although we stop the kernel executing the correspondence.

Please discuss what you consider to be some of the biggest challenges your company will face when working from the Linux command line. Discuss some of the different ways in which employees might be able to remember and associate commands with common tasks.

Answers

Answer:

Command remembering issues.

Explanation:

The biggest challenge my company will face when working on Linux is remembering issues of the commands. The commands in Linux are a bit difficult to remember as they are complicated bit but practice can solve this issue. "Practice makes a man perfect" this well known saying suggests that practice can make perfect and this well known saying also works with Linux the more practice the employees do the more perfect they get.

A technician is evaluating malware that was found on the enterprise network. After reviewing samples of the malware binaries, the technician finds each has a different hash associated with it. Which of the following types of malware is MOST likely present in the environment?

a. Trojan
b. Polymorphic worm
c. Rootkit
d. Logic bomb
e. Armored virus

Answers

Answer:

(b) polymorphic worm

Explanation:

A polymorphic worm can be compared with a chameleon. It changes its color so as to blend with the background of the surrounding to avoid being seen or caught. A polymorphic worm is a special type of worm that keeps changing its constituent features in order to avoid being detected. The most common way in which polymorphic worms hide their codes is by using encryption.

Polymorphic worms have two parts: the part that changes and the one that does not change. The part that changes include the characteristics of the worm such as encryption key, associated hash value e.t.c. The part that does not change is basically its functionality. Therefore, although the characteristics of the worm keep changing, its overall function remains the same.

Write a split check function that returns the amount that each diner must pay to cover the cost of the meal The function has 4 parameters:
1. bill: The amount of the bill,
2. people. The number of diners to split the bill between
3. tax_percentage: The extra tax percentage to add to the bill.
4. tip_percentage: The extra tip percentage to add to the bill.
The tax or tip percentages are optional and may not be given when caling split_check. Use default parameter values of 0.15 (15%) for tip percentage, and 0.09 (9%) for tax_percentage
Sample output with inputs: 252
Cost per diner: 15.5
Sample output with inputs: 100 2 0.075 0.20
Cost per diner: 63.75
1 # FIXME: write the split.check function: HINT: Calculate the amount of tip and tax,
2 # add to the bill total, then divide by the number of diners
3.
4. Your solution goes here
5.
6. bill - float(input)
7. people intinout)
8.
9. Cost per diner at the default tax and tip percentages
10. print('Cost per diner: split_check(bill, people))
11.
12. bill - float(input)
13. people int(input)
14. newtax_percentage - float(input)
15. nen_tip percentage float(input)
16.
17. Oust per dinero different tox and tip percentage
18. print('Cost per diner: split checkbull people, new tax percentage, new tip percentage)

Answers

Answer:

def split_check(bill, people, tax_percentage = 0.09, tip_percentage = 0.15):

   tip = bill * tip_percentage

   tax = bill * tax_percentage

   total = bill + tip + tax

   

   return total / people

bill = float(input())

people = int(input())

print("Cost per diner: " + str(split_check(bill, people)))

bill = float(input())

people = int(input())

new_tax_percentage = float(input())

new_tip_percentage = float(input())

print("Cost per diner: " + str(split_check(bill, people, new_tax_percentage, new_tip_percentage)))

Explanation:

Create a function called split_check that takes four parameters, bill, people, tax_percentage and tip_percentage (last two parameters are optional)

Inside the function, calculate the tip and tax using the percentages. Calculate the total by adding bill, tip and tax. Then, return the result of total divided by the number of people, corresponds to the cost per person.

For the first call of the function, get the bill and people from the user and use the default parameters for the tip_percentage and tax_percentage. Print the result.

For the second call of the function, get the bill, people, new_tip_percentage and new_tax_percentage from the user. Print the result.

def split_check(bill, people, tax_percentage = 0.09, tip_percentage = 0.15):

  tip = bill * tip_percentage

  tax = bill * tax_percentage

  total = bill + tip + tax

 

  return total / people

bill = float(input())

people = int(input())

print("Cost per diner: " + str(split_check(bill, people)))

bill = float(input())

people = int(input())

new_tax_percentage = float(input())

new_tip_percentage = float(input())

print("Cost per diner: " + str(split_check(bill, people, new_tax_percentage, new_tip_percentage)))

Create a function called split_check that takes four parameters, bill, people, tax_percentage and tip_percentage (last two parameters are optional)

Inside the function, calculate the tip and tax using the percentages. Calculate the total by adding bill, tip and tax. Then, return the result of total divided by the number of people, corresponds to the cost per person.

For the first call of the function, get the bill and people from the user and use the default parameters for the tip_percentage and tax_percentage. Print the result.

For the second call of the function, get the bill, people, new_tip_percentage and new_tax_percentage from the user. Print the result.

Learn more about function on:

https://brainly.com/question/30721594

#SPJ6

cal address EtherAddr. What would happen if, when you manually added an entry, you entered the correct IP address, but the wrong Ethernet address for that remote interface

Answers

The arp command allows users to download and edit the Address Resolution Protocol cache.Whenever time a laptop's TCP/IP stack utilizes ARP to determine its Multimedia Access Control address after an IP address, it records the mappings in the ARP cache because the future ARP iterators proceed quicker.In this, when the Router removes the IP address from the Ethernet frame after receiving the destination IP address & uses ARP to determine the destination MAC address.The information is sent to the ethernet address; IP is on a higher layer, therefore this would be lost before the user stored their layer.That's why the solution in "all information would be lost".

Learn more:

brainly.com/question/7342246

The Address Resolution Protocol ARP cache maintained by ARP keeps a record of IP addresses and their corresponding Media Access Control, MAC address

The correct response to what would happen if the wrong EtherAddr is

entered into the arp-s InetAddr EtherAddr command is that;

The system will not be able to connect to the IP address linked to the wrong Ethernet address.

The reason the above response is correct is as follows:

Characteristics of the ARP protocol;

The ARP protocol is a protocol that has a high level of control such that

the reply is trusted and can be used to redirect traffic through spoofing of

the responses to ARP which are then stored in the cache.

Functioning of the arp -s InetAddr EtherAddr command;

The command arp -s InetAddr EtherAddr command inputs a manual entry

into the ARP cache that works to assign the inputted IP address in InetAddr

to the MAC physical address in EtherAddr.

The ARP provides the translation from physical MAC addresses of Layer 2

to  the IP address of Layer 3 by mapping the MAC address to the IP

address.

Solution:

What would happen if, when you manually added an entry, you entered the correct IP address, but the wrong Ethernet address for that remote interface is as follows;

When the wrong Ethernet address is entered in the arp -s command, the

IP-address is resolved as belonging to the wrong Ethernet  or MAC

address, and if the address does not exist, it will not be possible to

connect to the correct or desired IP address.

Learn more about ARP here:

https://brainly.com/question/13068535

https://brainly.com/question/22696379

https://brainly.com/question/12975431

State the Common Ratio of the sequence 1/6, 1,
6, 36​

Answers

Answer:

6

Explanation:

The common ratio can be found by dividing terms with previous terms.

1 ÷ 1/6 = 6

6 ÷ 1 = 6

36 ÷ 6 = 6

6, you divide the terms

(Find the index of the smallest element) Write a function that returns the index of the smallest element in a list of integers. If the number of such elements is greater than 1, return the smallest index. Use the following header: def indexOfSmallestElement(lst): Write a test program that prompts the user to enter a list of numbers, invokes this function to return the index of the smallest element, and displays the index.

Answers

Answer:

Here is the function that returns the the smallest element in a list of integers

def indexOfSmallestElement(lst):

  smallest = lst.index(min(lst))

  return smallest

Explanation:

The function indexOfSmallestElement() takes a list of integers lst as parameter.

  smallest = lst.index(min(lst))

In the above statement two methods are used i.e. index() and min().

The first method index returns the index position of the list and the second method min() returns the minimum element of the list.

Now as a whole the statement min() first returns the smallest element in the list (lst) of integers and then the index() method returns the position of that minimum element of lst. At the end the index position of this smallest element in the list (lst) is stored in the smallest variable.

So lets say if we have a list of the following elements: [3,2,1,7,1,8] then min() returns the smallest element in this list i.e. 1 and index() returns the index position of this smallest element. Now notice that 1 occurs twice in the list and index() method only returns the the first index found in the list. So it returns the smallest index of the two index positions of 1 i.e 2. Hence the output is 2.

The test program is given below:

lst=list()  

num=int(input("Enter the list size: "))

print("Enter a list of numbers: ")

for i in range(int(num)):

  integers=int(input(""))

  lst.append(integers)

print("The index of the smallest element is: ")

print(indexOfSmallestElement(lst))

First the list named lst is created. After that the user is prompted to enter the size of the list which determines how many elements user wants to add to the list. num holds the size input by user. After that print statement displays the line"Enter a list of numbers: ". Next the for loop takes the integers from user num times. Suppose user want to enter 3 as list size then loop will take 3 elements from user. int(input("")) in this statement integer type input is taken from user using input() method. lst.append(integers)  statement is used to append these input integers into the list i.e. lst. print(indexOfSmallestElement(lst)) the statement calls the indexOfSmallestElement by passing lst to this method to return the index of the smallest element in the list of integers.

For a C array named a , write a C statement to declare a constant int named N and set it to the calculated number of elements in the array.

Answers

Answer:

const int N = sizeof(a)/sizeof(a[0]);

Explanation:

Given

Programming Language: C

Name of Array: a

Required

Statement to declare constant N and calculate the number of array element

The single statement is as follows;

const int N = sizeof(a)/sizeof(a[0]);

What the statement does  is that, it divides the size of the array by the size of the array data type on the system used in running the application;

Take for instance

The elements of array a is {1,2,3,7, 10} --- This is type integer

Let's assume that the size of integer datatype on my PC (for instance) is 4

That means the size of array will be 4*5 = 20

The number of array elements will be calculated by 20/4 = 5

A palindrome is a string that reads the same from the left and from the right. For example, mom and tacocat are palindromes, as are any single character strings. Given a string, determine the number of its substrings that are palindromes.

Answers

Answer:

The answer is below

Explanation:

Since palindrome is a string that reads the same from the left and from the right. For example, mom and tacocat are palindromes, as are any single character strings.

Therefore, given that the input word is: 'Redivider'

Hence, the Palindromic substrings are ['r', 'e', 'd', 'i', 'v', 'i', 'd', 'e', 'r', 'ivi', 'divid', 'edivide', 'redivider']. There are 13 palindromic substrings.

Since database data items are stored in compatible formats and logical connections among them are also stored, we describe database data as Group of answer choices

Answers

Answer:

integrated

Explanation:

Due to this compatibility, we describe database data as integrated. This is because data integration refers to the process of combining data from different sources into a single, and unified view/database. This creates a large gathering of various information that can all be interswapped and used with the same software as one another.

Which statement is written correctly?

Answers

Answer:

B.

Explanation:

In Javascript, the if should have a condition attached to it with parenthesis and curly braces.

The common channel signaling (CCS) system provides a separate network dedicated to control and signaling over the PSTN. This enables subscribers to establish calls on an on-demand basis.
A. True
B. False

Answers

The correct answer is A.True

Common Channel Signaling (CCS) is a type of signaling used in multichannel communications systems to control, account for, and manage traffic on all the channels of a link. User information is not sent over the common-channel signaling channel.

What CCS system provides a separate network?

Digital communication signaling takes the form of channel-associated signaling (CAS), often referred to as per-trunk signaling (PTS).

It uses routing information, like the majority of telecommunication signaling techniques, to send the voice or data payload to the intended recipient.

The SMS effectively serves as the CAS's administration hub. It is a hardware and software combination that is integrated with the CAS server. Each subscriber's information, including the TV stations they have chosen to subscribe to, is stored and managed via SMS.

Therefore, it is true that  (CCS) is a type of signaling where a collection of speech and data channels share an exclusive channel for control signals.

Learn more about system here:

https://brainly.com/question/29491324

#SPJ5

The terminal window wants to evaluate your current bash knowledge by using the ~/workspace/nested-directories folder:

a. cd into the nested-directories/nested-level-1/ directory by using an absolute path
b. cd into the nested-level-3/ directory by using a relative path
d. Move the entire ~/workspace/config/ directory to the nested-level-1/ directory

Answers

Answer:

a. cd into the nested directories/ nested - level - 1 / directory using an absolute path

Explanation:

The directory is a location on the hard disk, which is also called a folder. It contains the files and also contains the other directories called sub directories.

A path to a file is merged with a slash and determines the file or directory in the operating system. An absolute path is the location file or directory from the actual file system

The directory's absolute path starts with a slash, and all slashed in the directory separates the directions.

All directions in the absolute path are written on the left side. The last name in the path may belong to the file, and the pwd command can determine the current directory.

The relative path is the location of the file. It begins with the working directory. An absolute path is unambiguous and working with deeply nested directories.

There are two commands which are used such as

cd pwdcd is used for changing directorypwd is used for the working directory

We easily navigate the file system with the help of an absolute path.

Other Questions
You are a U.S. investor who purchased British securities for 2,340 pounds one year ago when the British pound cost $1.52. No dividends were paid on the British securities in the past year. Your total return based on U.S. dollars was __________ if the value of the securities is now 2,440 pounds and the pound is worth $1.61. A control variable is: A. Measured to show the effect of a change. B. Collected to draw conclusions. C. Changed to test a hypothesis. D. Kept the same to make an experiment a fair test. Find the gradient of the line l1 which has equation 4x-3y+5=0 . The Converting Department of Hopkinsville Company had 1,160 units in work in process at the beginning of the period, which were 30% complete. During the period, 24,400 units were completed and transferred to the Packing Department. There were 1,280 units in process at the end of the period, which were 60% complete. Direct materials are placed into the process at the beginning of production. Determine the number of equivalent units of production with respect to direct materials and conversion costs. If an amount is zero, enter in "0". What are at least 10 facts about George Washington? what is 76 over 9 divided by 14 over 3? write the chemical formulae for; nitrogen monoxide, hydrochloric acid, barium phosphate, ammonium hydroxide,nitric acid According to President Kennedy, how did the United States plan to respond to the crisis? Check all that apply. by declaring war against Cuba and the Soviet Union by pushing the Soviet Union to remove missile sites from Cuba by having the US Navy surround Cuba to create a quarantine by making certain that no additional missiles were shipped to Cuba by building new missile sites on several Caribbean islands PLEASEEE HELP ME ITS DUE ASAP PLS Y=x-8Y=x^2x-3 its graphs as a student how can you increase the awareness of air pollution in the community Ariel bought nuts at the grocery store to make trail mix for her nature club. She spent a total of $23.50 on almonds and cashews. She bought 1.5 pounds of almonds at $6.50 per pound. If cashews cost $5.50 per pound, how many pounds of cashews did she buy? What is the new mass/volume percent (m/v) of a KOH solution that is prepared by diluting 110 mL of a 6.0% (m/v) KOH solution to 330 mL Which of the following energy sources causes the most pollution? A. coal B. biomass C. neutrons D. geothermal What is the prepositional phrase? The decorator placed the chair next to the couch. when a person jumps up he or she is able to come down because of what? Which of the following includes all the plants, animals, bacteria and other living things in an area?- community-consumer-ecosystem-population 4x+23=9x-7Solve for x A piece of silver with a mass 368 g has a heat capacity of 87.2 J/C. What is the specific heat ofsilver?A. 0.385 J/g.CB. 0.237 J/g.CC. 0.184 J/g.CD. 1.322 J/g.CE. 4.184 J/g.C If s(x) = x 7 and t(x) = 4x2 x + 3, which expression is equivalent to (t circle s) (x)?