​4.19 write an if/else if statement that carries out the following logic. if the value of variable quantityonhand is equal to 0, display the message "out of stock". if the value is greater than 0, but less than 10, display the message "reorder". if the value is 10 or more, do not display anything.

Answers

Answer 1

A logical conditional expression, the if/else statement tests a condition and only runs the block of code below it if the condition is true.

If a certain condition is true, the if/else statement causes a block of code to be executed. Another block of code can be run if the condition is false. The "Conditional" Statements in JavaScript, which are used to carry out various operations depending on various conditions, include the "if/else" statement. A programming conditional statement known as a "if" performs a task or displays data if it is verified to be true. Here is a broad, non-programming language-specific example of an if statement.

Learn more about condition here-

https://brainly.com/question/19035663

#SPJ4


Related Questions

definition of Bystander

Answers

Answer:

According to the Oxford Dictionary a bystander is-
a person who is present at an event or incident but does not take part.

Explanation:

Basically someone who is there but does not play a role in anything that happens.

paige is designing a web page that will contain instructions for how to use a new web conferencing tool at her work. she formats best practice tips in green, and she formats warning information in red. which employees might struggle with this formatting?

Answers

Some employees might struggle with this formatting if they are colorblind.

What is employees?
A person engaged by such an employer to perform a specific task is known as an employee. Employers are in control of determining an employee's wage, hours worked, and working conditions. In exchange, employees have benefits that contractors do not. To complete a specific task, an employer may hire a particular sort of worker. Contrary to contractors, who enjoy greater independence than employees, an employer has control over what an employee accomplishes and how it will be carried out. Following a selection as an employee following an application and interview procedure, the employee is hired by the business. The candidate is chosen once the company determines that they are the most qualified candidate for the position for which they are employing.

To learn more about employees
https://brainly.com/question/27953070
#SPJ4

What is decision support system

Answers

A decision support system (DSS) is a computer program application that helps businesses make better decisions. Large volumes of data are analyzed, and the best solutions are then presented to an organization.

What is decision support system?

One might be argued that a DSS is anything that offers logical, quantifiable, and scientific data to assist leaders in making educated decisions. Examples of decision support systems include complex decision support software, manual systems, etc.

Note that it is a group of computerized information systems called decision support systems (DSS) provide assistance for decision-making processes. Interactive computer-based systems and subsystems.

Learn more about decision support system from

https://brainly.com/question/7655444
#SPJ1

what would be the best pseudocode for an algorithm to do the following? it reads an even number of characters then prints the first character, third character, fifth character, and so on. on a second output line, it prints the second character, fourth character, sixth character, and so on. use two queues to store the characters.

Answers

A simple, non-working structure of how we want code to behave is called pseudo code. It is frequently utilized for formulating solutions to problems and the initial steps in creating algorithms.

If a student receives a test score of at least 90

A collection of guidelines known as an algorithm is utilized to resolve issues that can be expressed in pseudocode. Algorithms are typically complete pieces of code that can be utilized to solve a problem. The pseudocode shown above might be used to generate the following algorithm in Java:

If testScore exceeds 90,

'otherwise if (testScore >= 80 && testScore = 89)'; studentGrade

gradeofstudent = "B";

}

Learn more about algorithm here-

https://brainly.com/question/22984934

#SPJ4

given knowledge of load balancing and clustering techniques, which configuration provides both fault tolerance and consistent performance for applications like streaming audio and video services?

Answers

The configuration that provides both fault tolerance and consistent performance for applications like streaming audio and video services is option A.) Active/Passive clustering.

What is the Configuration of a computer about?

A system's configuration in communications or computer systems refers to how each of its functional elements is organized in relation to their nature, number, and distinguishing features. Configuration frequently involves picking the right hardware, software, firmware, and documentation.

Note that One active server and one passive standby server make up an active/passive cluster. A third-party load balancer determines when a passive legacy failover is necessary and directs users to the appropriate node.

Therefore, When molecules hit the receiver surface in the active model, they are absorbed. The receiver is a hypothetical border that has no impact on the behavior of molecules in the passive model. To determine transformations between the receiver signals, two methods are described.

Learn more about configuration  from

https://brainly.com/question/13484609
#SPJ1

See full question below

Given knowledge of load balancing and clustering techniques, which configuration provides both fault tolerance and consistent performance for applications like streaming audio and video services?

A.) Active/Passive clustering

