Python’s list method sort includes the keyword argument reverse, whose default value is False. The programmer can override this value to sort a list in descending order. Modify the selectionSort function discussed in this chapter so that it allows the programmer to supply this additional argument (as the second parameter) to redirect the sort.

Answers

Answer 1

Using the knowledge in computational language in python it is possible to write a code that  includes the keyword argument reverse, whose default value is False.

Writting the code;

def selectionSort(A, reverse=False):

   for i in range(len(A)):

       ind = i

       for j in range(i + 1, len(A)):

           if reverse==False:

               if A[ind] > A[j]:

                   ind = j

           else:

               if A[ind] < A[j]:

                   ind = j

       A[i], A[ind] = A[ind], A[i]

   return A

#Testing

print(selectionSort([4,3,5,2,6,1]))

print(selectionSort([4,3,5,2,6,1],True))

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

#SPJ1

Pythons List Method Sort Includes The Keyword Argument Reverse, Whose Default Value Is False. The Programmer

Related Questions

Put the steps in order to produce the output shown below. Assume the indenting will be correct in the program.

2 1
6 1
3 1
2 5
6 5
3 5

Answers

Answer:

for numD in [1, 5]:

   for numC in [2, 6, 3]:

       print(numC, numD)

what is the fnajofnjanfaofoafnka

Answers

Answer: that is the letter f,n,a,j,o,f,n,j,an,f,a,o,f,n,k,a

Which are ether random letters or….. it’s a word scramble.

I well now organize the letters.

1F 2F 3F 4F                                                

1N 2N 3N 4N

1A 2A 3A 4A

1J 2J

1O 2O

1K

Words that can be written are

Fan four times there are other things such as names it can write such as Joan Jon or it could be abbreviations but I believe It’s just random letters you wrote to confuse the brainly community trust me you confused me lol.

Explanation:

What is the difference between biometrics devices and biometrics input devices

Answers

Answer: A biometric input device measures a unique physical chracteristic of a person.

Explanation: The most common biometric devices are used to input a person's fingerprint into a computer. More sophisticated devices use a camera to input a description of a person's iris (the coloured part of the eye).

How do computer programs ask us for information?

Answers

Answer:

Computer Programs

Explanation:

Computer Programs , in some program language Actualy best program languages is javascript(using in big firms) , C# C Sharp , Python , C++ C Plus Plus in some provincions and technology , program you can doo in best Compilator is Visual Studio "Community"  for free 2015 , 2019 , 2022 like I Remember this versions  in this Compiler you can doo programs in C# , F# , C++ , class/es , biblioteks and plicks dll. , Console Aplications , Graphic Aplications  all i Plicks .exe  or other biblioteks , class or types but you mast doo Decision for programing language and start learning for many time for many years... too BIG SPECIALISATIONS

Type the correct answer in the box Spell all words correctly.
Jenny has entered data about models of laptops from company A and company B in a worksheet. She enters model numbers of laptops from company
A along with their details in different columns of the worksheet. Similarly, she enters details of all the laptop models from company B, Which option will
help Jenny view the data for company A and company B in two separate sections after printing?
The BLANK option will help her view the data for company A and company B in two separate sections after printing.

Answers

The option that will help Jenny view the data for company A and company B in two separate sections after printing is option A: Page Break View

The Split option will help her view the data for company A and company B in two separate sections after printing.

What does "page break" mean?

To conclude a page without adding more text, use page breaks. Put a page break after the graduation date on the title page, for instance, to ensure that the title page of your thesis or dissertation is distinct from the signature page.

Therefore, in the context of the above, Jenny can find the split option under the tab and the way to go about it is by: Select the Split command by clicking the View tab on the Ribbon. There will be several panes in the workbook. Using the scroll bars, you can navigate across each pane separately and compare various workbook portions.

Learn more about Page Break View from

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

See full question below

Jenny has entered data about models of laptops from company A and company B in a worksheet. She enters model numbers of laptops from company A along with their details in different columns of the worksheet. Similarly, she enters details of all the laptop models from company B, Which option will help Jenny view the data for company A and company B in two separate sections after printing?

answer choices

Page Break View

Normal View

Margins View

Page Layout View

Why were dramas on radio called soap operas?

Answers

Answer:

Most of its major sponsors for many years were manufacturers of soap and detergents.

Explanation:

soap opera, broadcast dramatic serial program, so called in the United States because most of its major sponsors for many years were manufacturers of soap and detergents.

Answer:

because they were sponsored by soap companies

can you submit MySql queries to brainly in order to get table answers?

Answers

?? Explain Please.

The main part of your program has the following line of code.

answer = difference(30,5)
Which function finds the difference of 30 and 5 to return 25.


def Subtract(numA, numB):
return numB - numA
def Subtract(numA, numB): return numB - numA

def subtract(numA, numB):
return numA - numB
def subtract(numA, numB): return numA - numB

def subtract(numA, numB):
return numB - numA
def subtract(numA, numB): return numB - numA

def Subtract(numA, numB):
return numA - numB

Answers

Answer:

def subtract(numA, numB):

  return numA - numB

A __________ variable is used to keep track of the number of loops that have been executed. python (it is not 'counter' as the answer)

Answers

We use enumerate instead of counter.

How to use Python’s enumerate() ?

It is almost identical to using the original iterable object that you can use enumerate() in a loop. Place the iterable inside the parentheses of the enumerate statement rather than right after in the for loop (). Additionally, as demonstrated in the following example, you must slightly alter the loop variable:

>>> for count, value in enumerate(values):

print(count, value)

Enumerate() returns two loop variables when used, as follows:

number of the most recent iteration

The item's value as of the current iteration

The loop variables can have any name you want, just like with a regular for loop. In this example, count and value are used, but they could also be called I and v or any other legal Python names.

Enumerate() eliminates the need to recall both accessing the item from the iterable and remembering to advance the index at the conclusion of loop. Python's magic takes care of everything for you automatically!

To know more about loop, check out:

brainly.com/question/25955539

#SPJ1

Write a pseudocode to calculate the maximum and minimum marks out of 100 from the
array studentMarks[] of a class-size of n students.

Answers

Using the knowledge in computational language in pseudocode it is possible to write a code that calculate the maximum and minimum marks out of 100 from the array studentMarks.

Writting the code:

#include <array>

#include <numeric>

// Write your Student class here

class Student {

public:

   Student() = default;

   

   void input() {

       for (int i = 0; i < 5; ++i) {

           std::cin >> m_scores[i];

       }

   }

   

   int calculateTotalScore() const {

       return std::accumulate(m_scores.begin(), m_scores.end(), 0);

   }

   

private:

   std::array<int, 5> m_scores{0};

};

See more about pseudocde at brainly.com/question/13208346

#SPJ1

Choose the best collection for each situation.

You have a set of data that will not be changed and you will not need to add new items.


You wrote a loop to ask the user for a set of 100 numbers. You will add a number to the collection on each pass through the loop, then pass the collection to a function for processing.


You have the unique inventory number and description of every item in a store. You will need to add items when they come in and delete items when they are sold.

Answers

Answer:

first: tuple

second: list

third: dictionary

Explanation:

first: tuple

tuples are immutable, so you can't add or remove items from a tuple

second: list

lists are mutable, so you can add and remove items from a list

third: dictionary

dictionaries are mutable, so you can add and remove items from a dictionary

Made an accidental purchase and requested a refund from (Apple) and the next day it WAS REFUNDED BTW. But the coins and etc. are still on my account. What if I spend the coins. Will I be recharged¿ (NOW ITS CURRENTLY THE DAY AFTER I WAS REFUNDED AND THE MONEY HASENT BEEN PUT BACK INTO MY ACCOUNT OFFICIALY¡¿)

Answers

Answer:

You will not be charged again. The refund will be processed in 3-5 business days. and the coins will be removed from your account.

What is the best GPU for the computer I am building.

Answers

Answer:

If it is a gaming pc, you should use a high end gpu such as Nvidia Gtx 1650+ or if u want rtx, you should also go and buy a very high 350v power.

