Consider an array of 100 integers, which are completely unsorted. Provide a code snippet that will find the largest number in the array and calculate the number of computational steps required. Create a Loom video in which you comment on your code and give your assessment of the computational time required. Paste the link to your video here.
To find the largest number in an unsorted array of 100 integers, you can use the following code in Python:
The Python Codearray = [4, 2, 9, 7, ...] # Replace ellipsis (...) with the actual array of 100 integers
largest = float('-inf') # Initialize the largest number with negative infinity
for num in array:
if num > largest:
largest = num
print("Largest number:", largest)
As a result, the fragment of code will perform 100 loops, evaluating every element against the biggest number at the moment, and substituting it with any greater number discovered.
Read more about arrays here:
https://brainly.com/question/29989214
#SPJ1
Write a program in c++ to read two integers, calculate and print the smallest
Answer:
#include<iostream>
using namespace std;
int main (){
int n1, n2;
cout<<"Enter 1st number";
cin>>n1;
cout<<"Enter 2nd number";
cin>>n2;
if(n1<n2){
cout<<"The 1st number is the smallest"<<endl<<" is= "<<n1;
}
else{
cout<<"The 2nd number is the smallest"<<endl<<" is= "<<n2;
}
}
return 0;
Kiaan wants to give people who attend his presentation a printed copy of the slides. Instead of printing one slide on each piece of paper, he wants to print six slides on each piece of paper. Which setting should he select on the Print tab in Backstage view to do this?
Answer:
Under the Print Tab of the Backstage view of his presentation, Kiaan can print 6 slides on each piece of paper by selecting the "Full Page Slides" which is under settings.
Once that is done, he will be presented with an array of choices.
He is to select whether to print 6 pages/sheet vertically or horizontally under the "Handouts" section.
Thereafter, he can proceed to click on "Print".
Cheers!
What sound customization option would you use in Scratch to simulate a sound happening in a large, empty room (like a theater)?
louder
reverse
echo
slower
Answer:
Louder
Explanation:
4.11 lesson practice edhesive
Hi, you've asked an incomplete question. However, here's the missing part:
Computer___are used to represent a real-world situation using___.Answer:
software; modeling.
Explanation:
Indeed, Computer software is an important tool used to represent a real-world situation by means of modeling.
For example, computer software can model the rate of transmission of a deadly disease, in other for medical experts to better prepare how to deal with those who may likely fall ill in the future.
The missing phrases in the sentence given describes computer softwares and their use. Hence, the phrases are softwares and modeling.
Computer softwares are apllications or coded programs which are designed to be used on computers to solve a specific problem.
Problems are solved using computer softwares by a concept called modeling. Models refers to skeleton which takes as input, the problem to be solved and produces the required output.
Hence, the missing phrases are softwares and modeling.
Learn more :https://brainly.com/question/14565712
The nth Fibonacci number Fn is defined as follows: F0 = 1, F1 = 1 and Fn = Fn−1 + Fn−2 for n > 1.
In other words, each number is the sum of the two previous numbers in the sequence. Thus the first several Fibonacci numbers are 1, 1, 2, 3, 5, and 8. Interestingly, certain population growth rates are characterized by the Fibonacci numbers. If a population has no deaths, then the series gives the size of the poulation after each time period.
Assume that a population of green crud grows at a rate described by the Fibonacci numbers and has a time period of 5 days. Hence, if a green crud population starts out as 10 pounds of crud, then after 5 days, there is still 10 pounds of crud; in 10 days, there is 20 pounds of crud; in 15 days, 30 pounds of crud; in 20 days, 50 pounds of crud, and so on.
Write a program that takes both the initial size of a green crud population (in pounds) and some number of days as input from the keyboard, and computes from that information the size of the population (in pounds) after the specified number of days. Assume that the population size is the same for four days and then increases every fifth day. The program must allow the user to repeat this calculation as long as desired.
Please note that zero is a valid number of days for the crud to grow in which case it would remain at its initial value.
You should make good use of functions to make your code easy to read. Please use at least one user-defined function (besides the clearKeyboardBuffer function) to write your program.
basically I've done all the steps required except the equation in how to get the final population after a certain period of time (days). if someone would help me with this, I'll really appreciate it.
In Python, it can be expressed as follows. Using the recursive function type, we find the sum of the previous term and the sum of the two previous terms.
Python:x=int(input("Initial size: "))
y=int(input("Enter days: "))
mod=int(y/5)-1
def calc(n):
gen_term = [x,2*x]
for i in range(2, n+1):
gen_term.append(gen_term[i-1] + gen_term[i-2])
return gen_term[n]
if(mod==0):
print("After",y,"days, the population is",x)
else:
print("After",y,"days, the population is",calc(mod))
What is the HIE? What is its purpose?
Answer:
Electronic health information exchange (HIE) allows doctors, nurses, pharmacists, other health care providers and patients to appropriately access and securely share a patient's vital medical information electronically—improving the speed, quality, safety and cost of patient care.
Explanation:
Answer:
HIE is a system that helps tansport patients when it becomes overwhelmed.
Explanation:
At the point when medical services suppliers approach total and exact data, patients get better clinical consideration. Electronic wellbeing records (EHRs) can improve the capacity to analyze illnesses and lessen risks. Doing this helps patients get timely care. More severe cases can be treated quickly.
When preparing a photo for a magazine, a graphic designer would most likely need to use a program such as
-Microsoft Excel to keep track of magazine sales.
-Microsoft Word to write an article about the photo.
-Adobe Photoshop to manipulate the photo.
-Autodesk Maya to create 3-D images that match the photo.
Answer:
C. Adobe Photoshop To Manipulate The Photo.
Explanation:
:)
Answer:
C
Explanation:
Please rewrite and correct the following sentences:
1. Their dog ran away last night, and now their looking for him.
2. The company lost there biggest client last year.
3. Who is you going to the party with tonight?
4. The museums is open on Saturdays from 10am to 5pm.
5. Neither the boys or their father have any idea where the car keys is.
1.Their dog ran away last night, and now they are looking for him.
2. Their company lost their biggest client last year.
3. With whom you are going to the party with tonight?
4. The museums are open on saturdays from 10 am to pm.
5. Fathers or Boys no one knows where the car keys are?
Thus, English has three tenses: past, present, and future. When writing about the past, we employ the past tense.
When writing about facts, opinions, or regular occurrences, we employ the present tense. To write about upcoming events, we utilize the future tense. Each of those tenses has additional characteristics, but we won't cover them in this session.
It's crucial to maintain the same tense throughout a writing endeavor after you've decided on one. To communicate yourself clearly, you may need to switch up the tense from time to time.
Thus, English has three tenses: past, present, and future. When writing about the past, we employ the past tense.
Learn more about Tenses, refer to the link:
https://brainly.com/question/29757932
#SPJ1
what are 5 computer cable connectors
Answer:
VGA cable, DVI cable, Ethernet Cable, PS/2 Cable, 5mm Audio Cable and USB cables
Explanation:
im in cumputers class
In a train stations database, an employee MUST be a train driver, ticket issuer or train attendant, with following constraint: Same employee cannot occupy more than one job type.
Draw EER diagram to represent specialization of employees in the train station database.
The EER diagram for the train station database can be represented as follows:
The EER diagram+-------------------+
| Employee |
+-------------------+
| employee_id (PK) |
| name |
| address |
+-------------------+
^
|
|
+-------------+----------------+
| |
| |
| |
| |
v v
+-------------------+ +-------------------+ +-------------------+
| Train Driver | | Ticket Issuer | | Train Attendant |
+-------------------+ +-------------------+ +-------------------+
| employee_id () | | employee_id () | | employee_id () |
| license_number | | badge_number | | uniform_size |
+-------------------+ +-------------------+ +-------------------+
The given illustration features a fundamental element known as "Employee", which denotes every individual employed at the railway station.
The "Employee" object is equipped with features, like employee identification number, full name, and place of residence. The "Employee" entity gives rise to three distinct units, namely "Train Driver," "Ticket Issuer," and "Train Attendant. "
Every distinct entity has an attribute known as foreign key (employee_id) that refers to the main key of the "Employee" entity. Each distinct unit possesses distinct characteristics that are unique to their job category, such as license_number for Train Drivers, badge_number for Ticket Issuers, and uniform_size for Train Attendants.
Read more about database here:
https://brainly.com/question/518894
#SPJ1
The following program is suppose to use the sin() function in the math library and write out an input's absolute value over an interval. So for example if sine(0.6) is 0.564 then its absolute value is the same (0.564). But if sine(2.4) is -0.675 then its absolute value is 0.675. #include #include /* has sin(), abs(), and fabs() */ int main(void) { double interval; int i; for(i = 0; i <30; i++) { interval = i/10.0; printf("sin( %lf ) = %lf \t", interval, abs(sin(interval))); } printf("\n+++++++\n"); return 0; }
Answer:
#include <stdio.h>
#include <math.h> /* has sin(), abs(), and fabs() */
int main(void) {
double interval;
int i;
for(i = 0; i <30; i++) {
interval = i/10.0;
printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));
}
printf("\n+++++++\n");
return 0;
}
Explanation:
The C source code defines a void main program that outputs the absolute value of the sine() function of numbers 0.1 to 3.0.
The program is an illustration of loops.
Loops are used to perform repetitive and iterative operations.
The program statements in C language that completes the program are as follows:
interval = i/10.0;
printf("sin( %.1lf ) = %.3lf \t", interval, abs(sin(interval)));
The flow of the above statements is as follows
The first line determines the intervalThe second line prints the required output
Read more about similar programs at:
https://brainly.com/question/14575844
What is a segmentation?
Answer:
Segmentation means to divide the marketplace into parts, or segments, which are definable, accessible, actionable, and profitable
A spreadsheet is
O a tool for creating graphics
O a program used to improve keyboarding
O software used to input, track, and calculate numbers
O software that allows you to create business letters
Answer:
C. software used to input, track, and calculate numbers
Explanation:
A spreadsheet is a software used to input, track, and calculate numbers.
How do I write this program?
def goingUp(n): # prints the stars from the row with 1 until a row with n
def goingDown(n): # prints the stars from the row with n to the row with 1
If the user enters a negative value, your program should print nothing.
If the user enters 0, your program should print nothing.
If the user enters 1, your program should print a single line with one star.
If the user enters any number greater than 1, your program should print according to the pattern shown above.
The prompt to the user must be Please enter a value
Answer:
Sorry but I don't know this
Given string userText on one line and character fourthChar on a second line, change the fourth character of userText to fourthChar.
Ex: If the input is:
cheetah
v
then the output is:
chevtah
Note: Assume the length of string userText is greater than or equal to 4.
Answer:
# Get the input from the user
userText = input()
fourthChar = input()
# Replace the fourth character of the string with the new character
userText = userText[:3] + fourthChar + userText[4:]
# Print the modified string
print(userText)
Explanation:
This code first gets the input from the user and stores it in the userText and fourthChar variables. It then uses string slicing to replace the fourth character of the string with the new character. Finally, it prints the modified string.
The input string is cheetah, and the fourth character is e. The code replaces this character with the new character v, resulting in the modified string chevtah.
problem description IT
In IT, a problem description refers to a clear and concise explanation of an issue or challenge that needs to be resolved within a technology system or application.
How is this so?It involves providing relevant details about the symptoms, impact, and context of the problem.
A well-written problem description outlines the specific errors, failures, or undesired behavior observed and provides enough information for IT professionals to analyze and identify potential solutions.
A comprehensive problem description is crucial for effective troubleshooting and problem-solving in the IT field.
Learn more about Problem Description at:
https://brainly.com/question/25923602
#SPJ1
what is musical technology specifically, the origins of its genesis & its importance to the baroque era
Answer:
There were three important features to Baroque music: a focus on upper and lower tones; a focus on layered melodies; an increase in orchestra size. Johann Sebastian Bach was better known in his day as an organist. George Frideric Handel wrote Messiah as a counterargument against the Catholic Church
If you delete a shortcut from your desktop, have you also deleted the original file?
Answer:
no
Explanation:
it just deletes the icon.
Answer:
Nope!
Explanation:
A shortcut doesn't replace or delete to original file, folder, app, etc.
Before inserting a preformatted table of contents, what must you do first?
apply heading styles to text
update the table of contents
navigate to the Review tab and the Table of Contents grouping
navigate to the Insert Table of Contents dialog box
Answer: apply heading styles to text.
Explanation:
Select the correct answer.
Alan wants to retouch some of his photographs before he sends them to a client. What will the Liquify filters help him achieve?
A. changes in color tones
B. addition of lighting effects
C. distortions of organic forms
D. copying of elements in an image
E. increased or decreased contrast
λ
Answer:
Explanation:
D
Distortions of organic form liquify filters is the thing which will help Alan in achieving it. Thus, the correct option is C.
What are liquify filters?The Liquify filter are the options which lets us push, pull, rotate, reflect, pucker, and bloat any area of an image on the adobe photoshop. The distortions which we create through this can be subtle or drastic, this makes the Liquify command a powerful tool for the purpose of retouching images as well as creating artistic effects on it.
Distortion filters are generally used to change the shape of layers, twisting, and pulling them in different directions in a document. There are 27 different distortion filters available which include Black hole. Black hole distorts an image by causing part of it to disappear from it into the specified center point o the image, bowing the top, bottom, and sides towards inward.
Therefore, the correct option is C.
Learn more about Liquify filters here:
https://brainly.com/question/8721538
#SPJ2
Three friends decide to rent an apartment and split the cost evenly. They each paid $640 towards the total move in cost of first and last month's rent and a security deposit. If rent is $650 per month, how much was the security deposit?
a.
$10
b.
$207
c.
$620
d.
$1,270
Please select the best answer from the choices provided
Answer:
c. $620
Explanation:
To find the cost of the security deposit, we need to subtract the amount paid towards the first and last month's rent from the total move-in cost.
Each friend paid $640 towards the total move-in cost, which includes the first and last month's rent and the security deposit. Since they split the cost evenly, the total move-in cost is 3 times $640, which is $1920.
The monthly rent is $650 per month, so the first and last month's rent combined is 2 times $650, which is $1300.
To find the security deposit, we subtract the first and last month's rent from the total move-in cost:
Security deposit = Total move-in cost - First and last month's rent
Security deposit = $1920 - $1300
Security deposit = $620
Therefore, the security deposit was $620.
Option c. $620 is the correct answer.
7. Which of these statements is true? Agile is a programming language MySQL is a database HTML stands for "Hypertext Markup Link" Java is short for JavaScript
Answer:
None of them is correct, but it seems one of the option has missing words.
The exact definition is, MySQL is a database management system.
Explanation:
Agile is not a programming language, it is a software development methodology.
HTML stands for "Hypertext Markup Language"
Java and JavaScript are different languages.
Actually, MySQL is a database management system. It is used to deal with the relational databases. It uses SQL (Structured Query Language).
In which of the following situations must you stop for a school bus with flashing red lights?
None of the choices are correct.
on a highway that is divided into two separate roadways if you are on the SAME roadway as the school bus
you never have to stop for a school bus as long as you slow down and proceed with caution until you have completely passed it
on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus
The correct answer is:
on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school busWhat happens when a school bus is flashing red lightsWhen a school bus has its flashing red lights activated and the stop sign extended, it is indicating that students are either boarding or exiting the bus. In most jurisdictions, drivers are required to stop when they are on the opposite side of a divided highway from the school bus. This is to ensure the safety of the students crossing the road.
It is crucial to follow the specific laws and regulations of your local jurisdiction regarding school bus safety, as they may vary.
Learn more about school bus at
https://brainly.com/question/30615345
#SPJ1
Explain the hazard and the effect/risk of exposing to the hazard and propose risk control measures on how to deal with identified hazard of Jabatan Sukarelawan Malaysia (RELA). The explanation should be supported with relevant diagram (HIRARC Form).
The Hazard is: Physical Hazards that are seen in RELA Operations
What is the hazard about?RELA is known to be a term that is seen as a form of a voluntary corps that can be seen in Malaysia and they help to aid in a lot of civil defense as well as in community service activities.
Therefore, In their operations, RELA personnel are known to be very exposed to a lot of physical hazards, for example:
Falls: When doing maintenance or rescue operations, RELA workers may need to work at elevated heights, which poses a risk of falls.Lastly, During RELA operations, personnel may be exposed to moving, falling, or flying materials or debris that could strike them and cause harm.
Learn more about hazard from
https://brainly.com/question/29546272
#SPJ1
Write a grammar for the language consisting of strings that have n copies of the letter a followed by the same number of copies of the letter b and the the same number of copies of the letter c, where n >0. For example, the strings abc, aaaabbbbcccc, and aaaaaaaabbbbbbbbcccccccc are in the language but a, abbc, bac, and aaabbbcc are not
Answer:
def language(mystring, n):
if n > 0:
string_list = [x for x in mystring]
string_cont = ""
for character in string_list:
string_cont += character * n
print(string_cont)
Explanation:
When n is equal to 0, that is, n=0, The python program multiplies the characters of the string "mystring" by the integer variable "n" to output a string with all characters with the same count.
in the situation above, what ict trend andy used to connect with his friends and relatives
The ICT trend that Andy can use to connect with his friends and relatives such that they can maintain face-to-face communication is video Conferencing.
What are ICT trends?ICT trends refer to those innovations that allow us to communicate and interact with people on a wide scale. There are different situations that would require a person to use ICT trends for interactions.
If Andy has family and friends abroad and wants to keep in touch with them, video conferencing would give him the desired effect.
Learn more about ICT trends here:
https://brainly.com/question/13724249
#SPJ1
What is the main difference between Trademarks and Copyrights?
Trademarks have not enter the Public Domain as long as the company exists.
Trademarks convert any mark you make into a copyrightable IP
Trademarks give you the right to trade IPs with other companies.
Trademarks allow you to get around the copyright laws and keep your IP from entering Public Domain.
Giving brainliest if it’s right.
Answer:
copyrights protect creative or intellectual works, and trademarks apply to commercial names, phrases, and logos
Explanation:
of a
Which of these describes the result of running a
query?
a datasheet displaying records
bles
a field
an interface between the user and the
database
a summary of select data
DONE
Answer:
interface
Explanation:
(aka query thingy)
Answer:
A: a datasheet displaying records
Explanation:
I just did the Part 1 on EDGE2022 and it's 200% correct!
Also, heart and rate if you found this answer helpful!! :) (P.S It makes me feel good to know I helped someone today!!)
In HTML, what is an element?
O The text browser displays when a user points the mouse pointer to it
O The tag that tells the web browser what the source of a file is
O The combination of a start and end tag, not including the tagged content
O The combination of a start and end tag, together with the tagged content
Answer:
The right answer is Option D: The combination of a start and end tag, together with the tagged content
Explanation:
HTML stands for hypertext markup language. It is one of the most commonly used languages on the internet.
Element:
An element in HTML consists of a start tag and end tag, and contains some content between the two tags.
i.e.
<tag> Content </tag>
Hence,
The right answer is Option D: The combination of a start and end tag, together with the tagged content
Answer:
The right answer is Option D: The combination of a start and end tag, together with the tagged content
Explanation: