Write a general-purpose program with loop and indexed addressing that adds 12h to 0th, 3rd , 7th , 11th ,15th ,19th , … elements of a DWORD array. For example, in array:

Answers

Answer 1

Answer:

def ishex(mylist):

   hnum = 0x12

   for index, item in enumerate(mylist):

       if int(str(item), 16):

           if index == 0:

               print(hex(item + hnum))

           elif item in mylist[3::4]:

               print(hex(item + hnum))

           else:

               print(hex(item))

Dword = [0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f]

ishex(Dword)

Explanation:

The python source code defines a function called "ishex" which takes a list as its parameter, loops through its index and value, checks if it is a hexadecimal number and adds 0x12 to every fourth index value of the list "Dword".


Related Questions

answer this correct and get brainly
Using pseudocode, write an algorithm that someone else can follow.

Decide on a question to ask the user. Some ideas include:
What grade are you in?
What sport do you play?
Where did you go on vacation?
Use one variable to store the response.
Use one if-else statement to make a decision based on the user's input.
Display two messages; one for each condition (True and False).
Insert your pseudocode here: (you only need to do one)
Flowchart Write it out

Flowchart: Input leads to if statment. If true print response. if false print different response. Program ends. Get input:


If statement:



Print if true:



Print if false:

Part 2: Code the Program
Use the following guidelines to code your program.

Use the Python IDLE to write your program.
Using comments, type a heading that includes your name, today’s date, and a short description.
Set up your def main(): statement. (Don’t forget the parentheses and colon.)
Write one if-else statement using user input.
Include a print message for both conditions (True and False).
Conclude the program with the main() statement.
Follow the Python style conventions regarding indentation in your program.
Run your program to ensure it is working properly. Fix any errors you may observe.
When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.

Part 3: Post Mortem Review (PMR)
Using complete sentences, respond to all the questions in the PMR chart.

Review Question Response
What was the purpose of your program?
How could your program be useful in the real world?
What is a problem you ran into, and how did you fix it?
Describe one thing you would do differently the next time you write a program.

Answers

Pseudocode:

import random

fetch user input on a lucky number

insert input into variable - "response"

new variable, random = randint

condition to check wheather random is our response

display results

Python Code:

import random

def main():

response = int(input("Guess my lucky number, its between 1 and 100: "))

lucky_number = random.randint(1,100)

if response == lucky_number:

print(f"Wow you're right, it is {lucky_number}")

else:

print("Sorry, Try Again")

main()

Reminder:

intended for python3 as i included the format f

also it could be done without the import, just manually insert a number

i'll leave the post mortum to you

types of email resources. Examples

Answers

Newsletter emails
Milestone emails
Welcome emails
Review request emails

Hope this helps!

Some examples of malware include:
a. Robots, virus, and worms
B. Trojans, worms, and bota
C. Computer ware, worms, and robots
D. Worms, system kits, and loggerware

Answers

Answer:

i thinks its c hehehe yea

Answer:

I believe it's C

Explanation:

the reason is because malware usually effects the computer ware

Which input device is a part of a tablet computer?
A. printer
B. touch screen
C.
mouse
D. Scanner

Answers

Answer:

I think it's B. touch screen

Explanation:

Answer:

B. touch screen

Explanation:

What are two explanations of internet safety?

Answers

Using and setting a password for any accounts, don’t respond to anyone you don’t know or a friend doesn’t know personally

Answer:

It is important to be safe on the internet to protect yourself and those around you. The internet is a place where no mercy is held so it is up to us to make sure that we stay safe and never give out personal information. Make sure to report suspicious activity and always tell a trusted adult if you are feeling sceptical on anything because, its better to be safe than sorry!

(TCOE) When a customer purchases software that displays a clickwrap agreement at the time of installation, the consumer has already purchased the product and is being asked to consent to the contract that purportedly memorializes the payment. Is the contract formed at the moment of purchase or later, when the buyer assents to the terms of the clickwrap agreement?

Answers

Answer:

The analysis is presented throughout the section described, as per the given situation.

Explanation:

