(in PYTHON) Write a function in REPL.it that uses three parameters, and squares the first, calculates mod 5 of the second parameter, and quadruples the third parameter. The function should be called, and that value stored in a variable, and then outputted using the print( ) function.

Answers

Answer 1

Answer:

I wrote this myself, it should be working. I think this is what the instructions were looking for.

The code below should return

Squared: 1296  

Mod: 0        

Quadrupled: 16

Explanation:

def threeParams(squared, mod, quadruples):

   array = [squared, mod, quadruples]

   array[0] = squared ** 2

   array[1] = mod % 5

   array[2] = quadruples * 4

   return array

valueArr = threeParams(36, 15, 4)

print(f"Squared: {valueArr[0]}\nMod: {valueArr[1]}\nQuadrupled: {valueArr[2]}")


Related Questions

9.4 Code Practice: Your task is to determine whether each item in the array above is divisible

by 3 or not. If an item is divisible by 3, then leave that value as-is in the

array, but if it is not divisible by 3, then replace that value in the array with a

o. Remember that you will need to use modular division from Unit 2 to

determine if a value is divisible by 3. Finally, print out the array in the

format as seen in the sample run below.

(Can someone please help me?)

Answers

Answer:

Explanation:

The following Python code is a function that takes in an array as a parameter, it then loops through the array determining if the element is divisible by 3. If it is it leaves it alone, otherwise it changes it to a 0. Then ouputs the array. A test case is shown in the attached image below using a sample array.

def divisible_by_three(array):

   for x in array:

       if x % 3 == 0:

           pass

       else:

           array[array.index(x)] = 0

   return array

9.4 Code Practice: Your task is to determine whether each item in the array above is divisibleby 3 or

In this exercise we have to use the knowledge of computational language in python to describe the code, like this:

We can find the code in the attached image.

What is an array for?

After wondering what an array is, you might wonder what it's for. The main purpose is to store information in an orderly way, that is, for each line, one piece of information. An example of an array is when storing names of people present in a classroom.

The code can be written more simply as:

def divisible_by_three(array):

  for x in array:

      if x % 3 == 0:

          pass

      else:

          array[array.index(x)] = 0

  return array

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

9.4 Code Practice: Your task is to determine whether each item in the array above is divisibleby 3 or

Create the following views in the database created in Assignment 6. You need not submit anything for grading. This assignment will be graded by viewing your database on the server. If you need to recreate a view due to an error, you can use the DROP VIEW statement followed by the view name. Be sure to test the views carefully. See the material beginning on page 387 of the textbook for help with this process.
Create a view named VIEW1 that includes the following fields: store code, store name, region code, region name.
Create a view named VIEW2 that includes the following fields: employee code, employee first name, employee last name, store code, store name.
Create a view named VIEW3 that includes the following fields: store code, store name, the count of employees in the store. Test this view with the command

Answers

Views are virtual tables that display data from one or more tables. They are useful for simplifying complex queries, providing specific data subsets, and ensuring data security.

1. Creating VIEW1:
To create VIEW1 with the required fields, use the following SQL statement:

```sql
CREATE VIEW VIEW1 AS
SELECT store.code AS store_code, store.name AS store_name, region.code AS region_code, region.name AS region_name
FROM store
JOIN region ON store.region_id = region.id;
```

2. Creating VIEW2:
To create VIEW2 with the required fields, use the following SQL statement:

```sql
CREATE VIEW VIEW2 AS
SELECT employee.code AS employee_code, employee.first_name AS employee_first_name, employee.last_name AS employee_last_name, store.code AS store_code, store.name AS store_name
FROM employee
JOIN store ON employee.store_id = store.id;
```

3. Creating VIEW3:
To create VIEW3 with the required fields and test the view, use the following SQL statements:

```sql
CREATE VIEW VIEW3 AS
SELECT store.code AS store_code, store.name AS store_name, COUNT(employee.id) AS employee_count
FROM store
JOIN employee ON store.id = employee.store_id
GROUP BY store.code, store.name;

-- Test the VIEW3
SELECT * FROM VIEW3;
```

By executing the above SQL statements, you'll create the required views in your database. Remember to test each view carefully to ensure the desired output. If you encounter any errors, use the `DROP VIEW view_name` statement to delete the view and recreate it with the corrected SQL statement.

To learn more about views, visit:

https://brainly.com/question/30883187

#SPJ11

1. Write a programme to print the Fees Receipt of English High School Required Inputs Name of the Student Monthly Tuition Fees Monthly Transport Fees No. Of Month Output Name of the Student Monthly Tuition Fees Monthly Transport Fees Total Fees VAT Fees Amount to be paid Thank you message Sample Output is given below

Answers

Answer:

In Python:

