You would like to create a practical program that will randomly select student names from a list for your instructor to be able to call on people. What are the steps for creating this program? Explain your answer in 3-5 sentences

Answers

Answer 1

To create a program that randomly selects student names from a list, begin by crafting the roster. Names can be manually typed or loaded from a saved document.

What is the next step?

Next, generate a random number that falls within the range of the listed students. This created value will coincide with the assigned index for selection.

To avoid repetitiveness until all names have been used, display the chosen name to your preference and remove it from the list. For this project any programming language could suffice, however, selecting an easily readable option like Python is highly recommended.

It readily enables loading information from files as well as generating appropriately guided random numbers.

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1


Related Questions

explain about your business and sales after covid 19 pandemic​

Answers

The global economy has undergone tremendous disruption brought about by the pandemic, with some sectors being grievously hit while others have fresh openings.

What are the effects?

Its aftermath has hastened the conversion to e-business, remote work, and digital remodeling as firms have poured significant capital into technological solutions in order to ameliorate compliance to the current state of affairs. Companies further evaluated their delivery strategies and diversified places from where they sourced materials so as to minimize any single nation's or region’s influence.

Altogether, the pandemic has showcased the indispensable value of pliancy, robustness, and novelty for business operations, and those entities that were able to adeptly conform to the existing condition are predicted to thrive in the post-COVID period.

Read more about business here:

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

2 al Class A computer networks are identified by IP addresses starting
with 0.0.0.0, class B computer networks are identified by IP addresses
starting with 128.0.0.0 and class C computer networks are identified by IP
addresses starting with 192.0.0.0. (Class D networks begin with 224.0.0.0.)
Write these starting IP addresses in binary format.
b) Using the data above, write down the upper IP addresses of the three
network classes A, B and C.
c) A device on a network has the IP address:
10111110 00001111 00011001 11110000
i) Which class of network is the device part of?
ii) Which bits are used for the net ID and which bits are used for the
host ID?
iii) A network uses IP addresses of the form 200.35.254.25/18.
Explain the significance of the appended value 18.
d) Give two differences between IPv4 and IPv6.

Answers

Due to its primary three octets beginning with the binary form 110, the device belongs to a Class C network.

How to explain the class

ii) In Class C networks, the leading 24 bits thereof stand for the net ID and the latter 8 bits register the host ID.

Two disparities between IPv4 and IPv6 are:

IPv4  on 32-bit addresses conversely IPv6 opts for 128-bits ones, thereby equipping IPv6 with an abundance booster of addresses which permits more devices alongside distinct numbers.

Whereas IPv4 seeks out an organized addressing structure with subnetting, IPv6 wields a smooth addressing etiquettes that relies on prefix delegation eliminating the prerequisites for any sort of subnetting.

Learn more about computer on

https://brainly.com/question/24540334

#SPJ1

Description: Given the IP address and number of hosts in the first two columns, determine the
number of host bits required and write the network number with the correct prefix. The first one is completed for you, and the next two are partially completed.

Answers

In IP address, we have 32 bits. If we are using x bits to represent no of hosts then we will use remaining 32-x bits to represent no of networks.

What are Host Bits?

It can be define as no of bits required to represent no. of hosts. In IP address, if we have no of host bits = 8 , then by using this we can represent only 2^8-2 hosts only.

Because all 0's and all 1's are not assigned to any host because they represent Network id and limited broadcast address respectively.

In IP address, we have 32 bits. If we are using x bits to represent no of hosts then we will use remaining 32-x bits to represent no of networks.

Learn more about network on

https://brainly.com/question/1027666

#SPJ1

python code to perform a transfer app

Answers

this a answer, thanks

When using the ________ logical operator, both subexpressions must be false for the compound expression to be false. a. either or or and b. not c. or d. and

Answers

When using the and logical operator, both subexpressions must be false for the compound expression to be false

What are logical operators?

A logical operator, also known as a boolean operator, is a symbol or keyword used in computer programming and logic to perform logical operations on one or more boolean values.

Boolean values are binary values that represent true or false, or in some cases, 1 or 0.

There are three common logical operators:

AND: Denoted by the symbol "&&" in many programming languages, the AND operator returns true if both operands are true, and false otherwise.

OR: Denoted by the symbol "||" in many programming languages, the OR operator returns true if at least one of the operands is true, and false otherwise.

NOT: Denoted by the symbol "!" in many programming languages, the NOT operator, also known as the negation operator, is a unary operator that takes a single boolean operand and reverses its logical value.

Learn more about logical operator at

https://brainly.com/question/15079913

#SPJ1

Digital photography 1b quiz 8 anyone have the answers?

Answers

The answers related to metering in photography are given as follows.

What is the explanation for the above response?

In center-weighted metering, the center of the picture is used to determine exposure. If your subject was in the middle of the frame, you would employ this kind of metering.

Note that a metering setting that only collects data from a tiny portion of the center of the frame, often around 10%.

Instead of altering exposure to account for the significantly stronger light around the hairline, spot metering enables the camera to measure the light reflected off the subject's face and expose appropriately for it.

Learn more about Digital photography at:

https://brainly.com/question/7519393

#SPJ1

Full Question:

Although part of your question is missing, you might be referring to this full question:


1) What is center-weighted metering?
2) What is partial metering?