Those requirements as well as agreements do not apply to something like the acquisition of the commodity. But perhaps the terms and agreements are all about the use of the name. This means that for illegal or immoral procedures, when and how to use the item and even the component shouldn't be used. The overall profitability certainly comes with either the commodity themselves as well as during implementation, trying to give one's authorization has always been about the service mostly with the supplier.

However, during implementation, the contract is something different from the place where you live throughout your purchase.

A box has an equal number of red and green balls. What is the probability of a red ball being chosen if the box has a total of 24 balls

Answers

Answer:

50%

Explanation:

Cuz

One key feature of malware is that it:
A. Can only work individually
B. Can only on certain operating systems
C. Can work jointly with other malware types
D. Can always be stopped by antimalware software

Answers

Answer:

Can work jointly with other malware types

QOTD: What are some real-world situations that involve infinite loops, for loops, and while loops? (BRAINLIEST BEST ONE) Around 150 words needed (WILL GIVE BRAINLIEST)

Answers

Answer:

There's not many things that are infinite the earth not infinite sooner or later the sun will grow cold and all life on earth will vanish. The only real thing that's infinite is space and time there's nothing that can measure something that's infinite goes on for light years upon light years infinite thing. That and time that never ends nobody really knows how long that the world has been made. The universe could have been made long before the so called big boom happened. last but not least god he is the infinite thing way before the cosmos were made. He made the cosmos and everything that's in your head to. without him you would not even been born. There you go all the infinite things that are infinite.

Explanation:

Your Answer:

Infinite Loop: I would say time and space for it never ends but I would also say human life. Why? Once you die you will be revived and reincarnated and live forever once that happens.

While loop: The water cycle would be a while loop for it will go on as long as earth and water exist. But Earth will probably not live forever.

For loop: Like the other person said, people working hard each month would be considered a for loop.

---------------------------------------------------------------→

I hope this helped!

--Juri Davis

BRAINLEST AND 20 POINTS! Most GUls provide all of the following except

-command prompts

-desktops

-icons

-menus

Answers

Answer:

command prompts

Explanation:

Command prompts :) hope it helps

Write a program that reads in numbers separated by a space in one line and displays distinct numbers

Answers

Answer:

Here is the Python program:

def distinct(list1):  

   list2 = []  

   for number in list1:  

       if number not in list2:  

           list2.append(number)  

   for number in list2:  

       print(number)

       

numbers =(input("Enter your numbers: ")).split()

print("The distinct numbers are: ")

distinct(numbers)

 

Explanation:

The above program has a function named distinct that takes a list of numbers as parameter. The numbers are stored in list1. It then creates another list named list2. The for loop iterates through each number in list1 and if condition inside for loop check if that number in list1 is already in list2 or not. This is used to only add distinct numbers from list1 to list2. Then the second for loop iterates through each number in list2 and displays the distinct numbers in output.

To check the working of the above method, the numbers are input from user and stored in numbers. Then these numbers are split into a list. In the last distinct method is called by passing the numbers list to it in order to display the distinct numbers. The program along with its output is attached in a screenshot.

Here's my solution in python:

nums = set(input("Enter numbers: ").split())

print("The distinct numbers are:")

for x in nums:

   print(x)

Write the function definition for the generato named 'generator_Magic which takes a single parameter 'n1', an Intege 1. Define the above Generator such tha it should yield the Magic constant(s) for the values starting from 3 to 'n1'. Note Printing the output will be taken care of during testing, so you need not print the Magic constants yielded by generator 'generator_Magic' and its Type. Input Format for C

Answers

Answer:

Method definition to this question can be defined as follows:

def generator_Magic(x1):#defining a method generator_Magic that accepts a variable  

   x = 3#defining a variable n that holds a integer value

   while x <= x1:#defining while loop that check value of x less than x1  

       Val = (x * (( x * x) + 1)) / 2#defining val variable that calculate value  

       #yield val

       return Val#return Val

       n = n + 1#increment the value of n

Explanation:

In the given question some of the data is missing that's why we only define the code, which can be defined as follows:

In this code a, method "generator_Magic" is declared, that hold one parameter "x1" in its parameter, and inside the method, a variable x is declared that hold an integer value and define a while loop to check value is greater than equal to "x1" and calculate the value into "Val" variable and return its value.