sname = input("Name: ")

tuition = float(input("Monthly Tuition: "))

transport = float(input("Monthly Transport: "))

months = int(input("No. of Months: "))

print("Student Name: "+sname)

print("Monthly Tuition: "+str(tuition))

print("Monthly Transport: "+str(transport))

fees = (transport + tuition) * months

print("Total Fees: "+str(fees))

VAT = 0.00

print("VAT: "+str(VAT)+"%")

amount = fees - VAT*fees/100

print("Amount to pay: "+str(amount))

print("Thank you...")

Explanation:

The program was written in Python

This gets the student's name

sname = input("Name: ")

This gets the student's monthly tuition fee

tuition = float(input("Monthly Tuition: "))

This gets the student's monthly transport fee

transport = float(input("Monthly Transport: "))

This gets the number of months

months = int(input("No. of Months: "))

This prints the student's name

print("Student Name: "+sname)

This prints the student's monthly tuition fee

print("Monthly Tuition: "+str(tuition))

This prints the student's monthly transport fee

print("Monthly Transport: "+str(transport))

This calculates the total fee

fees = (transport + tuition) * months

This prints the total fees

print("Total Fees: "+str(fees))

Here, we assume that VAT is 0%

VAT = 0.00

This prints the assumed VAT

print("VAT: "+str(VAT)+"%")

This calculates the total payable fee

amount = fees - VAT*fees/100

This prints the total payable fee

print("Amount to pay: "+str(amount))

This prints a thank you message

print("Thank you...")

How did tribes profit most from cattle drives that passed through their land?
A.
by successfully collecting taxes from every drover who used their lands
B.
by buying cattle from ranchers to keep for themselves
C.
by selling cattle that would be taken to Texas ranches
D.
by leasing grazing land to ranchers and drovers from Texas

Answers

The way that the tribes profit most from cattle drives that passed through their land is option D. By leasing grazing land to ranchers and drovers from Texas.

How did Native Americans gain from the long cattle drives?

When Oklahoma became a state in 1907, the reservation system there was essentially abolished. In Indian Territory, cattle were and are the dominant economic driver.

Tolls on moving livestock, exporting their own animals, and leasing their territory for grazing were all sources of income for the tribes.

There were several cattle drives between 1867 and 1893. Cattle drives were conducted to supply the demand for beef in the east and to provide the cattlemen with a means of livelihood after the Civil War when the great cities in the northeast lacked livestock.

Lastly, Abolishing Cattle Drives: Soon after the Civil War, it began, and after the railroads reached Texas, it came to an end.

Learn more about cattle drives from

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

Reggie wants to send an audio file to his colleague. However, he is unable to do so as the files are heavy in format. His friend asked him to convert the __ files to ___ files (please help me!)

Answers

Hi there! Reggie wants to send an audio file to his colleague but is having difficulty due to the large file size. To resolve this issue, Reggie can convert the heavy audio files, which are likely in a format like WAV, to a more compressed format like MP3.

Here's a step-by-step guide on how to do this:

1. Identify the original file format (e.g., WAV) and the desired format (e.g., MP3) for the conversion.
2. Download and install an audio converter software, such as Audacity, Freemake Audio Converter, or Online Audio Converter.
3. Open the converter software and import the original audio file by clicking on "File" > "Open" or by dragging and dropping the file into the software.
4. Choose the desired output format (MP3) and configure the audio quality settings if needed. Lowering the bitrate can help reduce the file size further, but it may also affect the audio quality.
5. Select the output folder for the converted file, so you know where to find it.
6. Click on "Convert" or "Export" to start the conversion process. Wait for the software to finish converting the file.
7. Once the conversion is complete, locate the new MP3 file in the output folder and send it to Reggie's colleague.

By converting the audio file to a smaller format like MP3, Reggie can easily share the file with his colleague without worrying about the file size.

To know more about Reggie visit:

https://brainly.com/question/31511311

#SPJ11

The material (text, pictures) to be put into a document is called________________

Please help me

ME ARMY HALPPP!

Answers

Answer:

Inline (my guess)

Hope this may help u

there are four layers to ios, the operating system used by iphones, ipods, and ipads. the __________ layer is how applications interact with ios.

Answers

Answer:

core layer

Explanation:

iOS has four abstraction layers: the Core OS layer, the Core Services layer, the Media layer, and the Cocoa Touch layer.

hopefully this helps u out :)

Messages that travel all the way from one computer to another across the Internet are called ________. Messages that travel all the way from one computer to another across the Internet are called ________. core switches switches frames packets

Answers

Messages that travel all the way from one computer to another across the Internet are called packets.