Explanation:

If it is general, you should use something in Intel Hd Graphics series but not more than 3000 below.

If it is for both, best I can recommend is Gtx 1650

If it is mining BTC, ETC etc. you should get BEST graphics card there is out there for gaming.


Identify current and emergent telecommunications systems

Answers

The current and emergent telecommunications systems are:

Telephone networkThe radio broadcasting systemComputer networksARPANETEthernetInternetSocial MediaWireless networks

Which emergency communication method is best?

Talking devices Information can be sent as well as received using two-way radios. They are incredibly useful for both short-distance communication and long-distance information transmission, even across the globe with the right tools.

Therefore, Wired and wireless local and wide area networks, as well as hardware and software, are all components of telecommunications systems, which enable systems to communicate with one another and with users.

Learn more about telecommunications systems from

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

Describe the web and application policies you would put in place to support the
following teams/departments:
a. Recruitment Team
b. Data Science Team
c. Executive Team
d. General Employees
e. Guests

Answers

Identification, attraction, interviewing, selection, hiring, and onboarding of personnel are all included in the recruitment process.

Describe recruitment ?Various employees are in charge of recruiting, depending on the size of the company.While some smaller organizations only have one recruiter, larger organizations may have entire teams of recruiters.The task of managing people inside a business is known as human resource management, or HR for short.Internal Recruiting: Internal recruiting refers to the process of filling open positions within an organization with current employees.Retained Recruiting: Employing a recruiting firm can be done in a number of ways, with retained recruiting being one of the more popular ones.

To learn more about recruitment refer to:

https://brainly.com/question/3700565

#SPJ1

Hi whats the name of this game because i forgot we have to make a project on IT lesson about puzzle games and i forgot the name of this one please

Answers

The name of the Puzzle Game Requested is called "Monument Valley".

What is Monument Valley?

Ustwo Games created and distributed Monument Valley, an independent puzzle game. The player guides Princess Ida through mazes of optical illusions and impossible items, altering the environment around her to reach different platforms.

Monument Valley is a fanciful journey through impossible mathematics and amazing buildings. The player leads the mute princess Ida through intriguing monuments, unraveling optical illusions and outwitting the enigmatic Crow People.

Monument Valley is around 112 hours long while focused on the primary objectives. If you are a gamer who wants to see every facet of the game, you will most certainly spend roughly 212 hours completing it completely.

Learn more about Puzzle Games:
https://brainly.com/question/13546872
#SPJ1

The following do-while loop is suppose to ask for the price for a gallon of gas. The price must a positive number. The price can be an integer value or a double value. for example the price can be 3 or 3.0 or 3.5.

To create a robust program, we must do the data validation and as long as the user is entering a negative value or a String, the program must keep asking the user to enter a valid input.

in this program you need to use some of the scanner methods listed here, make sure to use the proper ones: hasNextInt(), hasNextDouble(), hasNextLine(), hasNext(), nextInt(), nextDouble(), nextLine()

Must flush the buffer at the proper locations in the code

Answers

Answer:

import java.util.Scanner;

public class qs {

   public static void main(String[] args) {

       Scanner input = new Scanner(System.in);

       double price;

       do {

           System.out.print("Enter the price for a gallon of gas: ");

           while (!input.hasNextDouble()) {

               System.out.println("That's not a number!");

               input.next(); // this is important!

           }

           price = input.nextDouble();

       } while (price < 0);

       System.out.println("The price is " + price);

   }

}

Q: On the Loan worksheet in cell C9 enter PMT function to calculate the monthly payment for the Altamonte springs 2022 facilities loan. Ensure that the function returns a positive value and set the reference to cells B5 and B6 as absolute references.

ANSWER!! Click cell C9. On the Formulas tab, in the Function Library group, click Financial, scroll down, and then click PMT. In the Function Arguments dialog box, with the insertion point in the Rate box, type $B$5/12. Press TAB to select the Nper box. Type $B$6. Press TAB to select the Pv box. Type -B9. Click OK

*I saw many struggling like I was and couldn't add an answer myself sooo

