The string and the three instructions is an illustration of the python strings
The length of the stringThe following instruction calculates the length of the string using the Python script:
len("supercalifragilisticexpialidocious")
The returned value of the above instruction is: 34
The substringsThe following instruction calculates the sub-string of first 5 positions and the other sub-string with last 5 positions
myStr[:5]+myStr[-5:]
The returned string of the above instruction is: "supercious"
The number of occurrence of iThe following instruction calculates the occurrences of i in the string
"supercalifragilisticexpialidocious".count("i")
The returned value of the above instruction is: 7
Read more about python strings at:
https://brainly.com/question/13795586
Question 2:
(5 marks)
According to the following code; you are required to draw the flowchart in details with
clear sequences
message=input("enter yes if there is message in the inbox");
attached=input("\n enter yes if there is attachment");
inbox=eval (input ("enter number of email"));
while inbox > 0:
if message=="yes":
print ("extract the message");
if attached=="yes":
print("extract the message");
email=input("eneter v for valied or not");
if email=="V":
print ("extract attached ");
print("inject Job ");
print("inject Submission");
en email=="N":
print("Inject an error");
print ("Remove the inbox mail ");
inbox-inbox-1;
DIO:
print("stop")
Flowcharts are visual representations of a code or program segments
How to draw the flowchart?To draw the flowchart, we make use of the following symbols and figures
Oval: To begin and end the flowchartParallelogram: To accept input for the message, attached, inbox & email variables Parallelogram: To display all outputsRectangle: To perform the arithmetic operation; inbox = inbox - 1Diamond: To make several decisions and to initiate a loop processSee attachment for the flowchart that represents the code
Read more about flowcharts at:
https://brainly.com/question/24735155
Should new technology be created if there is a chance it will be misused?
Answer:
yes
Explanation:
sometime great things can happen out of terrible things.
Answer:
No, because if there is a chance that it will be misused, then it should not be created. Also, we are not told exactly how it may be misused - it could have catastrophic impacts, and cause harm.
Explanation:
A processor accesses main memory with an average access time of T2. A smaller cache memory is interposed between the processor and main memory. The cache has a significantly faster access time of T1
For any single memory access, the theoretical speedup to access a word stored in the cache rather than in main memory is given by:
[tex]Speedup=\frac{T_2}{T_1}[/tex]
Given the following data:
Access time = [tex]T_1 < T_2[/tex]
What is cache?Cache can be defined as a random access memory (RAM) that is used by the central processing unit (CPU) of a computer system to minimize (reduce) the average time taken to access memory (AMAT).
For any single memory access, the theoretical speedup that would be used by the processor to access a word stored in the cache rather than in main memory is given by:
[tex]Speedup=\frac{T_2}{T_1}[/tex]
Where:
[tex]T_2[/tex] is the time to access in main memory.[tex]T_1[/tex] is the time to access in cache.Read more on processor here: https://brainly.com/question/5430107
Suppose that you have a computer with a memory unit of 24 bits per word. In this
computer, the assembly program’s instruction set consists of 198 different operations.
All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.
1. How many bits are needed for the opcode?
2. How many bits are left for the address part of the instruction?
3. How many additional instructions could be added to this instruction set without
exceeding the assigned number of bits? Discuss and show your calculations.
4. What is the largest unsigned binary number that the address can hold?
Answer:
a ) The amount of bits required for the opcode
8 bits
2^8= 256
256>198
We get the next lower number, which is 2^7 = 128 bits, because it is greater than 198. As a result, the operation code necessitates 8 bits.
b) The number of bits reserved for the instruction's address.
16 bits
24-8 = 16
c)
65536
2^16 = 65536
Maximum number = 65535
2^15 = 32768-1
= 32767
Explanation:
True or False: F Layout is better for users who read left to right, but layout is better for users who read right to left.
Answer:
false
Explanation:
it depends on the user
state the name of the following computer components
Answer:
Memory.
Hard Drive or Solid State Drive.
Video card.
Motherboard.
Processor.
Power Supply.
Monitor.
Keyboard and Mouse.
Explanation:
A program checks to see if the input is valid using
numbers
operators
logic
output
Use the knowledge in computational language in python program checks to see if the input is output.
How to define input in Python?In Python, we do this using the input() function, which is literally 'input' in English. The input() function receives as a parameter a string that will be shown as an aid to the user, usually informing him what kind of data the program is expecting to receive.
So in an easier way we have that the code is:
def isNumber(x):
if type(x) == int:
return True
else:
return False
input1 = 122
input2 = '122'
if isNumber(input1):
print("Integer")
else:
print("String")
if isNumber(input2):
print("Integer")
else:
print("String")
See more about python at brainly.com/question/18502436
Create a file using any word processing program or text editor. Write an application that displays the files name, containing folder, size, and time of last modification. Save the file as FileStatisits.java
Explanation:
TO MAKE FOLDER
-right click
-select 'new'
-and click on folder
You're a consultant for a large enterprise that needs a comprehensive IP addressing and DNS management solution for its physical and virtual networks. The enterprise has a primary office in Pittsburgh and three branch offices in Los Angeles, New York, and Miami. It has IT support staff only in the branch offices.The enterprise's server specialists are located in Pittsburgh. The IT directory in Pittsburgh wants to offload some of the IPAM management functions to some of the IT staff without giving them broader domain or forest administrative right. Which type of IPAM architecture do you recommend? Which features of IPAM are you likely to recommend using to address the requirements?
The type of IPAM architecture that I will recommend is the Centralized IPAM. The centralized IPAM server when deploy can help to address the issue.
What is IPAM?IPAM (IP Address Management) is known to be a kind of administration of DNS and DHCP. This is known to be a network services that helps and handles IP addresses to machines in a TCP/IP network.
The Centralized Repository can help administrators to maintain or keep a good, correct and current records of all their IP assignments and left over addresses.
Learn more about IPAM from
https://brainly.com/question/24930846
how bridges are built over water
When you are hired to develop a system for an organization. Is it important to follow all the requests/wants of the system owner rather than of the system user?
If you are hired to develop a system, note that Is it vital to follow all the requests or needs of the system's owner.
The company knows what they want and it is good you do comply with their directives. You can only give your suggestions if need be.
Who can develop an information system?The information systems field is one that is made up of people in organizations that are skilled and can design and build information system.
Note that to be hired to develop a system, one has to follow all the requests/wants of the system owner instead of the system user as the one who needs it knows what he or she wants so you have to comply with it. You can only give your suggestions.
Learn more about system from
https://brainly.com/question/13603602
Does anyone know how to get past this part in Lego Harry Potter it’s the one right after Dobby in year 2? I’m so stuck!!!
thats a nice game. i dont know how to play it. how are you doing?
The quickest way to change a word is to double
click it.
Select the correct answer
O True
False
Answer:
I don't think that the fastest way to change a word is to double click it. Even though it highlights it super fast, then you just press backspace once, it doesn't compare to the one where you press the "ctrl" and "backspace" key at the same time, and it makes the whole entire word disappear in the blink of an eye. But, I am not sure if anybody really knows about this trick. So, it is 50/50.
Explanation:
:)
Someone tell me the answer who thanks who ever who
Answer:
2. Trumpets,Guitar,Drums,Harp,Piano
3. The music notes and variety of colors and the melodies lines
4. 1 thing that needed change is maybe, it needed more intruments.
The ages of ELEVEN(11) students on Environmental Awareness Camp are:
12 9 11 7 10 10 9 9 8 9 11
Find the mean and standard deviation
A. Mean = 9.545; Standard deviation = 1.440
B. Mean = 9.545; Standard deviation = 2.073
C. Mean = 10.5; Standard deviation = 1.440
D. Mean = 10.5; Standard deviation = 2.073
Answer:
Gonna be smart. This took me a long time.
Explanation:
Result Standard Deviation, σ: 1.3726971700492
Count, N: 11
Sum, Σx: 105
Mean, μ: 9.5454545454545
Variance, σ2: 1.8842975206612
Steps
σ2 = Σ(xi - μ)2
N= (12 - 9.5454545454545)2 + ... + (11 - 9.5454545454545)2
11
=
20.727272727273
11
= 1.8842975206612
σ = √1.8842975206612
= 1.3726971700492
In simple words. A.
As a high school student, what do you think is the advantage of someone who has knowledge about the basics of internet compared to those who have not yet experienced using it?
Answer:
For your future in your career, you will definitely have an upper hand and will be able to access and use more tools. But the person that has never used a computer before does not know what exactly they are missing. When they try to use a computer, they will struggle with simple task that now come naturally to you.
Explanation:
Select the correct answer.
What should every HTML document begin with?
A. the element
B.the declaration
C. the element
D.the element
Answer:
B
Explanation:
Every HTML document must begin with a declaration of what the document is going to be about.
List and describe in detail any four power management tools that were developed by at
least two manufacturers to prevent and/or reduce the damage of processors from the
process of overclocking. Your answer must also include the manufacturers name
Power management tools is a kind of technology that enables the efficient and optimized management of the power that is consumed by computer hardware.
What is the purpose of a power management tool?The key purpose of a power management tool is to help:
minimize power consumption;save costspreserve the optimal performance of the system.Examples of power management tools are:
Learn more about Power management tools at:
https://brainly.com/question/12816781
when doing a complex presentation which of the fallowing will be the best tool to begin designing your presentation
Answer:
Explanation:
The options are:
a) Open Office Writer
b) Open Office Impress
c) an outline
d) photographs
The most commonly used presentation software is Microsoft PowerPoint but it is not always available; as is the case here. Of the options, Open Office Impress is the closest in its functions to PowerPoint and is a good tool to design a complex presentation.
a. The insert, Delete, and Format options are present in the
group on the Home tab.
Answer:
False
Explanation:
They are on the keyboard.
Which item is used in Excel to identify the row of a particular cell?
letter
number
type
sheet
The answer is B) number
Answer:
B) number
Explanation:
you are correct! for instance the cell E3 has the column E and the row 3
CHALLENGE
ACTIVITY
1.6.1: Defining a class constructor.
Write a constructor with parameters self, num_mins and num_messages. num_mins and num_messages should have a default
value of 0.
Sample output with one plan created with input: 200 300, one plan created with no input, and one plan created with input: 500
My plan... Mins: 200 Messages: 300
Dad's plan... Mins: Messages: 0
Mom's plan... Mins: 500 Messages: 0
Python please
Coding:
class PhonePlan:
def __init__(self, minutes=0, messages=0):
self.num_mins=minutes
self.num_messages=messages
def print_plan(self):
print('Mins:', self.num_mins, end=' ')
print('Messages:', self.num_messages)
my_plan = PhonePlan(int(input()), int(input()))
dads_plan = PhonePlan()
moms_plan = PhonePlan(int(input()))
print('My plan...', end=' ')
my_plan.print_plan()
print('Dad\'s plan...', end=' ')
dads_plan.print_plan()
print('Mom\'s plan...', end= ' ')
moms_plan.print_plan()
Have a great day <3
do you think film is a great media in exposing information?
Answer:I think film is a great media in exposing information
Explanation:Films are great for exposing information for many reasons. Films are long, which increases the chance the watcher will remember, also it makes the watcher more involved and more interactive
List one unprofessional AND one professional example of internet/social media
Professional: Using social media to advertise a company you created
Unprofessional: Using social media to watch cat videos
The professional use of social media involves the use for job posting, while the unprofessional use involves watching videos.
What is social media?A social media is given as the network that forms the connections of the individuals over the internet. It enables the user to connect irrespective of borders.
The use of social media has been professional and unprofessional both. The professional use of social media involves the use for job posting, while the unprofessional use involves watching videos.
Learn more about social media, here:
https://brainly.com/question/9564823
#SPJ5
write a C++ program to print name, age, class, school
Answer:
#include <iostream>
using namespace std;
int main()
{
string name;
string age;
string Nameclass;
string school;
cout<<"What is your name?\n";
cin>>name;
cout<<"What is your age?\n";
cin>>age;
cout<<"What is your class?\n";
cin>>Nameclass;
cout<<"What is your school?\n";
cin>>school;
cout<<"Name: " + name;
cout<<"\nAge: " + age;
cout<<"\nClass: " + Nameclass;
cout<<"\nSchool: " + school;
return 0;
}
Explanation:
Complete the sentence.
For self-driving cars, both the programmers of the software and governments who regulate them must adhere to
intellectual property laws
ethical principles
noncompete agreements
- to safeguard that the software that controls the car is capable of making life-or-death
Answer:
[ C ] governments who regulate the car industry
[ D ] the programmers who create the software that control the car
Proof:
Governments who regulate the car industry, the programmers who create the software that control the car are the complete sentence.
What is car industry?Car industry is the place where the manufacturing of the cars and automobile parts are placed. Car industry do manufacturing work for the selling purpose. The company may be directly or indirectly engage in the selling industry.
Thus, sentences are completed.
For more details about car industry, click here:
https://brainly.com/question/1139792
#SPJ2
5. How would you reorder the animation on a slide using the Animation
Pane?
Answer:
undo button
Explanation:
I hope this helps
Take any software or Application that you have recently purchased, this can be a video game or any other application helping you to complete you educational objectives or professional purposes. Go through about the copyright, license policies [you will find this information on the leaflet or on the packaging] and answer the following questions]
Can you make copies? What does the license agreement say about the number of copies you can make? Explain in detail [ 2Marks]
Does it specify penalties for making unauthorized copies if yes give the brief detail on that?
[1 Mark]
Do you consider the license agreement to be clearly stated? Reasonable? Explain with two reasons. [ 2 Marks]
A good product should have copyright protection which prevents others from using the product without permission.
Some products specify the penalties which are given to a person who makes unauthorized copies of their product and this is done to clearly educate to avoid ignorance claims.
A good product should have clear lettering which are legible and can be easily read, and should also have reasonable copyright protection.
What is Copyright?This refers to the licensing which is done for a product and is also legally backed which prevents a person from illegally using or redistributing the work of a creator without their explicit consent.
Read more about copyright infringement here:
https://brainly.com/question/1078532
Why do Linux administrators prefer to give sudo access to application teams instead of letting them su to root?
Answer:
Explanation:
some distros like ubuntu do not even allow su to switch to root. furthermore the su to root is dangerous because the user becomes the all-powerful administrative account, so no warnings are issued if the application team user tries to do something system-breaking.
Service provided by multiple servers acting in parallel is referred to as: a. Multiple-phase queuing system b. Multiple-channel queuing system c. Multi-delivery servicescape d. Multi-platform servicescape
Service provided by multiple servers acting in parallel is referred to as Multiple-channel queuing system.
What is Multiple-channel queuing system?The multi channel queuing problems is known to be a system where each of the stations is known to often deliver the same type of service and they are said to be equipped with the same kind of tools.
Conclusively, A multi-channel, is said to be a single-phase business that is composed of different servers and also has a one-step servicing process.
Learn more about Multiple-channel from
https://brainly.com/question/17137414