A packet is a unit of data that is transmitted across a network, and it contains information such as the source and destination addresses, the payload data, and other information needed for the packet to be properly transmitted and received. When a message is transmitted across the Internet, it is broken up into smaller packets, each of which is transmitted separately across the network. As the packets travel across the Internet, they may be routed through various switches, routers, and other network devices before reaching their destination. At each hop along the way, the packet is examined and forwarded to the next device until it reaches its final destination. This process is known as packet switching, and it is the basis for the way data is transmitted across the Internet.

To know more about packets,

https://brainly.com/question/31560439

#SPJ11

What is resource pooling?

a cloud computing service based on how much capacity each user takes advantage of
a cloud computing service that grows or shrinks to fit the demand for each user
a cloud computing service that utilizes standard format
a cloud computing service that permits multiple consumers at once

Answers

Answer:

a cloud computing service that permits multiple consumers at once

Explanation:

resource pooling is

"a cloud computing element that gives a service provider the ability to dynamically allocate shared physical resources to multiple customers based on each customer's usage demand"

quizlet

Explain how each of the 3 overlapping categories of "playful learning" (delight, choice and wonder) are used in the video. Find 1 quote using resources from this class to naturally weave within this discussion.

Answers

Playful learning can be defined as a method of teaching that emphasizes on the incorporation of enjoyment, curiosity, and choice into the learning process. Three overlapping categories of playful learning are "delight," "choice," and "wonder." The categories are frequently intertwined and not mutually exclusive. Below is an explanation of how each of these categories was used in the video :The first category of playful learning,

"delight," was used in the video by featuring characters, objects, and sounds that created a feeling of joy and happiness. For example, the characters had bright colors and fun designs, and the background music was lively and upbeat. The creators also added entertaining elements such as whimsical sound effects and humorous situations to keep the audience engaged."Choice," the second category of playful learning, was utilized in the video by allowing the audience to have control over their experience. For instance, viewers could pick from a range of options at the beginning of the video, such as the location and type of vehicle.

Furthermore, some of the characters offered choices to the viewer during the video, such as asking them to choose a path to follow. The third category of playful learning, "wonder," was used in the video to elicit curiosity and imagination in the viewer. For instance, the video featured fascinating and intriguing places that inspired wonder and amazement. The creators also added fantastical elements, such as creatures and objects that are not usually found in the real world. Overall, the video used these three categories of playful learning to offer a fun, interactive, and captivating experience to the viewer. One quote that fits naturally into this discussion is from "The Theory of Fun for Game Design" by Raph Koster: "Good games offer a measure of uncertainty and wonder, of mystery and thrill." This quote illustrates how wonder can be an essential part of a game or educational experience, as it creates curiosity and a desire to explore and learn.

To know more about curiosity visit:

https://brainly.com/question/454263

#SPJ11

Which one of the following is not a preset Auto Fill option?
A. dates
B. Months
C. Colors
D. Days

Answers

Answer:

Colors is not a preset Auto Fill option.

Answer:

C. Colors

Explanation:

Hope this helps :)

Which of the following is not a strategy to help build empathy for your users?
O Explain the correct solution to your user

O Observe users and their behavior in the context of their lives

O Engage with and interview users

O Immerse yourself in the experience of your user

Which of the following is not a strategy to help build empathy for your users?O Explain the correct solution

Answers

Answer is a.) because empathy is the ability of understanding and sharing the feelings of another, if you’re just telling the user the solution, that’s not an empathetic strategy.

Explaining the correct solution to your user is not a strategy to help build empathy for your users.

What is empathy?Empathy is the function to understand or feel what another person is undergoing from within their frame of reference, that is, the function to place oneself in another's position. The term “empathy” is used to set out a large range of experiences. Emotion researchers generally define empathy as the capability to sense other people's emotions, coupled with the capability to imagine what someone else might be thinking or feeling.For example, you likely smile and take the trouble to remember people's names, and this is called empathy in action.

To learn more about empathy refer to:

https://brainly.com/question/15287960

#SPJ2


Solution of higher Differential Equations.
1. (D4+6D3+17D2+22D+13) y = 0
when :
y(0) = 1,
y'(0) = - 2,
y''(0) = 0, and
y'''(o) = 3
2. D2(D-1)y =
3ex+sinx
3. y'' - 3y'- 4y = 30e4x

Answers

The general solution of the differential equation is: y(x) = y_h(x) + y_p(x) = c1e^(4x) + c2e^(-x) + (10/3)e^(4x).

1. To solve the differential equation (D^4 + 6D^3 + 17D^2 + 22D + 13)y = 0, we can use the characteristic equation method. Let's denote D as the differentiation operator d/dx.

The characteristic equation is obtained by substituting y = e^(rx) into the differential equation:

r^4 + 6r^3 + 17r^2 + 22r + 13 = 0

Factoring the equation, we find that r = -1, -1, -2 ± i

Therefore, the general solution of the differential equation is given by:

y(x) = c1e^(-x) + c2xe^(-x) + c3e^(-2x) cos(x) + c4e^(-2x) sin(x)

To find the specific solution satisfying the initial conditions, we substitute the given values of y(0), y'(0), y''(0), and y'''(0) into the general solution and solve for the constants c1, c2, c3, and c4.

