answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
s344n2d4d5
1 month ago
15

How concerned are you about the security of rtos in cars smart homes and wearable technology?

Computers and Technology
1 answer:
Harlamova29_29 [932]1 month ago
5 0
Not to concerned where it worry’s me but technology can break down
You might be interested in
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an in
Harlamova29_29 [932]

Answer:

#SECTION 1

while True:

   month = input("Input the month (e.g. January, February etc.): ")

   try:

       

       if month in ('January', 'February', 'March','April', 'May', 'June','July', 'August', 'September', 'October', 'November', 'December'):

           day = int(input("Input the day: "))

           try:

               if day > 31:

                   raise

               elif day == 31 and month in ('September', 'April', 'June', 'November'):

                   raise

               elif day > 29 and month == 'February':

                   raise

               else:

                   break

                   

           except:

               print('Invalid!!!')

               print('Day not correct')

           

       else:

           raise

   except:

       print('Invalid!!!')

       print('Enter correct Month')

 

#SECTION 2

if month in ('January', 'February', 'March'):

season = 'winter'

elif month in ('April', 'May', 'June'):

season = 'spring'

elif month in ('July', 'August', 'September'):

season = 'summer'

else:

season = 'autumn'

if (month == 'March') and (day > 19):

season = 'spring'

elif (month == 'June') and (day > 20):

season = 'summer'

elif (month == 'September') and (day > 21):

season = 'autumn'

elif (month == 'December') and (day > 20):

season = 'winter'

print("Season is", season)

Explanation:

#SECTION 1

This section is designed to ensure that the user inputs a valid month and day. The try and except blocks paired with IF statements work together to achieve accurate results. The while loop continues until a legitimate input is received.

The first try block checks if the month provided exists by comparing it against a predefined list. If it fails, an error is raised, triggering the except block that informs the user of the invalid entry.

When the first TRY block succeeds, it moves to the next stage, which takes a number input, confirming that it is correct for each month. Any invalid input leads to an error, stimulating the try block to print the issue.

If all inputs are valid, the program exits the loop and transitions to the subsequent section.

#SECTION 2

This part uses the given data to determine the season, leveraging IF statements to produce the result, which it then prints.

I have attached a sample for you to see how the code operates using both incorrect and correct input values.

4 0
1 month ago
Read 2 more answers
Why were the practitioners of alternative software development methods not satisfied with the traditional waterfall method?
zubka84 [945]

Respuesta:

- La naturaleza lineal y rígida del método de cascada en el ciclo de vida del desarrollo de software (SDLC).

Explicación:

El ciclo de vida del desarrollo de software, o SDLC, comprende diversas etapas o procesos que una empresa de software con licencia debe seguir para diseñar, crear, implementar y mantener una aplicación funcionando.

Los procesos SDLC se dividen principalmente en dos categorías: el proceso ágil y el método tradicional de cascada. El proceso ágil permite la ejecución simultánea y repetida de las etapas del proceso, mientras que el método de cascada obedece a una ejecución secuencial de las etapas, lo que implica que una fase debe concluir antes de que la siguiente comience. Esto otorga al proceso ágil mayor rapidez y fiabilidad.

En el proceso ágil, el diseño de software es adaptable, puede modificarse en cualquier momento sin afectar su funcionamiento. En contraste, en cascada, todos los diseños deben finalizarse antes de proceder a la siguiente etapa y no se pueden alterar posteriormente.

6 0
1 month ago
Start with the following Python code. alphabet = "abcdefghijklmnopqrstuvwxyz" test_dups = ["zzz","dog","bookkeeper","subdermatog
maria [879]

Answer:

alphabet = "abcdefghijklmnopqrstuvwxyz"

test_dups = ["zzz","dog","bookkeeper","subdermatoglyphic","subdermatoglyphics"]

test_miss = ["zzz","subdermatoglyphic","the quick brown fox jumps over the lazy dog"]

# From Section 11.2 of: # Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press.

def histogram(s):

d = dict()

for c in s:

if c not in d:

d[c] = 1

else:

d[c] += 1

return d

#Part 1 Construct a function, called has_duplicates, that takes a string argument and returns True if there are any repeating characters present. If not, it should return False.

def has_duplicates(stringP):

dic = histogram(stringP)

for key,value in dic.items():

if value>1:

return True

return False

# Execute has_duplicates by building a histogram using the above histogram function. Implement a loop over the items in the test_dups list.

# Display each string and indicate whether it has duplicates based on the has_duplicates function's result for that string.

# For instance, the expected output for "aaa" and "abc" would be shown below. aaa has duplicates abc has no duplicates Display a similar message for each string within test_dups.

print("***Implementation of has_duplicates function***")

for sTr in test_dups:

if has_duplicates(sTr):

print(sTr+": has duplicates")

else:

print(sTr+": has no duplicates")

#Part 2 Develop a function named missing_letters that takes a string argument and returns a new string containing all alphabet letters absent from the input string.

#The letters in the resultant string should be arranged in alphabetical order. Your implementation must utilize the histogram from the previous function and should reference the global alphabet variable directly.

#It should iterate over the alphabet letters to figure out which are missing from the input string.

#The function missing_letters should merge the list of missing letters into a string and return it.

def missing_letters(sTr):

missingLettersList = []

dic = histogram(sTr)

for l in alphabet:

if l not in dic:

missingLettersList.append(l)

missingLettersList.sort()

return "".join(missingLettersList)

#Iterate over the strings in the test_miss list and invoke missing_letters for each one. Present a line for each string outlining the missing letters.

#For example, for the string "aaa", the output should be as follows. aaa is missing letters bcdefghijklmnopqrstuvwxyz

#Should the string encompass all alphabet letters, the output should indicate that it utilizes all the letters.

#For instance, output for the alphabet string itself would be: abcdefghijklmnopqrstuvwxyz uses all the letters

#Generate a similar line for each item in test_miss.

print("\n***Implementation of missing_letters function***")

for lTm in test_miss:

sTr = missing_letters(lTm.replace(" ",""))

if sTr!="":

print(lTm+" is missing letters "+sTr)

else:

print(lTm +" uses all the letters")

3 0
1 month ago
Explain working principle of computer?​
maria [879]

Answer:

The principle behind how computer systems operate involves a primary machine-based function that remains invisible to us, serving as a control center that changes the input data into output. This central element known as the central processing unit (CPU) illustrates that the operation of computers is quite intricate.

Explanation:

5 0
1 month ago
If a database named Contacts has a table named tblEmployees and another database named Orders links to that tblEmployees table,
Rzqust [894]

Answer:

cache I guess

Explanation:

unsure or memory HDD or SSD

5 0
18 days ago
Other questions:
  • Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two
    12·1 answer
  • To reduce costs and the environmental impact of commuting, your company decides to close a number of offices and to provide supp
    14·1 answer
  • Light travels at 3 × 108 meters per second. A light-year is the distance a light beam travels in one year.Write a PYTHON program
    14·1 answer
  • What are the differences between a policy, a standard, and a practice? What are the three types of security policies? Where woul
    15·1 answer
  • Imagine you were using some of our pixelation tools to create an image and you posted it online for your friends to see - but, a
    11·1 answer
  • Some early computers protected the operating system by placing it in a memory partition that could not be modified by either the
    5·1 answer
  • Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual
    6·1 answer
  • A computer program is tested by 5 independent tests. If there is an error, these tests will discover it with probabilities 0.1,
    5·1 answer
  • 7.7 LAB: Using a while loop countdown Write a program that takes in an integer in the range 10 to 100 as input. Your program sho
    11·1 answer
  • A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is true if the el
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!