What complications are imposed if one tries to implement a dynamic list using a traditional one-dimensional array

Answers

Answer: The expansion of the list will be required to move to a new location;

So the complications that will be imposed if one tries to implement a dynamic list using a traditional one-dimensional array is that the expansion of the list will need to move to a new location.

Explanation: When we talk about arrays,we are referring to data structures that are useful when the number of entries that are to be stored inside a list is fixed.

But for one to implement a dynamic list which always grows or shrinks at run-time arrays cannot be useful.This is because any alteration will make the entire array to be altered.

Why is it important to have good naming conventions for files?

A. To make it easier to identify them
B. To easily apply passwords to them
C. To have Windows security applied
D. To store more than 256 files in one location

PLS HELP
Award: 15pts

Answers

A. To make it easier to ID them

“Back in the day”. One was limited to xxxxxxxx.yyy. 8.3. Name and extension

Many times had to open a file to actually see what what it referred to.

Also when doing search of a drive or folder key words in the naming help discover what you are looking for. Less guessing....

Answer:

To make it easier to identify them

Explanation:

What is the definition of delimited text? Characters are separated by commas or tabs. Characters are separated by spaces. Characters run together without separation. Characters have no limit.

Answers

Answer:

delimited: having fixed boundaries or limits.

Explanation:

Go from there with that definition

Answer:

A. Characters are separated by commas or tabs.

Explanation:

On Edge

Write a complete program that reads a string and displays the vowels. The vowels are A, E, I, O, U and a, e, i, o, u. Here are three sample runs:
Sample Run 1
Enter a string: Welcome to Python
The vowels are eoeoo
Sample Run 2
Enter a string: Student Union
The vowels are ueUio
Sample Run 3
Enter a string: AREIOUaeiouRTE
The vowels are AEIOUaeiouE
Note: your program must match the sample run exactly.
using python

Answers

vowels = "aeiou"

txt = input("Enter a string: ")

print("The vowels are ",end="")

for x in txt:

   if x.lower() in vowels:

       print(x, end="")

I hope this helps!

when you open a browser window it opens in a _____________.
A.menu

B.folder

C.field

D.window.




If you have any questions regarding to the question let me know in the comment section and I will answer them.
Stay safe and healthy.
Thanks!!!!​

Answers

The answer is D window

what are your considerations in making a derivative ict content ti effectively communicate or present data or information?

matinong sagot pls :)

Answers

Answer:

1) Design

2)Content

Explanation:

The considerations in making a derivative ICT content to effectively

communicate or present data or information include the Design.

The design is what helps to portray and make the content more appealing and appropriate for the end users.

The content is the main body and it is vital in helping to provide the required information.

What is Cathode Ray Tube ?

Answers

Answer:

it is cathode ray tube used for display

Explanation:

digital information processed into a useful form is called what

Answers

Answer:

Output

Explanation:

Output can be regarded as data or digital information that are been generated by a computer after it has undergone some processing . This digital information could be anything which can be seen such as picture and others , it's not limited to only words and number. This information can be result of of data calculation, printed documents. Output Devices could be a hardware component that helps in passing the information to people, this could be monitor that gives the information bon screen. It should be noted that output is a Digital information processed into a useful form.

a publication usually issued daily,weekly or other regular times that provides news,views,features and other information of public interest and that often carries advertising​

Answers

Answer:

adsfafdfads

Explanation:

afdafdsa

As a top-level executive at your own company, you are worried that your employees may steal confidential data too easily by downloading and taking home data onto thumb drives. What is the best way to prevent this from happening?

Answers

Answer:

Explanation:

The best thing to do would be to include a ban on thumb drives in the employment contract, that way any employees that bring/use thumb drives would be in violation of their contract and would have to deal with the consequences. Another backup strategy would be implementing a security measure in all of the employee computer systems in order to prevent USB thumb drives from connecting to the computer.

The term Linux Intrusion Detection System ( LIDS) refers to a command that allows an administrator to run processes as root without actually logging in under the root account in a Linux or UNIX system. A. True B. False

Answers

Answer:

B. False

Explanation:

The term Super user do (sudo) refers to a command that allows an administrator to run processes as root without actually logging in under the root account in a Linux or UNIX system.

On the other hand, a Linux Intrusion Detection System can be defined as a patch to the operating system kernel of the Linux machine, as well as a set of administrative tools that is typically used to improve the security of the Linux kernel through the implementation of a mandatory access control known as MAC.

Hence, the Linux Intrusion Detection System can be used to deny any unauthorized use of the input or output device, memory, raw devices, file access and other network administrative functions.

The PCI-Express is made up of a bundle of thirty-two serial, bidirectional point-to-point buses. Each bidirectional bus is called an):________. a. Lane. b. Sub-bus. c. inner bus. d. component bus.

Answers

Answer:

A lane

Explanation:

In a business environment, who is responsible for testing a website? the webmaster the website supervisor the customers who visit the site the search engine director

Answers

The correct answer is =
( the webmaster ) ✅✅

Trust me because, the webmaster is a person responsible for maintaining one or more websites. The title may refer to web architects, web developers, site authors, website administrators, website owners, website coordinators, or website publishers.

Answer:

the webmaster

Explanation:

Since we know that this particular instance of the AppMaker implements a customer-facing store that processes financial transactions, how does that influence which threat agents may be interested in attacking it?

Answers

Answer:

The threats agents may  be interested in attacking includes  

Dos ( denial of service ) Attacks. Blackmailing end-users for information. Attacker can buy products for no price ( zero price )The threat of raising prices of products with fake valueTheft of the products at return The threat of  the miss use of personal details of customers.

Explanation:

Since the Appmaker implements a customer-facing store that processes financial transactions

The threats agents may  be interested in attacking includes  

Dos ( denial of service ) Attacks. Blackmailing end-users for information. Attacker can buy products for no price ( zero price )The threat of raising prices of products with fake valueTheft of the products at return The threat of  the miss use of personal details of customers.

5. Identify the invalid data in the worksheet and correct the entry as follows: a. Circle the invalid data in the worksheet. b. Type 15 as the minimum number of trainees for the Tech Skills program (cell C5). c. Verify that this change cleared the remaining errors in the worksheet

Answers

Answer:

a. Use conditional format, select the worksheet, input a condition in a given column, and use a circle to format the invalid data rows.

b. Double-click on cell C5, delete the current data and input 15.

c. If the errors are corrected, the circles are removed.

Explanation:

Microsoft Excel is a spreadsheet application used to manipulate statistical data. It is made up of cells arranged in rows and columns. There are several built-in formulas and tools used to analyze data.

The conditional formatting tool is an example of excel tools used for analysis. In conditional formatting, a pattern is selected to be used in a selected column or worksheet if a condition is met, if not, the pattern will not be used.

What is the output?
numB = 25
while numB > 13:
numB = numB - 5
print(numB)
Output:

Answers

Answer:

Output: 10

i tried out the code and it outputted 10.

Answer:

10

Explanation:

I got it right

"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings. For each match, add one point to user_score. Upon a mismatch, end the game.
Sample output with inputs: 'RRGBRYYBGY' 'RRGBBRYBGY'
User score: 4
in python please

Answers

import random

letters=["R", "G", "B", "Y"]

i = 0

to_guess = ""

while i < 10:

   to_guess += random.choice(letters)

   i += 1

print("Simon says "+to_guess)

user_score = 0

user = input()

for x in range(0, len(to_guess)):

   try:

       if user[x] == to_guess[x]:

           user_score += 1

       else:

           break

   except IndexError:

       break

print("User score: "+str(user_score))

I hope this helps!

Answer:

import random

validletters=["R", "G", "B", "Y"]

input1 = ""

for i in range(1,11):

     input1 = input1 + random.choice(validletters)

input2 = input("Input String 2: ")

if len(input2) != 10:

     print("Invalid Length")

else:

     user_score = 0

     for i in range(0,10):

           if(input1[i] == input2[i]):

                 user_score = user_score + 1

           else:

                 break

     print("String: "+input1)

     print("Guess: "+input2)

     print("User Score: "+str(user_score))