B.) Active/Active clustering

C.) First in, First out (FIFO) clustering

D.) Fault tolerant clustering

a functional policy declares an organization's management direction for security in such specific functional areas as email, remote access, and internet surfing.

Answers

A functional policy declares an organization's management direction for security in such specific functional areas as remote access, email, and internet surfing and using. Hence the given statement in this question is True.

The functional policy defines the overall functional operation of the organization. The functional policy of an organization from the security perspective defines the management direction to access the system remotely, access email, and internet surfing. The main purpose of the functional policy regarding the security of the organization is to protect the organization's data and information, and protect the organization's employees' data while surfing the internet.

The complete question is given below

"

a functional policy declares an organization's management direction for security in such specific functional areas as email, remote access, and internet surfing.

True

False

"

You can learn more security policy of an organization at

https://brainly.com/question/5673688

#SPJ4

Answer: True

Explanation: Got it right on the test

in the tftp protocol: if the client changes its port number on a subsequent connection, but the server does not, what prevents an old-duplicate data packet sent by the server from being accepted by the new client? if the server changes its port number on a subsequent connection, but the client does not, what prevents an old-duplicate din an rpc-like protocol in which multiple requests can be outstanding, and replies can be sent in any order: assume that requests are numbered and that ack[n] acknowledges reply[n]. should acks be cumulative? if not, what should happen if an ack is lost?ata packet sent by the server from being accepted by the new client?

Answers

The TCP transmit buffer is not cleaned if an ACK is lacking. This makes perfect sense given that the stack could need to relay the data again.

The next block of data cannot be put into the stack until an ACK is received if the amount of data in the TCP transmit buffer is larger than half the buffer size. The sender resends the same packet if the ACK does not get there before the timeout. Go-Back-N In the ARQ protocol, the sender constantly sends a certain number of packets (defined by the size of the transmission window) without waiting for the receiver to respond with an ACK signal. TCP has the ability to retransmit lost packets. The second transmission reconstructs the data stream by picking up dropped packets.

Learn more about data here-

https://brainly.com/question/10980404

#SPJ4

and are students at berkeley college. they share an apartment that is owned by . is considering subscribing to an internet provider that has the following packages​ available: package per month a. internet access $45 b. phone services 15 c. internet access phone services 50

Answers

They share an apartment that is owned by Brett. Brett is considering subscribing to an Internet provider that has the following packages available.

1. Evan Brett

Stand-alone $67.50 $22.50

Incremental (Brett primary)$65.00 $25.00

Incremental (Evan primary) $75.00 $15.00

Shapley value $70.00 $20.00

2.The Shapley value approach is recommended.

Evan Brett

Stand-alone $67.50 $22.50

Incremental (Brett primary)$65.00 $25.00

Incremental (Evan primary) $75.00 $15.00

Shapley value $70.00 $20.00

a. Stand-alone cost allocation method.

Evan: $75/$75 + $25×$90

=3/4 ×90

=67.50

Brett: $25/$75 + $25 ×$90

=1/4×$90 = $22.50

b. Incremental cost allocation method.

Let assume that Brett (the owner) is the primary user while Evan is the incremental user:

User Costs Allocated Cumulative Costs

Allocated

Brett $25 $25

Evan 65($90 – $25) $90

Total $90

This method may lead to some dispute over the ranking because Evan pays only$65 despite his prime interest in the more expensive Internet access package while Brett could argue that if Evan were ranked first he would have to pay $75 due to the fact he is the main Internet user. Which means Brett would only have to pay $15.

Assume Evan is the primary user and Brett is the incremental user:

User Costs Allocated Cumulative Costs

Allocated

Brett $25 $25

Evan 65($90 – $25) $90

Total $90

c. Shapley value (average over costs allocated as the primary and incremental user).

User CostsAllocated

Evan ($65 + $75) ÷2 = $70

Brett ($25 + $15) ÷2 = $20

Learn more about internet:

https://brainly.com/question/1364683

#SPJ4

Write a program that will monitor the weather and road conditions of the Flat Bridge in St. Catherine
and display a warning sign accordingly. Accept values for the type of weather (Rainy or Dry) and the
condition of the road (Flooded or Wet). If the weather is rainy, then if the road is flooded, display “Road
flooded...please detour”, otherwise display “Road wet...drive with caution”. If it is not rainy (i.e. dry),
display “Safe journey...drive with care”. In addition to the IPO, pseudocode OR flowchart please do trace table and PYTHON Code

Answers

A program that will monitor the weather and road conditions of the Flat Bridge in St. Catherine and display a warning sign accordingly is given below:

The Program

Program code ( main . py ) -

# read weather and road type

weather = input ( " Enter the weather type ( Rainy | Dry ) : " )

road = input ( ' Enter the road type ( Flooded | Wet ) : ' )

# check if it is rainy

if 'rainy' = = weather.lower():

   # road is flooded

   if 'flooded' == road.lower():

       print('Road flooded…please detour')

  else:  # not flooded

       print('Road wet…drive with caution')

else:  # dry weather

  print('Safe journey…drive with care')

Sample Output-

Enter the weather type(Rainy | Dry): rainy

Enter the road type(Flooded | Wet): wet

Road wet…drive with caution

Read more about programming here:

https://brainly.com/question/23275071
#SPJ1

What virtual, logically defined device operates primarily at the data link layer to pass frames between nodes?.

Answers

This vSwitch (virtual switch) or bridge is a logically defined device that operates at the Data Link layer to pass frames between nodes.

WHAT ARE NODES?

To put it simply, a node is any device that connects other devices connected to one another over a network and permits data to be sent and received from one endpoint to the other. Network nodes include hardware like printers, switches, and routers.An electronic gadget called a node. The physical components are what have the ability to send, receive, or forward data.Besides being an electronic device, a computer can send, receive, or forward data. As a result, we can argue that a computer is a node in a computer network for this reason. An electronic gadget called a node. The physical components are what have the ability to send, receive, or forward data.

Hence,A logically defined device called a vSwitch (virtual switch) or bridge operates at the Data Link layer to pass frames between nodes.

learn more about nodes click here:

https://brainly.com/question/13992507

#SPJ4

factorial(n)  int:a.this function takes one argument n as a string and returns n! (the factorial of n), if n is not a non-negativeint, return none (hint: the string method isdigit() may be useful). your factorial calculation must be based on the following formula (you are allowed to calculate the values in reverse order, but you are not allowed to simply call math.factorial(n) or similar): note: by definition 0!

Answers

#include <bits/stdc++.h>

typedef int i;

i factorial(i n) {

   return (n>=1) ? n*factorial(n-1) : 1;

}

i main(i argc, char* argv[]) {

   

   i idx; std::cin>>idx;

   assert(idx>=0);

   std::cout << "Factorial of " << idx << " is " << factorial(idx) << std::endl;

   

   return 0;

}

three computers were lined up in a row. the dell (d) was to the left of the viglen (v) but not necessarily next to it. the blue computer was to the right of the white computer. the black computer was to the left of the hewlett packard (hp) pc. the hewlett packard was to the left of the viglen (v). what was the order of the computers from left to right?

Answers

The order of the computers from left to right are-

Dell ;HP; Viglencolor; black white blueWhat is meant by the term arrangement?Arrangement numbers, also known as permutation numbers or merely permutations, are indeed the number of different ways a set of items can be ordered as well as arranged. An arrangement of things is simply a combination of them in general. A combination (sequence is ignored) or permutation gives the amount of "arrangements" of n items (order is significant). When dealing with permutation, one should consider both selection and arrangement.

For the given three computers -

dell (d) was to the left of the viglen (v).the blue computer was to the right of the white computerthe black computer was to the left of the hewlett packard (hp) pc.the hewlett packard was to the left of the viglen (v).

Thus, the order of the computer becomes from left to right; Dell ;HP; Viglen.

To know more about the arrangement, here

https://brainly.com/question/6018225

#SPJ4

Designing a website for a new nonprofit organization is an example of

Answers

Answer:

A well-designed website can serve as the hub of your nonprofit's online presence, helping you educate new supporters, market programming and events, and pull in donations. For some nonprofits, however, creating a top-notch website design can feel impossible, especially if your team is new to using web design tools and tips.

If you've found yourself in a web design rut, you're in the right place. One of the best ways to kickstart your own design journey is to get inspired by other high-quality design work. By taking a look at other engaging and easy-to-use websites, you can see what's possible for your own website design and learn how to balance quality content with captivating aesthetics.

In this article, we'll showcase 30+ of the best nonprofit websites on the internet today, and then set you up to dig into creating your own with a few design tips. Specifically, we'll cover:

You have decided to edit your photos using the RAW file. What are some benefits of working with the RAW format? Select all that apply.

RAW files are processed, making it easier to edit
The images are already optimized
More color options when editing
More control over adjusting the White Balance

Answers

Since you have decided to edit your photos using the RAW file, the  benefits of working with the RAW format is option d: More control over adjusting the White Balance.

What are the benefits of using RAW?

One of the biggest advantages of RAW is the ability to restore shadows and highlights during post-processing without adding the granular noise typically associated with high ISO settings. If you have significantly overexposed or underexposed, RAWs are fairly forgiving.

Therefore, it has Better detail and dynamic range as you can capture more detail and a wider dynamic range from your camera sensor because to RAW's vastly increased image information.

Learn more about RAW format from

https://brainly.com/question/27977505
#SPJ1

using arrays, write a program to allow a user to enter any number of double values up to 10 numbers. the user should enter -9999 to quit entering. display an error message if the user quits without entering any numbers; otherwise, display each entered value and its distance from the average.

Answers

An array is a grouping of identically typed elements that are stored in adjacent memory locations and may each be separately referred to using an index to a special identifier.

import scanner from java.util;

distance from the average in public class

{

dynamic double customerValues = new double[20];

double-static userInput;

totalValues static int = 1;

0 static int y;

totalUserInput static double = 0;

twofold static average;

void public static main (String[] args)

{

getInfoFromUser();

calculation();

}

getInfoFromUser() is a public static void.

input for the scanner = new Scanner(system.in);

"Enter an integer or enter 99999 to quit:" System.out.print;

input.nextLine()); userInput = Double.parseDouble;

If userInput equals 99999,

Enter a value here: System.out.println;

as long as (userInput!= 99999 && totalValues userValues.length)

{

userInput = userValues[totalValues];

userInput is equal to totalUserInput plus userInput.

"Enter an integer or enter 99999 to quit:" System.out.print;

input.nextLine()); userInput = Double.parseDouble;

If userInput equals 99999,

break;

totalValues++;

}

}

calculation() is a public static void.

average = all-user input divided by all-values;

"You have entered " + totalValues + " numbers and their average is " +avg," says System.out.println;

with respect to (y = 1; y totalValues; ++y)

{

System.out.println(userValues[y] + " is away from the average" + (userValues[y] - avg) + ",");

}

}

}

Learn more about array here-

https://brainly.com/question/13107940

#SPJ4

Growth mindset is the idea that you can do something. By simply adding the word yet to a sentence, you can change your thoughts from a fixed mindset to a growth mindset. For example, "I can’t manage my time well" vs "I can’t manage my time well, yet. " After reviewing this week’s resources on the growth vs. Fixed mindset, we now understand how our thinking can influence the successes we achieve and how we overcome and view previous challenges

Answers

       Growth mentality: People who have a growth mindset think that even their most fundamental skills can be improved with commitment and effort; talent and intelligence are merely the starting point. This point of thinking fosters the resilience and passion of learning needed for outstanding success. (Dweck, 2015)

What a development mindset is and why it's critical to cultivate one.

       A growth mindset emphasizes the effort and hard work that lead to achievement while accepting (and even celebrating) challenges. Children that have a development mentality think they can learn anything and are adept at using the word YET.

       People that adopt a growth mentality might say things like: I still gain knowledge even when I fail. Criticism is a tool that improves me. There's always room for improvement. I can do anything with persistence and determination.

      "A growth mindset is the belief that one's abilities and intelligence may be enhanced through hard work and perseverance. They persevere in the face of challenges, take advice from criticism, and look for motivation in others' achievements."

To Learn more About Growth mentality, Refer:

https://brainly.com/question/24312405

#SPJ4

n processes are time-sharing the cpu, each requiring t ms of cpu time to complete. the context switching overhead is s ms. (a) what should be the quantum size q such that the gap between the end of one quantum and the start of the next quantum of any process does not exceed m ms? (b) for n

Answers

When M = 450, Q = 82 CPU use was wasted by 8.889%. When M = 90, Q = 10 Total CPU time lost was 44.44%. When M = 50,Q = 2 CPU time wastage was 80%.

The percentage of the CPU utilised during the designated time period is summarized in the CPU Utilization report. Normally, the Core uses between 30 and 40 percent of the entire CPU during off-peak hours and between 60 and 70 percent during peak hours. About 75% of opportunities to complete tasks are lost. The main memory delay, which can take up to 100 cycles, is the most frequent cause of this.