Answers

We have to use Microsoft Excel as well as pmt function to solve this Loan worksheet.

Step-by-step Explanation:

Click cell C9. Click on the Formulae tab, which is in the Function Library group, Now click on Financial tab, then scroll down, and then you have to click PMT. Now in the Function Arguments dialog box, with the help of insertion point in the Rate box, type $B$5/12. Then Press TAB to select a Nper box. Type $B$6. Press TAB to select the Pv box. Type -B9. Click OK

What is Microsoft Excel?

Microsoft Excel is a spreadsheet program that allows you to manipulate and analyze data. It has a variety of tools and functions to work with. A workbook in Excel can have multiple worksheets. It has alphabetically labeled columns (or fields) as well as numbered rows ( or record).

To know more about Microsoft Excel, visit: https://brainly.com/question/27133177

#SPJ1

Purpose:
Solidify and demonstrate your understanding and application of the conditional and looping programming constructs in Python by creating a number guessing game. Your program will use a random number generator to choose a mystery number between 1 and 10 and give the user 3 attempts to guess the mystery number.

Skills
The purpose of this assignment is to demonstrate use of multiple and nested loops and if statements. These are basic foundational coding skills that are widely used all programs regardless of the language or the problem the code is solving. In addition you will need to bring in a library to generate random numbers. Familiarity with using additional libraries also is needed skill for most python programs.

Knowledge
This assignment will help you become familiar with:

Using the random number library
Using Boolean variables to control looping
Using integer variables to repeat an action a fixed amount of times (e.g. only allowing user to have 3 guesses)
Using relatively complex conditional statements embedded inside while loops

Answers

Answer:

import random

mysteryNumber = random.randint(1,10)

print("I am thinking of a number between 1 and 10.")

guess = int(input("What's the number? "))

if guess == mysteryNumber:

   print("Yes! You win!")

else:

   print("Nope, try again.")

   guess = int(input("What's the number? "))

   if guess == mysteryNumber:

       print("Yes! You win!")

   else:

       print("Nope, try again.")

       guess = int(input("What's the number? "))

       if guess == mysteryNumber:

           print("Yes! You win!")

       else:

           print("Nope, you lose. The number was",mysteryNumber)

In terms of processor performance explain an effective measure that you would put in place to ensure that Moore’s law stays in effect

Answers

Every few years, the number of computers produced doubles, is one of the effective measure that a person would put in place to ensure that Moore’s law stays in effect.

What is the significance of Moore's law?

Moore's Law has primarily been used to emphasize the rapid evolution of information processing technologies.

Moore's law refers to Gordon Moore's 1965 observation that the number of transistors in a dense integrated circuit (IC) doubles about every two years. Most forecasters, including Gordon Moore, believe Moore's law will be terminated by 2025.

Learn more about the Moore's law, refer to:

https://brainly.com/question/17600211

#SPJ1

What is the missing line?

>>> myDeque = deque('dog')
_____
>>> myDeque
deque(['d', 'o', 'g', 'cat'])

>>> myDeque.insert('cat')
>>> myDeque.insert('cat')

>>> myDeque.appendleft('cat')
>>> myDeque.appendleft('cat')

>>> myDeque.append('cat')
>>> myDeque.append('cat')

>>> myDeque.appendright('cat')
>>> myDeque.appendright('cat')

Answers

Answer:

i think myDeque.append('cat')