1. a printed portfolio

2. sheet protectors.

3. Shutterfly

4. forensic photographer

5. managing cash flow.

6. Annie Leibowitz

7. freewriting

8. provenance.

9. poetry or folksy sayings

10. fashion

11. Mike Brodie

12. focus and depth and field

13. to generate ideas that will help you to compose an original and creative artist’s statement

14. write her artist’s statement

15. ethnography

Explanation: All of these answers are correct :)

This program is half of your final exam!! make sure it is syntax free before submission. Take time to test the program to ensure your logic is correct. Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the relevant data. Function taxAmount: This function computes and returns the tax owed. To calculate the taxable income, subtract the sum of the standard exemption, the amount contributed to a pension plan, and the personal exemption, which is $1,500 per person. (Note that if a married couple has two children under the age of 14, then the personal exemption is $1,500 * 4 = $6,000)

Answers

Here's a Python program that implements the requirements:

def getData():

 marital_status = input("Enter marital status (single/married): ")

 gross_salary = float(input("Enter gross salary: "))

 pension_contribution_rate = float(input("Enter percentage of gross income contributed to a pension fund: "))

 if marital_status.lower() == "married":

   children_under_14 = int(input("Enter number of children under age 14: "))

   personal_exemption = 1500 * (2 + children_under_14)

 else:

   personal_exemption = 1500

 

 return marital_status, gross_salary, pension_contribution_rate, personal_exemption

def taxAmount(marital_status, gross_salary, pension_contribution_rate, personal_exemption):

 if marital_status.lower() == "married":

   standard_exemption = 7000

 else:

   standard_exemption = 4000

 taxable_income = gross_salary * (1 - pension_contribution_rate/100) - standard_exemption - personal_exemption

 if taxable_income <= 15000:

   tax = taxable_income * 0.15

 elif taxable_income <= 40000:

   tax = 2250 + (taxable_income - 15000) * 0.25

 else:

   tax = 8460 + (taxable_income - 40000) * 0.35

 return tax

# Main program

marital_status, gross_salary, pension_contribution_rate, personal_exemption = getData()

tax = taxAmount(marital_status, gross_salary, pension_contribution_rate, personal_exemption)

print("Tax owed: $%.2f" % tax)

The getData() function prompts the user for the relevant information and returns it as a tuple. The taxAmount() function takes in the data provided by getData() and calculates the tax owed based on the provided formula. The main program calls getData() and taxAmount() and prints the result.

Note that the program assumes that the input values are valid and does not perform any error checking. It also assumes that the user enters the percentage of gross income contributed to the pension fund as a decimal number (e.g., 6% is entered as 0.06).

Other Questions
The gene in humans was radically different from that found in chimps. There had been a large series of (mutation). most serious direct medical consequence of continuous opioid use is Ella makes a model of a log cabin that is 8 inches long at a scale of 1/2.5 feet. She makes a second model of the same building at a scale of 1/2.5 feet. How much longer is the second model than the first? Write an inequality to represent the domain of the situation : Write an inequality to represent the range of the situation : If the equation of the function is c (x) = n (1.35)^x, the value of n is : Find the sum of 35 and 425 in simplest form. Also, determine whether the result is rational or irrational and explain your answer. The techniques used during a physical examination include all of the following EXCEPT _____.percussiondiagnosisauscultationpalpation Risk contingency plan a ____ simulation is one in which the quantities to be estimated are defined over a theoretically infinite time frame. group of answer choices A. terminating B. steady-state C. discrete D. stochastic Her description was logical, detailed, and she even included how people would survive without oxygen and what new laws would be needed. according to piaget, mia is in the _____________ stage of cognitive development. efficient production decisions occur when____forces lead firms to produce the output level where______. what can you not find in mutually exclusive or dependent data In the early days of psychoanalysis, what did its practitioners believe to be the cause of behavior?a. heredity rather than environmentb. environment rather than heredityc. unconscious motives and conflictsd. conscious choice and self-direction Which of the following agencies were created by congress to give them information independent of the information it gets from the executive branch? office of management and budget press space to open federal reserve press space to open congressional research service The probability P(Z < -1.28) is closest to _______.A.-0.10B.0.10C.0.20D.0.90 When the nurse is teaching a patient who is taking acyclovir for genital herpes, which statement by the nurse is accurate?a. "This drug will help the lesions to dry and crust over."b. "Acyclovir will eradicate the herpes virus."c. "This drug will prevent the spread of this virus to others."d. "Be sure to give this drug to your partner, too." TRUE OR FALSE: The purpose of your turn signals is to tell other drivers that you plan on turning or changing lanes. Class D Operating requirements:Is two way radio communication necessary to enter class D airspace?If landing or taking off at satellite airports within class D airspace, are communications required?What weather minimums apply? Across: A mutual fund's expenses per dollar of assets, the ratio is a measure of a mutual fund's efficiency in managing cost, and is determined as the fund's total expenses divided by the fund's asset holdings. (Two Words) The derivation of the Quadratic Formula is shown by completing the square and applying square roots. What is the missing step?A. x^2+b/a x+c=0B. ax^2+b/a x+c/a=0C. ax^2+b/a x+c=0D. x^2+b/a x+c/a=0 The market structure where there is a single supplier of a good or service for which there is no close substitute is:_________