Data Provided:

Process = n

T = ms time

Context switch overhead is equal to S.

where M denotes overall overhead.

Learn more about wastage here-

https://brainly.com/question/2062616

#SPJ4

you are working at the command line and want to add the read-only attribute to a file and remove the hidden attribute. which command would you use?

Answers

To add the Read-only attribute and remove the Hidden attribute, use attrib +r -h. To remove the write protection on the chosen drive, enter "attributes disk clean read only" and hit "Enter".

At the Command prompt, enter the command attribute -r +s "drive :path folder name" (be sure to include the drive letter, entire path, and folder name). By using this command, the file's read-only attribute will be removed and replaced with a system attribute. Restart the computer and click the F5 key when you see the message "Starting MS-DOS" or the MS-DOS version if the computer is unable to load MS-DOS. The MS-DOS default settings should be loaded by pressing this key.

Learn more about command here-

https://brainly.com/question/14583083

#SPJ4

Problem: Feed Nibble Monster Till Full

Write a program that generates a number in [0, 500] at the beginning -- this corresponds to how hungry the monster is -- and keeps asking the user to feed the monster until that number falls to zero.

Each time the user feeds the monster a nibble, hunger decreases by the decimal value of the character (i.e. if the user feeds 'A' hunger decreases by 65). But when the user feeds the monster some character that isn't a nibble, the hunger increases by the decimal value of the character (since puking depletes energy).

Use while loop.

Sample runs:

Notice the loop exits after one iteration, because hunger was very low and one nibble made the monster full:

Notice hunger increasing after non-nibble (pink highlight):

Notice that the program just keeps going when the user feeds the monster only non-nibbles. Do you think the program will keep running forever if the user never gives the monster nibbles?

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that write a program that generates a number in [0, 500] at the beginning -- this corresponds to how hungry the monster is -- and keeps asking the user to feed the monster until that number falls to zero.

Writting the code:

import java.util.Scanner;

public class App {

   public static void main(String[] args) throws Exception {

       int hunger = getRandomNumber(0, 500);

       char ch;

       boolean flag = true;

       Scanner scan = new Scanner(System.in);

       while (hunger > 0) {

           System.out.println("Monster Hungry :E");

           System.out.println("H U N G E R: " + hunger);

           System.out.print("Feed Monster Nibble :0 ");

           ch = scan.next().charAt(0);

           if (Character.isLetterOrDigit(ch)) {

               hunger -= ch;

               if (hunger <= 0) {

                   System.out.println("Monster full :).\nYou may go");

               } else {

                   if (flag) {

                       System.out.println("yum!");

                       flag = !flag;

                   } else {

                       System.out.println("m04r f00d!");

                       flag = !flag;

                   }

               }

           } else {

               System.out.println("Ewww! :o=" + ch);

               hunger += ch;

           }

       }

       scan.close();

   }

   public static int getRandomNumber(int min, int max) {

       return (int) ((Math.random() * (max - min)) + min);

   }

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

natasha, a network security administrator for an online travel portal, noticed that her website was the victim of an sql injection. she decided to study the sql queries to find which one made this vulnerability in the database, and she noticed the following sql code piece executed on the database: 'whatever' and email is null; what has been accessed by the attacker running this sql injection?

Answers

The information which has been accessed by the attacker running this SQL injection is that: The attacker has determined the names of different types of fields in the database.

What is SQL injection?

In Cybersecurity, SQL injection can be defined as code injection technique which is typically used by an attacker to exploit any web security vulnerability in a database especially by interfering with the queries that are being sent through a software application to the database.

What is a database?

A database can be defined as an organized and structured collection of data that're stored on a computer system as a backup and they're usually accessed electronically.

In this context, we can reasonably infer and logically deduce that this attacker was able to access the names of different types of fields which are stored in the online travel portal's database.

Read more on SQL injection here: https://brainly.com/question/25823241

#SPJ1

Complete Question:

Natasha, a network security administrator for an online travel portal, noticed that her website was the victim of an SQL injection. She decided to study the SQL queries to find which one made this vulnerability in the database, and she noticed the following SQL code piece executed on the database: 'whatever' AND email IS NULL;

What has been accessed by the attacker running this SQL injection?

The attacker accessed the data of specific users.

The attacker accessed the entirety of email address data from all users in the database.

The attacker has used the SQL injection to delete the table in the database.

The attacker has determined the names of different types of fields in the database.

Why is jake not able to see the red jaguar? they are cleanig it for the day repairs are being done it is no longer in the pyramid it is to dark in the pyramid

Answers

Jake is not able to see the red jaguar because it is no longer in the pyramid.

What is Jaguar?

Jaguar is a luxury vehicle brand owned by Jaguar Land Rover, a British multinational automobile company headquartered in Whitley, Coventry, England. Jaguar Cars was the firm in charge of Jaguar car manufacture until its operations were entirely integrated with those of Land Rover to form Jaguar Land Rover on January 1, 2013. Jaguar began as the Swallow Sidecar Company in 1922, producing motorcycle sidecars before creating passenger car bodywork. Under the management of S. S. Automobiles Limited, the firm expanded to include full cars produced in collaboration with Standard Motor Co, many of which had the Jaguar model name.

To learn more about Jaguar

https://brainly.com/question/1671953

#SPJ4

Answer:

c. it is no longer in the pyramid

Explanation:

edge 2023

eve is investigating a security incident where the user of a web application submitted an internal url to the application and tricked the web server into retrieving sensitive data from that url and displaying it as output. what term best describes this attack?

Answers

The term cross-site scripting is best describes this attack. Some web programs contain a form of security flaw known as cross-site scripting (XSS).

Some web programs contain a form of security flaw known as cross-site scripting (XSS). XSS attacks give attackers the ability to insert client-side scripts into web pages that other users are seeing.

A cross-site scripting flaw could be exploited by attackers to get around access restrictions like the same-origin policy. Up to 2007, over 84% of all security vulnerabilities identified by Symantec used web-based cross-site scripting.

Depending on the sensitivity of the data handled by the vulnerable site and the type of security mitigations applied by the site's owner network, XSS consequences can range from a little annoyance to a serious security issue.

To know more about cross-site scripting click on the link:

https://brainly.com/question/20316643

#SPJ4

write a program that calculates an adult's fat-burning heart rate, which is 70% of the difference between 220 and the person's age respectively. complete fat burning heart rate() to calculate the fat burning heart rate.

Answers

The software serves as an example of an exception.

Program mistakes are managed using exceptions.

The Python program that uses comments to clarify each line is as follows:

This line defines the function get age.

Defining get age()

Age input is taken for this.

age = int("Age:" input)

If the age is between 18 and 75, this returns the age (inclusive)

if (age >= 18 and = 75):

inbound age

#If not, the ValueError is returned.

else:

declare ValueError ("Age is out of range or invalid")

The fat burning heart rate function is defined by this.

age = def fat burning heart rate

This gives you your heart's fat-burning rate.

return (0.7 * age - (220))

#The main starts right here.

#The attempt block is now in motion.

try:

Age input is taken for this.

get age = age ()

This displays your heart rate when burning fat.

fat burning heart rate(age),"bpm", "Fat burning heart rate for a", age,"year-old:"

Learn more about program here-

https://brainly.com/question/3224396

#SPJ4

The following situation uses a robot in a grid of squares. The robot is represented by a triangle which is initially in the top left square facing downwards.
Create a solution that would enable the robot to be in the position found below. Make sure to use CAN_MOVE () to receive credit.

Answers

Using knowledge in computational language in python it is possible to write a code that Create a solution that would enable the robot to be in the position found below.

Writting the code:

import random

lis=[]

for i in range(0,10):

 num=random.randint(1,12)

 lis.append(num)

tot=sum(lis)

avg=tot/10

print(avg)

See more about python at brainly.com/question/18502436

#SPJ1

5.14 lab: convert to reverse binary write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary. for an integer x, the algorithm is: as long as x is greater than 0 output x modulo 2 (remainder is either 0 or 1) assign x with x divided by 2

Answers

A program that prints output of an algorithm in reverse is given below, complete with the algorithm:

The Algorithm

step1 = input("what number? ")#gets your input

step2 = int(step1) #makes sure it's an int not float

step3 = bin(step2) #converts it to binary (you method doesn't work for e.g. 7)

step4 = step3.replace("0b", "") #removes 0b from the binairy number

step5 = step4[::-1] #reverses the string

print (step5)

The Program

num = int(input())

while num > 0:

   y = ( num % 2 )

   print( y , end = ' ' )

   num = ( num / / 2 )

print ( )

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

string = " "

while num > 0 :

   y = str ( num % 2 )

   string + = y

   num = ( num / / 2 )

reverse = string [ : : - 1 ]

print ( reverse )

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

a core authentication server is exposed to the internet and is connected to sensitive services. what are some measures you can take to secure the server and prevent it from getting compromised by a hacker? select all that apply.

Answers

The measures you can take to secure the server and prevent it from getting compromised by a hacker are the use of option b, c and d:

Secure firewall Access Control Lists (ACLs) Bastion hostsWhat is core authentication?

The process of confirming a user's identification is called authentication. The process of deciding whether a user has access to a resource is known as authorization.

Secure or Discreet Firewall: A safe firewall configuration should forbid connections to systems and networks that are not trusted.

Bastion Hosts: What is allowed to run on Bastion hosts is restricted and carefully hardened. Bastion hosts are typically assumed to be exposed to the internet, thus extra care is taken to harden and lock them down to reduce the likelihood of compromise.

Then the Lists of access controls (ACLs). To secure sensitive services without compromising the convenience of the entire business, secure configurations, such ACLs, could be enabled on selected bastion hosts.

Learn more about core authentication from

https://brainly.com/question/17093485
#SPJ1

See options below

Decker service

Secure firewall

Access Control Lists (ACLs)

Bastion hosts

you have a computer that runs windows 10. your computer has two volumes, c: and d:. both volumes are formatted by using the ntfs filesystem. you need to disable previous versions on the d: volume. what should you do?

Answers

You have a computer that runs windows 10. your computer has two volumes, c: and d:. both volumes are formatted by using the ntfs filesystem. you need to disable previous versions on the d: volume. we should change it From System Properties, modify the System Protection settings.

By default, System Protection is often switched off for other drives and on for your boot disc. Type Control Panel into the search bar to launch the default Control Panel. Click Configure after selecting the drive you want to modify. To turn off or enable system protection, click the appropriate button.

System Protection, according to Microsoft, is a feature that creates and saves information about system files and settings on a regular basis. Additionally, System Protection keeps older versions of changed data.

If something goes wrong with your computer, the System Protection feature will let you go back in time and protect your whole Windows installation. The most important thing is to turn it on! Do the following to see if System Protection is activated: Activate File Explorer.

Learn more about windows:

https://brainly.com/question/25243683

#SPJ4

you are the it administrator for a small corporate network. some of your workstations are having issues, and you need to correct them with a firmware update. in this lab, your task is to: restart the computer and enter the bios. answer question 1. use the c:\bios updater.exe program to update the bios. restart the computer and enter the bios. answer question 2.

Answers

The proper way to fix the firmware issues is to update the firmware. This can be done automatically by Windows update. It also can be done manually by visiting the hardware manufacturer's website and downloading the correct firmware and installing it.

About BIOS

BIOS (Basic Input Output System) is the firmware that loads before your Windows or whatever operating system you have-run. It performs basic input and output procedures to check the system devices of your computer, including the RAM, keyboard, mouse, hard drive, and other hardwares. When there's no issues, it will load your operating system. To access BIOS hit the Delete key several times on booting mode, or Ctrl + Alt + Delete on older machines.

Learn more about Windows 10 https://brainly.com/question/15108765

#SPJ4

Calculate the standard deviation for the following data set: 2, 9, 10, 4, 8, 4, 12

What is the standard deviation and the mean

Answers

Answer:

2+5)6

Explanation:

if qujs is 9 then u is 10

you manage a network that has multiple internal subnets. you connect a workstation to the 192.168.1.0 subnet using the default subnet mask. this workstation can communicate with some hosts on the private network, but not with other hosts. you run ipconfig /all and see the following:

Answers

The cause of the problem will be Incorrect default gateway.

A TCP/IP computer cannot communicate with external networks, but it can communicate with the systems on the LAN (as no router is required) if its configuration does not include a default gateway address.

Click the Start button, then choose Command Prompt from the context menu. Step 2: Type "ipconfig" into the Command Prompt window and hit [Enter]. The numbers listed in the Default Gateway section are the IP Address of your router.

30 seconds after unplugging the router, connect it back in. Reconnecting to the internet may take some time. Before continuing, get in touch with your Internet Service Provider if you're still having trouble connecting to the internet. Transfer the Ethernet connection from the Internet Gateway to another router port.

Learn more about default gateway:

https://brainly.com/question/2692918

#SPJ4

The complete question is ''You manage a network that has multiple internal subnets. You connect a workstation to the 192.168.1.0/24 subnet.

This workstation can communicate with some hosts on the private network, but not with other hosts. you run ifconfig /all and see the following.

Ethernet adapter Local Area Connection : Connection- specific DNS Suffix . : mydomain . local Description . .Broadcom network adapter

Physical Address . : 00 - AA-BB-CC-74-EF

DHCP Enabled . . . . . . . No

Autoconfiguration Enabled . Yes

IPv4 Address 192 . 168 . 1 . 102(Preferred)

Subnet Mask . 255 . 255 . 255 . 0

Default Gateway : 192 . 168 .2.1

DNS Servers . . 192 . 168 . 2 . 20

What is the most likely cause of the problem?

Other Questions
Why might a writer choose to use repetition in a poem?OA. To keep the poem from feeling traditionalOB. To create a sense of discontinuityOC. To surprise the reader with a new ideaOD. To emphasize a certain word or image descibe and rationalize how a firm's logistics and supply chain strategy will likely evolve as a firm shifts from no international strategy to a global strategy. what are the challenges as the firm evolves through this change? indicate the level of measurement for the data set described. political orientation as reported by students in a political science class (left, center, right) Read this passage about the invention of the modern seismograph.Using knowledge of earthquake waves and motion, John Milne invented the modern seismograph in 1880. This device records the movements of different waves created by an earthquake as they move through Earth's interior and across its surface. This data allowed scientists to discover more about Earth's interior such as the fact that the core is solid.QuestionWhat did the invention of the seismograph allow scientists to discover?Responses1. There are different types of earthquake waves.2. Earthquakes can be predicted.3. Earth's core is solid.4. Earthquake damage is due to waves of energy. how many times larger is a square kilometer than a square dekameter 1. when the partnership goes out of business and the normal operations are discontinued, the accounts should be adjusted and closed except the asset accounts. the liability accounts. the owners' equity accounts. all of these choices are correct. IMPACT OF TRANSPORTATION INNOVATION ON SHAPING PATTERNS OF SETTLEMENT TO ECONOMIC DEVELOPMENT A printing service charges a set-up fee of $14.50 for each order and 15 cents more for each copy. The total cost, C (in dollars), for an order of x copies is given by the following function.C (x) = 0.15x + 14.50What is the total cost for an order of 30 copies? What do you put in each box The following text is from a fictitious personal blog.[1] In recent years, many people have turned from dairymilk to plant-based milks, such as soy or almond milk,with the hope that they will be drinking a more nutrisiousproduct. [2] The use of plant-based milks is widespreadenough that there is substantial value to questioning thisassumption: Is the use of such products truly healther?[3] Aparently so. [4] I have seen data on U.S. News andWorld Report that fortified soy milk contains as muchprotein and calcium as cow's milk, and less sugar. [5]Speaking only for myself, this comes as a substantialrustration: I strongly prefer the smooth and familiaraste of dairy to its pungent and sometimes oddlyextured plant-based counterparts. [6] Frankly, I highlyoubt that these data are true.-"Are Plant-Based Milks Better?"Eleanor StruttWhich sentence from the source most signals bias?Osentence 1O sentence 2Osentence 4O sentence 5 Insert the missing colon in the following sentences to emphasise the key words.a. The community expects one thing from police officers fairness.b. Dedication and bravery the two main attributes of any good police officer. solve the following equation 23 + 23 = 5y + 11 an athlete stretches a spring an extra 29.0 cm beyond its initial length. how much energy has he transferred to the spring, if the spring constant is 68.0 n/cm ? Eric orders 3 large cheese pizzas. There is a $2 delivery fee for each pizza. He pays a total of $42. Which equation can be used to find the price, r, of each pizza? Evaluate the expression when y=4 and x=6 so what is x+8y -109-8-7-6-5-4-3-2-1 0 1 2 3 4 5 6 7 8 9 10 Which of the following inequalities is represented by the number line? The length of a rectangle is 2 cm longer than its width.If the perimeter of the rectangle is 44 cm, find its area. Which explorer is believed to have discovered america 500 years before christopher columbus? ferdinand magellan leif eriksson erik the red sir francis drake. Complete the sentencePercent means per _______. how does y sqaured eqaul 169