The assignment asks you to analyse the determinants of average school test scores using a dataset with
information on 500 schools in California, USA.
There are 4 different tasks you should perform:
1. Import the data into Stata and inspect it
2. Estimate a simple model of the determinants of test scores
3. Run additional specifications
4. Interpret the results
The data is provided in the "CAschools.xls" Excel file, where the first row consists of variable names.
You should write a short report as described below (no more than 2,000 words) and submit this with your dofile included as an appendix via TurnItIn to Blackboard, by 23.59 Friday 2nd December.
Part 1: Import the data into Stata and inspect it
1. At the beginning of the do-file, clearly note your name and student number.
2. Import the data from the Excel file.
3. Label the variables according to the accompanying 'CAschools Description' document.
4. Produce a table of summary statistics for the variables in the dataset.
5. Generate and export some scatter plots that will help you decide what independent variables to include
in the models you use in Part 3 below.
Part 2: Estimate a simple model of the determinants of test scores
1. Run a regression of the student teacher ratio, the share of students receiving free or reduced-price
school meals, the share of English language learners, and zip code median income on test scores.
2. Interpret the economic and statistical significance of your estimates.
3. Is the model successful in explaining the variation in test scores? Do you have reason to believe
omitted variable bias may be affecting any of your estimates?
Part 3: Run additional specifications
1. Extend the model from part 2 to include additional explanatory variables (note: run at least 4 additional
specifications).
2. Perform appropriate tests to investigate whether these new variables add explanatory power to the
model.
3. Does zip code median income have non-linear relationship with test scores?
4. Investigate whether the relationship between average teacher experience and test scores differs between
schools with above and below median shares of English language learners.
5. Save the data set, under the name 'Assignment'. Save the do-file and close the log file.
Part 4: Interpret the results
Write a report on your analysis, including your tables, graphs and interpretations from parts 1-3. Divide the
report into 3 sections corresponding to these Parts. The report should be up to 2000 words, without the
appendix. Copy your clearly commented dofile into an appendix.

Answers

There are 6 steps you need to follow.

How to analyze determinants of average school test score?

To analyze the determinants of average school test scores using a dataset with information on 500 schools in California, the following steps should be taken:

What are the steps to analyze?Import the data from the Excel file "CAschools.xls" into Stata, and label the variables according to the accompanying "CAschools Description" document.Produce a table of summary statistics for the variables in the dataset, and generate scatter plots to help decide which independent variables to include in the model.Estimate a simple linear regression model of the determinants of test scores, including student teacher ratio, the share of students receiving free or reduced-price school meals, the share of English language learners, and zip code median income as explanatory variables.Interpret the economic and statistical significance of the estimates, and assess whether the model is successful in explaining the variation in test scores.Extend the model to include additional explanatory variables, and perform appropriate tests to investigate whether these new variables add explanatory power to the model.Investigate whether zip code median income has a non-linear relationship with test scores, and whether the relationship between average teacher experience and test scores differs between schools with above and below median shares of English language learners.Write a report on the analysis, including tables, graphs, and interpretations from all four parts.

The do-file used to carry out this analysis should be included as an appendix to the report.

To Know More About analyze determinants, Check Out

https://brainly.com/question/20395091

#SPJ1

7.2.5 Height in Meters codehs

Answers

Answer:

INCHES_TO_CM = 2.54

CM_TO_METERS = 0.01

FEET_TO_INCHES = 12

def convert_height_to_meter(feet, inches):

   inches_total = (feet * FEET_TO_INCHES) + inches

   cm_total = inches_total * INCHES_TO_CM

   meters = cm_total * CM_TO_METERS

   print(str(feet)+" feet, "+str(inches)+" inches is "+str(meters)+" meters")

   

convert_height_to_meter(6, 4)

convert_height_to_meter(5, 8)

convert_height_to_meter(5, 2)

On page 104, of Think Like a Computer Scientist, you learned about paired data. With paired data, you can use a for loop with two index variables to iterative through the data. In this exercise you will create a turtle drawing using pairs of data, where the first item of the pair is the distance to move forward , and the second item is the angle to turn.. Set up a list of pairs so that the turtle draws a house with a cross through the center, as show here. This should be done without going over any of the lines / edges more than once, and without lifting your pen.

Your first pair of data will be (100,135). In a list this will look like ls = [ (100, 135) ] Then you need to add the other pairs for the remaining lines and angles. The 100 represents the distance forward the turtle will travel. The 135 represents the angle the turtle will turn left.

Screen capture of run of program showing house figure

Hint: Your first line should be the bottom line. Then turn left 135 degrees and go forward. You may wish to create the drawing without the list first, then substitute a list and a for loop for the distances and angles.