2. To solve the differential equation D^2(D-1)y = 3e^x + sin(x), we can use the method of undetermined coefficients.

First, we solve the homogeneous equation D^2(D-1)y = 0. The characteristic equation is r^3 - r^2 = 0, which has roots r = 0 and r = 1 with multiplicity 2.

The homogeneous solution is given by,  y_h(x) = c1 + c2x + c3e^x

Next, we find a particular solution for the non-homogeneous equation D^2(D-1)y = 3e^x + sin(x). Since the right-hand side contains both an exponential and trigonometric function, we assume a particular solution of the form y_p(x) = Ae^x + Bx + Csin(x) + Dcos(x), where A, B, C, and D are constants.

Differentiating y_p(x), we obtain y_p'(x) = Ae^x + B + Ccos(x) - Dsin(x) and y_p''(x) = Ae^x - Csin(x) - Dcos(x).

Substituting these derivatives into the differential equation, we equate the coefficients of the terms:

A - C = 0 (from e^x terms)

B - D = 0 (from x terms)

A + C = 0 (from sin(x) terms)

B + D = 3 (from cos(x) terms)

Solving these equations, we find A = -3/2, B = 3/2, C = 3/2, and D = 3/2.

Therefore, the general solution of the differential equation is:

y(x) = y_h(x) + y_p(x) = c1 + c2x + c3e^x - (3/2)e^x + (3/2)x + (3/2)sin(x) + (3/2)cos(x)

3. To solve the differential equation y'' - 3y' - 4y = 30e^(4x), we can use the method of undetermined coefficients.

First, we solve the associated homogeneous equation y'' - 3y' - 4y = 0. The characteristic equation is r^2 - 3r - 4 = 0, which factors as (r - 4)(r + 1) = 0. The roots are r = 4 and r = -1.

The homogeneous solution is

given by: y_h(x) = c1e^(4x) + c2e^(-x)

Next, we find a particular solution for the non-homogeneous equation y'' - 3y' - 4y = 30e^(4x). Since the right-hand side contains an exponential function, we assume a particular solution of the form y_p(x) = Ae^(4x), where A is a constant.

Differentiating y_p(x), we obtain y_p'(x) = 4Ae^(4x) and y_p''(x) = 16Ae^(4x).

Substituting these derivatives into the differential equation, we have:

16Ae^(4x) - 3(4Ae^(4x)) - 4(Ae^(4x)) = 30e^(4x)

Simplifying, we get 9Ae^(4x) = 30e^(4x), which implies 9A = 30. Solving for A, we find A = 10/3.

Therefore, the general solution of the differential equation is:

y(x) = y_h(x) + y_p(x) = c1e^(4x) + c2e^(-x) + (10/3)e^(4x)

In conclusion, we have obtained the solutions to the given higher-order differential equations and determined the specific solutions satisfying the given initial conditions or non-homogeneous terms.

To know more about Differential Equation, visit

https://brainly.com/question/25731911

#SPJ11

The file mensheights .txt contains data on the heights of a representative sample of 3658 U.S. adult men, in centimeters. We'll approximate the population distribution using a Normal(μ,σ 2
) distribution. (a) Find the MLEs of the mean μ, the variance σ 2
, and the standard deviation σ. (b) Find the MLE of the interquartile range (the third quartile minus the first quartile.) Also find the interquartile range of the raw data. Are these two answers close? (c) Find the MLE for the probability a random U.S. adult man is taller than 199 cm. If this were the true probability, what is the expected number of adult men taller than 199 cm in a sample of 3658 adult men? How many men in the raw data were taller than 199 cm ? (d) The Normal model fits the data well, but not perfectly. In order to create a better-fitting model, what additional data would you like to get?

Answers

The maximum likelihood estimators (MLEs) of the mean μ, the variance σ^2, and the standard deviation σ can be obtained from the given data on men's heights.

The MLE of the interquartile range and the interquartile range of the raw data can be calculated to determine if they are close to each other.

The MLE for the probability of a random U.S. adult man being taller than 199 cm can be found, along with the expected number of men taller than 199 cm in a sample of 3658 men and the actual count of men in the raw data who are taller than 199 cm.

To create a better-fitting model, additional data would be needed.

To find the MLEs of the mean μ, the variance σ^2, and the standard deviation σ, we use the given data on men's heights. By assuming a Normal distribution, we can calculate the maximum likelihood estimates that maximize the likelihood of observing the given sample. The MLE of μ is the sample mean, while the MLEs of σ^2 and σ are the sample variance and the square root of the sample variance, respectively.

The interquartile range (IQR) is a measure of the spread of the data. We can calculate the MLE of the IQR by finding the third quartile and subtracting the first quartile. Additionally, we can calculate the IQR directly from the raw data. By comparing these two values, we can assess if they are close to each other, which would indicate a good fit of the data to the Normal distribution assumption.

To find the MLE for the probability of a random U.S. adult man being taller than 199 cm, we can use the Normal distribution to estimate the proportion of men taller than this threshold. The expected number of men taller than 199 cm in a sample of 3658 men is obtained by multiplying the sample size by the estimated probability. To determine the actual count of men in the raw data who are taller than 199 cm, we can simply count the number of observations above this threshold.

Learn more about estimators

brainly.com/question/30876115

#SPJ11

war driving is not a type of wireless piggybacking. T/F

Answers

False. War driving is a type of wireless piggybacking.

What is Wireless piggybacking?

Wireless piggybacking refers to the act of accessing someone else's wireless network without their permission. War driving is a specific form of wireless piggybacking that involves driving around in a vehicle with a wireless-enabled device, such as a laptop or smartphone, to detect and access unsecured or poorly secured wireless networks.

In other words, war driving is a type of wireless piggybacking that involves actively seeking out wireless networks to access, rather than stumbling upon them accidentally. It is important to note that both war driving and wireless piggybacking are illegal without the owner's consent.

Read more about wireless piggybacking here:

https://brainly.com/question/29991972

#SPJ1

Which of the following are examples of formal education? Check all of the boxes that apply. attending a college course at an accredited college attending a continuing education course reading a nonfiction book following a blog of an expert in the field​

Answers

the answers are:

- attending a college course at an accredited college

- attending a continuing education course

Examples of formal education will be attending a college course at an accredited college and attending a continuing education course.

What is formal education?

Formal education is the organized educational concept that integrates specialized training for occupational, academic, and formal development and goes from elementary (and in some countries, from nursery) school through university.

Features of formal education are given below.

The organization of formal schooling is pyramidal.It is purposeful and well-planned.Planned fees are consistently paid.Its grading scale is based on time.It is curriculum-driven and subject-focused. The syllabus has to be covered within a specific time period.The professors instruct the youngster.

Studying a degree course at an approved university or taking an ongoing education course are forms of formal education.

More about the formal education link is given below.

https://brainly.com/question/16642972

#SPJ2

In your own words and in great detail explain the characteristics of the image types listed below. Give an example of when would be best to use each image file type.



1. JPG



2. PNG



3. GIF



4. PDF



5. SVG

Answers

Answer:

JPG It's a standard image format for containing lossy and compressed image data. PNG “Portable Graphics Format”. It is the most frequently used uncompressed raster image format on the internet .GIF is a lossless format for image files that supports both animated and static images. It was the standard for 8-bit color images on the internet until PNG became a viable alternativePDF Portable Document SVG scalable vector graphics, and it is a file format that allows you to display vector images on your website.

Explanation:

Despite the huge reduction in fil e size JPEG images maintain reasonable image quality. This lossless data compression format was created to replace the Graphics 2.Interchange Format (GIF) Like GIF images, PNG also have the ability to display transparent backgrounds.You may have seen them used often in email signatures. Animated GIFs are several images or frames combined inUsed to display documents in an electronic form independent of the software, hardware or operating systemThis means that you can scale an SVG image up and down as needed without losing any quality, making it a great choice for responsive web design they are viewed onto a single file

Identify an advantage of writing HTML code manually.

You do not have to learn HTML.

You can figure out how the markup affects the function of the site.

You can see rendered HTML as you go.​

Answers

Answer:

1. You retain 100% control over your site and where it is hosted

2. Free WYSIWYG sites aren’t really free

3. You make yourself seem irrelevant to clients

4. You understand your own code

5. Your own code is nearly always more efficient

6. Your own code is more secure

7. It’s easier to iterate your own code

8. Your own code is original

9. Writing your own code helps you grow as a developer

Explanation:

You can choose the points you want. let me know if you need any further information.☺️

Please rate if you happy

Brailliest if you want

Answer:

B. You can figure out how the markup affects the function of the site.

Explanation:

its the correct answer :)

smart tv has _____ intergrated with it

Answers

Answer:

an operating system

Explanation:

A company that want to send data over the internet has asked you to write a program that will encrypt it so that it may be transmitted more securely.All the data transmitted as four digit intergers.Your application should read a four digit integer enterd by the user and encrypt it as follows:replace each digit with the result of adding 7 to the digit and getting the remainder after diving the new value by 10.Tjen swap the first digit with the third,and swap the second digit with the fourth.Then print the encrpted interger.Write a separate application that inputs an encrypted four digit interger and decrypts it (by reversing the encryption scheme) to form the original number

Answers

Answer:

A java code was used to write a program that will encrypt and secure a company data that is transmitted over the Internet.

The Java code is shown below

Explanation:

Solution:

CODE IN JAVA:

Encryption.java file:

import java.util.Scanner;

public class Encryption {

  public static String encrypt(String number) {

      int arr[] = new int[4];

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

          char ch = number.charAt(i);

          arr[i] = Character.getNumericValue(ch);

      }

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

          int temp = arr[i] ;

          temp += 7 ;

          temp = temp % 10 ;

          arr[i] = temp ;

      }

      int temp = arr[0];

      arr[0] = arr[2];

      arr[2]= temp ;

      temp = arr[1];

      arr[1] =arr[3];

      arr[3] = temp ;

      int newNumber = 0 ;

      for(int i=0;i<4;i++)

          newNumber = newNumber * 10 + arr[i];

      String output = Integer.toString(newNumber);

      if(arr[0]==0)

          output = "0"+output;

      return output;

  }

  public static String decrypt(String number) {

      int arr[] = new int[4];

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

          char ch = number.charAt(i);

          arr[i] = Character.getNumericValue(ch);

      }

      int temp = arr[0];

      arr[0]=arr[2];

      arr[2]=temp;

      temp = arr[1];

      arr[1]=arr[3];

      arr[3]=temp;

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

          int digit = arr[i];

          switch(digit) {

              case 0:

                  arr[i] = 3;

                  break;

              case 1:

                  arr[i] = 4;

                  break;

              case 2:

                  arr[i] = 5;

                  break;

              case 3:

                  arr[i] = 6;

                  break;

              case 4:

                  arr[i] = 7;

                  break;

              case 5:

                  arr[i] = 8;

                  break;

              case 6:

                  arr[i] = 9;

                  break;

              case 7:

                  arr[i] = 0;

                  break;

              case 8:

                  arr[i] = 1;

                  break;

              case 9:

                  arr[i] = 2;

                  break;

          }

      }

     int newNumber = 0 ;

      for(int i=0;i<4;i++)

          newNumber = newNumber * 10 + arr[i];

      String output = Integer.toString(newNumber);

      if(arr[0]==0)

          output = "0"+output;

      return output;    

  }

  public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);

      System.out.print("Enter a 4 digit integer:");

      String number = sc.nextLine();

      String encryptedNumber = encrypt(number);

      System.out.println("The decrypted number is:"+encryptedNumber);

      System.out.println("The original number is:"+decrypt(encryptedNumber));  

  }  

}

what happens when you get 3 warnings on this site?

Answers

I’m not 100% sure but I think they delete your account or suspend it

You are part of a development team that needs to adopt an integrated development environment tool to increase programmer productivity. The team narrowed the options down to two. One is open-source; the other will require an expensive site license. The tool you choose must be reliable, stable and well maintained. Which of the following could be a disadvantage for you to choose open-source, and thus a compelling enough reason to purchase the licensed software instead of using the open-source solution?
A. Your developers will have ready access to the source code.
B. The open-source solution is in the public domain.
C. The code for the open-source solution can be viewed by a community of open-source developers.
D. Maintenance of an open-source solution relies on developers who volunteer to work on the code.

Answers

Answer:

honestly I think the other one is correct

Explanation:

Suppose cell C5 contains the formula =B$6+C1.


Match each formula with its respective cell if you copied it.


=A$6+B4 =B$6+C6 =C$6+D2 =D$6+E1


Thank you, have a great week.

Answers

Answer:

=A$6+B4 will be in B8

=B$6+C6 will be in C10

=C$6+D2 will be in D6

=D$6+E1 will be in E5

Explanation:

$ sign is used to lock a certain column or row value, with the $ sign we can create an absolute reference which will remain unchanged as we copy our formula from one cell to another.

As formulars are copied, the references change respectively.

With =B$6+C1 in C5 ; As we move up or down of cell C5, only the row numbers will change that is formula in C6 becomes =B$6+C2.

As we move left and right, the column alphabet will also experience change like the rows did.

Only the absolute reference won't change no matter the direction.

Hence,

=A$6+B4 ; A and B means one move to the left of C5 and 4 signifies, 3 moves downward of C5 that gives B8

=B$6+C6 ; B and C means no horizontal change, 6 means 5 moves downward of C5 which gives C10

=C$6+D2 ; C and D means 1 move to the right and 2 means one move downward of C5 which gives D6

=D$6+E1 ; D and E means 2 moves to the right and 1 means no vertical change from C5 ; which gives E5

Portable Document Format is a proprietary document file type created by Adobe Systems that is compatible with most computer systems.

a
DOC

b
XLS

c
PDF

d
GIF

e
JPG

f
PS

g
MP3

h
OGG

i
AVI

j
MPEG

Answers

Answer: PDF

Explanation:

You have a Mobile Legends account???
Can I play with You???​

Answers

Answer:

yes oo you want to play with me

Which of these hardware components can you use to store videos? A. External RAM B. Floppy disk. C. Hard drive. D. Motherboard..

Answers

The hard drive (hardware) is used to store videos.

What is the use of Hard Ware?

A computer's hard drive is a type of storage device used to keep data. It is in charge of maintaining your operating system data, documents, music, videos, photographs, and preference files. You risk losing all of your important data if the hard drive malfunctions or is damaged. Most individuals utilize a backup solution that maintains a separate document file of the originals to avoid a data loss situation.

An electromagnetic head is used to write and read data to and from the rotating platters. This head hovers just above the rotating platters and glides over them. Without removing the hard drive's cover, it is impossible to observe this process while it is in progress. However, if a hard drive's cover is taken off to reveal the platters, the drive gets corrupted and is soon rendered useless. Data recovery is therefore carried out in controlled settings that are free of dust and other impurities that could harm the platters.

To know more about Hardware, Check out:

https://brainly.com/question/24370161

#SPJ4

.

Let's say you are the Robot (Give yourself a name) you are talking to the customer.
The customer wants to purchase a bicycle.
The customer wants to know the purchase of the 3 bicycles. What's included in the total cost? Taxes 8%
How will the customer be paying? Will this customer needs deliver or they will pickup?
Use your mathematical operators....

Answers

Let the robot's name be Alpha.

Alpha will follow a predetermined algorithm to interact with the customer.

Algorithm -

Alpha: Hello. Please select the model of the bicycle from the list.

Alpha: The selected model's MRP is $x.

Alpha: The MRP will be subject to an additional 8% tax.

Alpha: Total cost of 1 bicycle is MRP+(8% of MRP).

Alpha: Total cost of 3 bicycle is 3*(MRP+(8% of MRP)).

Alpha: Choose a payment option from the list.

Alpha: Choose the delivery option. Pickup or home delivery

What is an Algorithm?

A set of finite rules or instructions to be followed in calculations or other problem-solving operations or  A procedure for solving a mathematical problem in a finite number of steps that frequently involves recursive operations.

For example,

An algorithm to add two numbers:

• Take two number inputs

• Add numbers using the + operator

• Display the result

To know more about how Algorithm works, kindly visit: https://brainly.com/question/15802846

#SPJ13

You have been asked to replace a cracked screen on a laptop. The replacement screen was delivered today, but it did not include any instructions for removal and replacement. You have been unable to find the repair information on the manufacturer's website. Which of the following is the BEST course of action for you to take when replacing the cracked screen?
a. Wait a few weeks until the manufacturer updates their website with the repair manuals.
b. Update the laptop's device driver before replacing the screen.
c. Carefully remove the laptop's cracked screen while documenting and labeling all of the screw locations and cables/connectors.
d. Return the screen and order one from a different manufacturer.

Answers

Answer:

D

Explanation:

Its probably your best bet all the other ones seem fishy.

Assume there are two variables, k and m, each already associated with a positive integer value and further assume that k's value is smaller than m's. Write the code necessary to compute the number of perfect squares between k and m. (A perfect square is an integer like 9, 16, 25, 36 that is equal to the square of another integer (in this case 3*3, 4*4, 5*5, 6*6 respectively).) Associate the number you compute with the variable q. For example, if k and m had the values 10 and 40 respectively, you would assign 3 to q because between 10 and 40 there are these perfect squares: 16, 25, and 36,.

PYTHON CODING

Answers

Answer:

import math  

def isPerfectSquare(n):

 s = int(math.sqrt(n))

 return n == s*s

def countPerfectSquares(k,m):

 q = 0

 for i in range(k,m):

   if isPerfectSquare(i):

     q=q+1

 return q

print(countPerfectSquares(10,40))

Explanation:

Note that this is including the k, but excluding m. If you want to include m, write m+1 in the range expression.

What does Kotaku mean in Japanese?

Answers

Kotaku is a Japanese expression meaning “lonely” or “alone.” It is derived from the verb kotaeru, which means “to be alone.” The term is often used to describe people who feel isolated from society and lack a sense of belonging.

What is derived ?