Explanation:

The code assumes that user input will always be R, G, B or Y

The next two lines get two string user inputs

import random

This lists the valid letters

validletters=["R", "G", "B", "Y"]

This initializes an empty string

input1 = ""

The following iteration generates the input string of 10 characters

for i in range(1,11):

     input1 = input1 + random.choice(validletters)

This prompts user for input string

input2 = input("Input String 2: ")

This checks if input string is up to length of 10

if len(input2) != 10:

If yes, it prints invalid length

     print("Invalid Length")

else:

If otherwise, user_score is initialized to 0

     user_score = 0

The following iteration checks for matching characters in both strings

     for i in range(0,10):

           if(input1[i] == input2[i]):

                 user_score = user_score + 1  This increments user_score by 1 if there is a match

           else:

                 break  This ends the program if there is no match

The next three lines print the strings and the user score

     print("String: "+input1)

     print("Guess: "+input2)

     print("User Score: "+str(user_score))

Rebecca has downloaded a trial version of Microsoft Office. But she finds that she cannot complete all of her assignments because some functions she needs are not included in the trial version. To what type of software does this application belong?
A. Open source software
B. Shareware
C. Custom software

Answers

Answer:

B. Shareware

Explanation:

This trial version of microsoft office that she downloaded belongs to the shareware software. As a Shareware software, it can be downloaded for free. But it is copyrighted by the person who owns it or the developer. It is free for use for a given range or period of time. And unlike the full suite, all of its functionalities would not work since it is just a trial version.

Other Questions
Based on the sentence, what do you think avaricious means?Martin was so giving with his business profits, but his wifewas avaricious with her money.A. GivingB. GreedyC. GenerousD. Business profits Explain why an element with a large atomic radius won't have a high electronegativity Eduardo mixed 5 pounds o cashews and almonds. Cashews cost $8 per pound and almonds cost $6 per pound. The total cost of the mixture was $33. How much of the mixture was almonds? what are the things that the Human Development Index indicate Public health agencies exist on local, state, national, and world levels. A. True B. False PLEASE HELP MERefer to Explorations in Literature for a complete version of this story.What is one theme in Flannery O'Connor's "Everything That Rises Must Converge"?Looks can be deceiving.Love is all we need.Change is a constant in life.We cannot stop the hands of time. A pair of boots are $94.99. They are 25% off. With thisdiscount, what is the sale price? Round to nearestcent if necessary. to the nearest whole degree, what is the measure of Angle z A. 41B. 47C. 51D. 57 what is the domain and range of the graph? A botanist is a scientist who researches plants. What industries do you think could benefit from this research? List three industries. How would plant research be useful for these industries? A lifeguard is in an observation chair and spots a person who needs help. The angle of depression to the person is 22. The eye level of the lifeguard is 10 feet above the ground. What is the horizontal distance between the lifeguard and the person? Round to the nearest foot. what type of figuritive language is this sentence I was stuffed after Thanksgiving dinner! Evaluate 2(x - 3) + n for x = 7 and n = -1 help Which of the following is true about glass recycling?a.Recycling glass reduces the rate of deforestation.b.Recycling glass eliminates greenhouse gas emissions.c.Recycling glass is an energy-saving practice.d.Recycling glass has an incredibly short turn around time. Which statements are true? Check all that apply write a function rule for the nth term of each arithmetic sequence1=6,11,16,21...2=-7,-15,-23,-31....3=-7.6,-9.6,-11.6,-13.6...... Which of the following acts are aimed at increasing equality for women?i. Equal Pay Actii. Title IX Amendmentiii. Pregnancy Discrimination ActA. i onlyB. iii onlyC. i and iii onlyD. i, ii, and iii im dumb please help me*the organelle is mitochondria* How does Scrooge respond to his next visitors?A)He refuses to give them any money to provide food and drink for the poor.B)He speaks adamantly about his perspective on people in prison.C)He eagerly agrees to volunteer at a union poorhouse if he is paid to do so.D)He gives them a little money to make them go away more quickly. should abortion be illegal? why or why not? ( please understand that i know this app is not for debating/arguing just wanted to hear your opinions)