Use two functions: a main() function that sets up screen and turtle objects, and a drawhouse() function that takes a turtle object as an argument.



Includes comments at the top to identify file name, project and a brief description.

For further documentation, include comment for each section of code. Write in Python asap

Answers

Answer:

import turtle

def drawhouse(t):

   # find the length of diagonal of a square with side = 100

   # formula: diagonal = sqrt(2) * side

   diagonal = 100 * (2 ** 0.5)

   data = [(100, 135), (diagonal, -135), (100, -135), (diagonal, -135), (100, -45), (diagonal / 2, -90),

           (diagonal / 2, -45), (100, 0)]

   for dist, angle in data:

       t.forward(dist)

       t.left(angle)

def main():

   t = turtle.Turtle()

   drawhouse(t)

   turtle.done()

main()

I want to merge rows by matching multiple ids. But in id terms, it can be substring. For example, "art" is a substring of "Earth" so, we will consider that's the same thing

Below example, I used Name and lname, phone, pin, as a ID.
Name and lname need to complete match and phone, pin can be partial match.

for example row number 0, 3 and 6 name and lname is complete match but phone and pin is partical match like "456b" and "789c" available in row number 0 same "eee" and "qqq" is available in row number 3. So, that's a partial match.

and in row number 4 name and lname is matched but there is no any match in phone and pin in row number 0, 3, or 6. So, we'll not merge row number 4

And we merge all other data like subjects

df = pd.DataFrame({'name': ['Raj', 'Hardik', 'Parth', 'Raj', 'Raj','parth', 'Raj'],
'lname': ['abc', 'Hardik', 'aaa', 'abc', 'abc','aaa', "abc"],
'phone': ['123a, 456b, 789c', '-', '777', '456b', '0000', '777', '789c'],
'pin': ['eee', '741', '852', 'qqq, www, eee', '789', '852', 'qqq'],
'Subjects': ['Maths', 'Science', 'English', 'Biology', 'Physics', 'Psychology', 'Hindi']})

df=
name lname phone pin Subjects
0 Raj abc 123a, 456b, 789c eee Maths
1 Hardik Hardik - 741 Science
2 Parth aaa 777 852 English
3 Raj abc 456b qqq, www, eee Biology
4 Raj abc 0000 789 Physics
5 parth aaa 777 852 Psychology
6 Raj abc 789c qqq Hindi

ans = pd.DataFrame({'name': ['Raj', 'Hardik', 'Parth', 'Raj'],
'lname': ['abc', 'Hardik', 'aaa', 'abc'],
'phone': ['123a, 456b, 789c', '-', '777', '0000' ],
'pin': ['qqq, www, eee', '741', '852', '789' ],
'Subjects': ['Maths, Biology, Hindi', 'Science', 'English, Psychology', 'Physics' ]})

name lname phone pin Subjects
0 Raj abc 123a, 456b, 789c qqq, www, eee Maths, Biology, Hindi
1 Hardik Hardik - 741 Science
2 Parth aaa 777 852 English, Psychology
3 Raj abc 0000 789 Physics

Answers

Data inside two rows of data are compared and combined in the Merge rows (diff) stage. For comparing data gathered at two distinct times, utilize this step.

How do I combine multiple rows into one row by the same value?What you must do in order to combine two or more rows into one is as follows: Choose the cell range where you want to combine rows. Go to the Ablebits Data tab > Merge group, select Merge Rows into One from the drop-down menu, and then click the Merge Cells arrow.By doing so, the Merge Cells dialog box will open with the default settings, which are suitable for most situations. Only the separator is changed in this example from the standard space to a line break.To see the perfectly merged rows of data with line breaks, click the Merge button.Data inside two rows of data are compared and combined in the Merge rows (diff) stage. For comparing data gathered at two different times, use this step. Your data warehouse's source system, for instance, might not have a timestamp for the most recent data update.

Learn more about merging rows refer to :

https://brainly.com/question/28714804

#SPJ1

A client uses UDP to send data to a server. The data length is 16 bytes. Calculate the efficiency of this transmission at the UDP level (ratio of useful bytes to total bytes).