Derived is an adjective meaning to have originated or come from someone or something else. It is often used to describe something that has been created, developed or produced from another source. For example, a language may be derived from another language, or a product may be derived from a previous version. Derived can be used to describe the origin of ideas, inventions, and even emotions. Derived is a term used to describe something that has been built, created, or developed from another source, in a way that is more complex or sophisticated than the original source.

To learn more about derived

https://brainly.com/question/30033128

#SPJ4

Other Questions
if you successfully implemented lean manufacturing, you would expect your overall inventory to ? if you successfully implemented lean manufacturing, you would expect your overall inventory to ? decrease increase Materials are called if they can catch on fire when they are exposed to a flame or hot temperature. Describe each x-intercept as "crosses" or "touches" the x-axis What impact does the use of dashes have on the rhythmic structure of this poem Acme Sores is a wholesale grocery firm that sponsors voluntary chain of independent retailers. In addition to the usual wholesaling function, Acme provides several special services for its affiliated stores. It offers a "dealer brand", merchandising assistance, employee training programs, store location and design assistance, and accounting aid. Merchandise economies are achieved through group buying, and a modern distribution center is used to lower operating costs.Some retailers, however, are too small to benefit from members in the chain. For these customers, Acme operates a subsidiary to provide a smaller assortment of canned goods and other household needs. Perishables are not stocked, and retailers must provide their own transportation. The goods are priced attractively, considering the mall order quantities but no credit is available. Find the midpoint of the line segment joining the points R(-4,3) and S(5,6) Robert is buying tickets to a school basketball game adult tickets cost $4 more than student tickets he bought five adult tickets and seven student tickets for a total of $104 how much does a student ticket cost define the variable Caroline bought snacks for her team's practice. She bought a bag of chips for $2.39 and a 8-pack of juice bottles. The total cost before tax was $17.43. Which equation or tape diagram could be used to represent the context if xx represents each bottle of juice costs? Which food items would the nurse recognize as typical food allergens for a child? How did the Japanese see the American people?as indifferent and uncaringas easy targetsas industrious peopleas decadent and unscrupulous Suppose a child drives a bumper car head on into the side rail, which exerts a force of 3650 N on the car for 0.190 s. What impulse is imparted by this force? (Take the original direction of the car as positive.) _________Find the final velocity of the bumper car if its initial velocity was 3.40 m/s and the car plus driver have a mass of 240 kg. You may neglect friction between the car and floor._________ Ineed help with this Please??Use sigma notation to write the sum. [(+)]()+...+[p(+)]() 2 2+ n i = 1 For the folowing function, b) give the coordinases of any criscal points and dassily each point as a relatve maximum, a relative minimum, or noither, b) identify interviss where the function is increasing or decreasing, c) give the coordinaths of any points of inflection; d) ideraty intervals where the functon is concave up or concave down, and e) skitch the graph k(x)=3x^4+8x^3a) What are the coordinates of the relative extrema? Select the correct choice below and, if necessary, fil in the answer boxies) to complate your chaice A. The relative minimum pointisf islare and the relative maximum poirt(a) ivare (Simplify your answers. Use integers or fractions for any numbers in the expression. Type an ordered par. Use a comma to separate antwors as needed.) B. The relative minimum point(s) ishare and there are no relative maximum point(s). (Simpilfy your answer, Use integers or fractons for any numbers in the expression. Type an ordered pair. Use a comma to separate answers as needed) c. The relative maximum poinef(s) is/are and there are no relative minimum point(s). (Smplify your answer. Use integens of fractions for any numbers in the expression. Type an ordered pair, Use a comma to separate answers as needed) D. There are no relative minimum points and there are no relative mavimum points. Give example of ituation in the modern world that may be conidered a uffering in Theravada Buddhim Compare the key features (slope and y-intercept)of each linear function g with those of the graphof f(x) 2x+3. Describe how the value of kaffects the key features. SEE EXAMPLES 1, 2, AND 323. g(x)= 3(2x + 3)25. g(x) = (2x + 3)24. g(x)= 2(0.5x) + 326. g(x) = 2(1)x+ 3 A perfectly competitive firm in a constant-cost industry produces 1,000 units of a good at a total cost of $50,000. The prevailing market price is $48. Assuming that this firm continues to produce in the long run, what happens to output level in the long run A certain sum of money at simple interest amount to $1300 in 4 years and to $1525 in 7 years. Find the sum and the rate percent Select the correct answer.What economic concept is applied in this statement?By earning higher levels of education, students learn skills and are more likely to be employed. In their jobs, they use their skills to provide goodsand services to others. What are powers given to state government but NOT to the national government?Expressed PowersChecks & BalancesSeparation of PowersReserved Powers 28.5 is 30% of what number