Answers

Answer:

The efficiency of this transmission at the UDP level is 1.0, since all 16 bytes of data are useful bytes.

The efficiency of the transmission at the UDP level (ratio of useful bytes to total bytes) is 44.44%.

What is the efficiency of the transmission?

Due to losses in the line resistance, the power obtained at the receiving end of a transmission line is often lower than the power obtained at the sending end.

The transmission efficiency of a transmission line is defined as the ratio of the sending end power to the receiving end power.

The entire number of information bits (i.e., bits in the user's message) divided by the total number of bits in transmission is how transmission efficiency is calculated (i.e., information bits plus overhead bits).

Total = 16 data bytes + 20 byte header = 36 bytes

Efficiency = 16 / 36 = 44.44%

Therefore, the UDP level's transmission efficiency (measured as the proportion of usable bytes to total bytes) is 44.44%.

To learn more about efficiency, refer to the link:

https://brainly.com/question/27911712

#SPJ2

Write a program that determines if the user rolled doubles in dive. Read in two integers from the user which represent dice rolls. Create a variable called rolledDoubles which has the value of whether or not the two values are equal. Print that out. Please do this in JAVASCRIPT NOTTT phyton. The picture is what I have so far

Answers

Answer:

is it like this?

function start(){

   var rolledDice = readInt ("Did you roll double?");

   var rolledDoubles = rolledDice <= 6:

   println("Dice rolled double:" && rolledDoubles);

   if (rolledDoubles){

       println("You rolled doubles!");

   } else {

       println("You did not roll doubles");

   }

}

Write a pseudocode to calculate the maximum and minimum marks out of 100 from the
array studentMarks[] of a class-size of n students.

Answers

Using the knowledge in computational language in pseudocode it is possible to write a code that calculate the maximum and minimum marks out of 100 from the array studentMarks.

Writting the code:

#include <array>

#include <numeric>

// Write your Student class here

class Student {

public:

   Student() = default;

   

   void input() {

       for (int i = 0; i < 5; ++i) {

           std::cin >> m_scores[i];

       }

   }

   

   int calculateTotalScore() const {

       return std::accumulate(m_scores.begin(), m_scores.end(), 0);

   }

   

private:

   std::array<int, 5> m_scores{0};

};

See more about pseudocde at brainly.com/question/13208346

#SPJ1

What advantages would there be to using both subsystems and logical partitions on the
same machine?

Answers

Answer:

Explanation:

Advantages of using subsystem and logical partitions on same machine

Subsystems and logical partitions on the same machine reduces the data backup function.Hence there is no need to take the backup regularly.It increases the hardware utilization.Resource availability is high and it provides security to the resources.

Create a Python program that asks the user to enter 3 positive numbers. The program should validate that the characters that the user entered formulate a valid positive integer and display an appropriate error message if they do not. The program should use a sequence of conditional (if) statements to display the 3 positive numbers in ascending order.

Answers

Answer:

num1 = input("Enter the first number: ")

num2 = input("Enter the second number: ")

num3 = input("Enter the third number: ")

if num1.isdigit() and num2.isdigit() and num3.isdigit():

   num1 = int(num1)

   num2 = int(num2)

   num3 = int(num3)

   if num1 > 0 and num2 > 0 and num3 > 0:

       if num1 < num2 and num1 < num3:

           if num2 < num3:

               print(num1,num2,num3)

           else:

               print(num1,num3,num2)

       elif num2 < num1 and num2 < num3:

           if num1 < num3:

               print(num2,num1,num3)

           else:

               print(num2,num3,num1)

       else:

           if num1 < num2:

               print(num3,num1,num2)

           else:

               print(num3,num2,num1)

   else:

       print("Please enter positive numbers only.")

else:

   print("Please enter positive numbers only.")

Other Questions
a patient has a tumor that causes her to secrete an excess amount of antidiuretic hormone (adh). you would expect that the excessive level of adh will ultimately cause: The volume of the circumscribed cylinder is 2154.04 cm^3. Find the radius of the sphereshow all work and steps. lakita doesn't have any close relationships and is feeling increasingly isolated and lonely. lakita wishes she could find a few people with whom she could spend time and share like friends do, but she feels that she can't reach out and meet people. she is afraid that if she says something silly or acts in an inappropriate way, she will be criticized and shamed by the individuals with whom she wants to be friends, and they will not want to be her friend. the thoughts of humiliation and rejection are too much for lakita. she has always struggled with this problem and has thus lived a relatively isolated life for quite a few years. lakita might be diagnosed as having personality disorder. dependent antisocial schizoid avoidant according to kinetic molecular theory, gas particles: select the correct answer below: exert attractive forces amongst one another exert repulsive forces amongst one another exert both attractive and repulsive forces amongst one another none of the above the acquisition of land in the West before 1845 were similiar to land acquisitions after 1845 because they both were motivated by the controversial desire to I NEED THIS BY FRIDAYT Topic Sentence E-Textual Evidence (A reference to the play Macbeth with page and line numbers that match our textbook) (20pts)X-Explanation (20pts)A Analysis (20 pts)S-Concluding Sentence (20 pts)In a short answer response, you must explain one theme you identify in the play Macbeth. Your response must follow the expectations of good grammar. You must have textual evidence from the book that we use in class. One of the principal arguments for contracting out government services to private companies is that. In the expression 2^5, what is the 2? A. exponent B. power C. base D. model during basketball season josh made 3 out of every 7 free throw attempts in the last game josh attempted 28 free throws how many free throws would he have been expected to make question below answer quick a client is receiving baclofen for muscle spasms because of a spinal cord injury. which side/adverse effect related to this medication would the nurse monitor the client for? When our authors describe conflict as an expressed struggle, they believe conflict can only occur when ________. does kraft foods bear the responsibility for the effects of their advertising on children, or does this responsibility fall mainly on the parents? most of the evidence suggests that schizophrenia runs in families. this means that schizophrenia . is definitely a genetic abnormality has been proven to be caused by a combination of genetic and environmental influences is definitely caused by environmental influences may be caused by a combination of genetic and environmental influences sanjay, an industrial equipment sales rep, purchases a quick snack to eat on the way to work. he buys lunch while on the road visiting customers, and grabs bread and milk on the way home when he stops to buy gas. sanjay probably does most of this shopping at a HELPP PLEASE DUEE IN A HOUR!! COMMON LIT 5. PART B: Which of the following quotes best embodies an example of the answer to Part A?A. It was many and many a year ago / In a kingdom by the sea (Lines 1-2)B. Yes!that was the reason (as all men know / In this kingdom by the sea) / Thatthe wind came out of the cloud by night / Chilling and killing my Annabel Lee.(Lines 23-26)C. And neither the angels in heaven above / Nor the demons down under the sea(Lines 30-31)D. For the moon never beams without bringing me dreams / Of the beautifulAnnabel Lee; / And the stars never rise but I feel the bright eyes / Of thebeautiful Annabel Lee (Lines 34-37)PART A WAS C. It supports the speakers claims that Annabel Lee was purposefully taken fromhim due to jealousy from the heavens.PLEASE HELP!!COMMON LIT ANNABEL LEE with which type of organization did the trend toward privatization of sport facilities begin in the united states? Nasas orion spacecraft, which left earth last week, flew within 81 miles of the surface of which celestial body on monday?. In the cross bb x bb (two heterozygous mice), what percentage of the offspring would you predict to have the same phenotype as the parents? a. 0% b. 25% c. 50% d. 75% e. 100% next, you perform a cross with a mouse with black fur and a mouse with white fur. which result(s) for the offspring would confirm that the mouse with black fur was heterozygous? a. 4 mice with black fur b. 8 mice with black fur, 1 mouse with white fur c. 5 mice with black fur, 6 mice with white fur d. 6 mice with black fur, 2 mice with white fur Football player one pushes against football player two, causing player two to slow down from moving any farther down the field. Which term best describes the work in this situation? Negative work was done on player two. Positive work was done on player two. No work was done on either player. Negative work was done on player one.