Given an array of distinct positive integers. Which of the following can be used to find the longest consecutive sub-sequence of integers? (Note that the consecutive numbers need not be sorted.)
For example, if the given array is [1 , 7, 3, 2, 8], the longest consecutive subsequence is [1 , 3, 2] as 1 , 2,3 are consecutive integers.

Answers

Answer 1

A Naive approach can be used to find the longest consecutive sub-sequence of integers.

What do you mean by Integers?

Integers may be defined as whole numbers that can be positive, negative, or zero. It does not include any functional number or the numbers in the form of p/q. Examples of integers may include -5, 1, 5, 8, 97, etc.

The idea for finding the longest consecutive sub-sequence of integers is to sort or filter the array and find the longest subarray with consecutive elements. After sorting the array and eliminating the multiple occurrences of elements, run a loop and keep a count and max.

Therefore, a Naive approach can be used to find the longest consecutive sub-sequence of integers.

To learn more about Integers, refer to the link:

https://brainly.com/question/929808

#SPJ1


Related Questions

Find advert in magazines or websites of working desktop computer systems or laptop as well as a monitor, keyboard and software you will also need additional devices such as mouse or printer. Reports outlines and explaining the details of the advertising

Answers

Because of our independence, you have complete control over your data. Your information is your information. Independent, open platform. MRC-accredited metrics Increase the effectiveness of advertising.

How do you write outlines for reports and explain the details of advertising?

Analyze market position information for the product and explain how that position is expected to change. Make a list of suggestions to improve your next advertisement.

Typically, advertising campaigns promote a product or service. A national automaker, for example, may launch a new vehicle model through print advertisements in newspapers and magazines. To reach the vehicle's target market, the company may also place graphics-rich ads on websites. This combined media blitz produces more desirable results than isolated advertisements without a central strategy.

This automobile manufacturer, or any business selling a product or service, evaluates its campaign's effectiveness based on defined criteria. A written report provides an objective campaign analysis, highlights favorable results and identifies areas in which advertising strategy adjustments are appropriate.

To learn more about details of advertising refer to:https://brainly.com/question/1658517

#SPJ1

the proper use of safety equipment in your vehicle has the potential to ___.

Answers

The proper use of safety equipment in your vehicle has the potential to reduce the chances of injury.

Why safety equipment is required?

Safety equipment may be defined as a type of equipment that delivers a sense of protection that is significantly used by workers in order to avoid injuries, casualties, life-threatening situations, etc.

Safety equipment may include a set of numerous objects and things like gloves, safety glasses and shoes, earplugs or muffs, hard hats, respirators, coveralls, vests, and full-body suits. All these pieces of equipment possess a common intention behind the safety of an individual.

Therefore, the proper use of safety equipment in your vehicle has the potential to reduce the chances of injury.

To learn more about Safety equipment, refer to the link:

https://brainly.com/question/28389789

#SPJ1

What is the method for combining permissions from different database objects?
Group of answer choices

1. database level

2. role

3. user

Answers

Database level is the method for combining permissions from different database objects.

What is database?The types of access given to particular secureables are called permissions. Permissions are given to SQL Server logins and server roles at the server level. They are assigned to database users and database roles at the database level.The three sorts of permissions that files and directories can have are read, write, and execute: A file's or directory's contents can be viewed by someone having read permission. The contents of a file can be changed by someone with write rights, including by adding, removing, or modifying file contents.The right or permission to access a named object in the recommended way, such a table access authorization. A specific user's connection to the database may be permitted by privileges.

To learn more about database refer to:

https://brainly.com/question/518894

#SPJ1

Database level is the method for combining permissions from different database objects.

What is database?Permissions are the many sorts of access that are granted to specific secureables. At the server level, permissions are assigned to SQL Server logins and server roles. At the database level, they are assigned to database users and database roles.Read, write, and execute are the three types of permissions that files and directories can have. Anyone with read permission can view the contents of a file or directory. Anyone with write access can edit, add, or remove data from a file, among other file-related operations.the capability or authorization to make a recommended access to a named object, like a table access authorization. Privileges may allow a specific user's connection to the database.

To learn more about database refer to:

brainly.com/question/518894

#SPJ1

Someone gives me the idea to increase this title for my thesis MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM.

Answers

An idea to increase the title for the thesis is the function of MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM in a growing economy.

What kind of thesis assertions are there?

Thesis statements that explain something; those that make an argument and Statement of an analytical thesis.

You will use your research to support an assertion, or argument. A compelling thesis statement introduces the subject of the paper, summarizes the key points, and persuades the reader to keep reading.

Hence, Many thesis statements hint at what will happen in the essay in addition to outlining the argument to be presented. In order to help readers follow the writer's idea as it is developed, this serves as a "road map" for them.

Learn more about thesis from

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

When purchasing software or downloading music and games online, how can you make legal choices? Use details to support your answer.

Answers

When purchasing software or downloading music and games online, the ways that you make legal choices are to make sure that  depending on the place  you're downloading the music from. Make sure that the service has obtained permission to be distribution of the music and as such it's legal. Otherwise, it  is said to be illegal.

Is it legal to download music for personal use?

The majority of music and film content found on download or file-sharing websites is copyrighted. Downloading any copyrighted music or films is prohibited. A lawsuit for financial damages that might cost you hundreds or even thousands of dollars could be brought against you if you download or share a copyrighted song or movie.

Note that copyright statute guards that music, making it illegal to duplicate and distribute it without the consent of individuals who have an interest in it. In other words, if someone downloads a song without paying for it, they have probably engaged in copyright infringement.

Learn more about downloading music from

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

Answer:

When purchasing software or downloading music and games online, the ways that you make legal choices are to make sure that  depending on the place  you're downloading the music from. Make sure that the service has obtained permission to be distribution of the music and as such it's legal. Otherwise, it  is said to be illegal.

Explanation:


Create a loop to display all even numbers from 0 to 100. Describe the three elements that must be included in order for a loop to
perform correctly. What will happen if these statements are not included? Provide examples.
The three elements that must be included in order for a loop to perform correctly. What will happen if these statements are not included? Provide examples

Answers

A loop to display all even numbers from 0 to 100:

for(i= 0;i<= 100; i++) {  

       if(counter%2 == 0) {

           printf("%d ",i);

The loop consists of three important parts:

the initialization: the keyword that starts the loopthe condition: the condition being testedthe update: for each iteration.

By missing a condition statement in a for loop, it would loop forever.

Example:

void main() {  

int i = 10;

for( ; ;) {

printf("%d\n",i); }

}

As in the above code, the for loop is running for infinite times and printing the i value that is 10 infinitely.

What is a for loop used for?

A "For" Loop is used to repeat a specific block of code a known number of times.

What are the main types of loops?

There are two types of loops, “while loops” and “for loops”. While loops will repeat while a condition is true, and for loops will repeat a certain number of times.

What are the elements of a loop?

Loop statements usually have three components: initialization, condition, and update step, and it contains a loop body.

To know more about loop:

https://brainly.com/question/16922594

#SPJ1

how does virtual memory different from main memory and secondary memory​

Answers

A secondary memory device is comparable to a spinning magnetic disk or, in modern times, an SSD. Basically, it moves slowly (even an SSD is slow compared to the main memory). Data is stored there as files.

A software can fool itself into believing it has a collection of linear address blocks that it can use as ordinary memory by creating the illusion of virtual memory.

Except in cases where the total quantity of virtual memory needed by all running processes exceeds the physical memory attached to the computer, it has nothing to do with the idea of secondary storage. In that instance, relatively unoccupied pages will be transferred to secondary storage; nevertheless, this is more of a "side effect" of secondary storage's handy proximity and size compared to main memory.

Learn more about memory at:

https://brainly.com/question/13147674

You are starting a new data project. What is one of the best sources to help you begin? in excel
a, Technical Documentation
b, Queries
c, The database
d, Existing reports

Answers

Technical Documentation is one of the best sources to help you begin in excel. Thus, option A is correct.

What is excel?

Excel is a software tool for creating and distributing spreadsheets, built by Microsoft.

Data analysts and some other customers could make that information simple to examine as content is loaded or altered by grouping items employing tools like Excel.


Technical documentation is a catch-all word for the various types of data produced to explain the performance, use, or construction of a given good, platform, or application.

Therefore, option A is the correct option.

Learn more about excel, here:

https://brainly.com/question/3441128

#SPJ1

Highlight the two complex sentences in the text below.

Are Smart Watches Worth it?

Smart watches have been around for a while now, but I’ve avoided buying one. I was never convinced having one offered any great improvements on simply owning a phone. As far as I was concerned, they would never be able to replace a phone. But were they even supposed to? After speaking to a friend who swears by his smart watch, I decided to give one a go. What did I find? It was more useful than I first anticipated. Or maybe the right word is interesting?

Answers

The complex sentences are:

Smart watches have been around for a while now, but I’ve avoided buying one. After speaking to a friend who swears by his smart watch, I decided to give one a go.

What  categories of difficult sentences are there?

All of these sample sentences are complicated because they have both an independent clause and a dependent clause, so keep that in mind.

Subordinate Clauses Three Types

Adjective clauses in dependent sentences serve as adjectives.Adverbs are used in dependent adverb clauses.Nouns are used in dependent noun clauses.

A complex sentence is one that has at least one dependent clause and one independent clause. It functions best when you need to add more details to clarify or change the main idea of your text.

Note that a complicated sentence is one that has at least one independent clause and one or more dependent clauses (sometimes called a subordinate clause). A phrase that would make sense if it were a sentence on its own is known as an independent clause.

Learn more about complex sentences from

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

MYSQL Workbench question
Using a function, display the customer who has the highest credit limit.
. Display the customer number, customer name and credit limit.
I need my answer checked over for the question.
#Show me a list of customers who have the highest credit limit
use premier_products;
select count(*) customer_num, customer_name, credit_limit
from customers
Where credit_limit=
(Select AVG (credit_limit)
from customers)

Answers

A function that displays the customer who has the highest credit limit is given below:

The nested query to display the customer names and credit limit with a lower credit limit than the customer in Sunnyvale

SELECT Name,CREDITLIMIT FROM  CUSTOMERS

WHERE CREDITLIMIT < (SELECT CREDITLIMIT FROM CUSTOMERS

                    WHERE CITY = 'Sunnyvale')

ORDER BY CREDITLIMIT

For Multiple Customers

SELECT Name,CREDITLIMIT FROM  CUSTOMERS

WHERE CREDITLIMIT < (SELECT MAX(CREDITLIMIT) FROM CUSTOMERS

                    WHERE CITY = 'Sunnyvale')

ORDER BY CREDITLIMIT

Read more about SQL here:

https://brainly.com/question/27851066

#SPJ1

Devision of floating binary
(100.0001)÷(10.1)

Answers

1.101 is the correct answer for floating-point binary (100.0001)÷(10.1).

The sign of a binary floating-point number is represented by a single bit. A 1 bit indicates a negative number, and a 0 bit indicates a positive number.

What is Binary Number System?

One of the four types of number systems is a binary number system. Binary numbers are represented in computer applications by only two symbols or digits, namely 0 (zero) and 1 (one). The binary numbers in this example are written in the base-2 numeral system. [tex]101_{2}[/tex] is an example of a binary number. In this system, each digit is referred to as a bit.

A binary number is defined in digital electronics and mathematics as a number expressed in the binary system or base 2 numeral system. It denotes numerical values with two distinct symbols: 1 (one) and 0. (zero). The positional notation with 2 as a radix is the base-2 system.

Because of its direct implementation in electronic circuits using logic gates, the binary system is used internally by almost all modern computers and computer-based devices. Every digit is known as a bit.

To know more about Binary Number, visit: https://brainly.com/question/8649831

#SPJ1

Identify the type of error and correction in the following statement. double 4th3. where is the error ​

Answers

They use the knowledge of computational language in C++ it is possible to write a code Identify the type of error and correction in the following statement.

Writting the code:

#include <stdio.h>  

int main()  

{  

  int sum=0; // variable initialization  

  int k=1;  

  for(int i=1;i<=10;i++); // logical error, as we put the semicolon after loop  

  {  

      sum=sum+k;  

      k++;  

  }  

printf("The  value of sum is %d", sum);  

   return 0;  

}  

See more about C++ at brainly.com/question/29225072

#SPJ1

You have been using your Microsoft cordless mouse for a year but it suddenly stopped
working. You did not install the mouse software (driver) from Microsoft when you got the
mouse because you did not care about using custom features. You have been using the
generic mouse software for Windows. List all of the troubleshooting steps you would do
before declaring that the mouse is defective.

Answers

A wireless mouse can be very portable and effective in our day-to-day work on the computer but can develop problems. one of the problems you might come across is that it suddenly stops working. this can be caused by either a software or hardware issue.

What are the possible issues?Possible software issuesCorrupt drivers Faulty operating system

Possible hardware issues:

Weak batteryFaulty dongleFaulty USB portsFaulty components on the mouse panel

Below are a list of troubleshooting steps

Check switchReplace batteryUninstall drivers and reinstallupdate drivers (if any available update)Reinstall OScheck dongleTry on another computer

Learn more about computer on:

https://brainly.com/question/24540334

#SPJ1

Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format:

firstName middleName lastName (in one line)

and outputs the person's name in the following format:

lastName, firstInitial.middleInitial.

Ex: If the input is:

Pat Silly Doe
the output is:

Doe, P.S.
If the input has the following format:

firstName lastName (in one line)

the output is:

lastName, firstInitial.

Ex: If the input is:

Julia Clark
the output is:

Clark, J.

Answers

Using the knowledge in computational language in JAVA it is possible to write the code that write a program whose input is: firstName middleName lastName, and whose output is: lastName, firstName middleInitial.

Writting the code:

import java.util.Scanner;

import java.lang.*;

public class LabProgram{

public static void main(String[] args) {

String name;

String lastName="";

String firstName="";

char firstInitial=' ',middleInitial=' ';

int counter = 0;

Scanner input = new Scanner(System.in);

name = input.nextLine(); //read full name with spaces

int i;

for(i = name.length()-1;i>=0;i--){

if(name.charAt(i)==' '){

lastName = name.substring(i+1,name.length()); // find last name

break;

}

}

for(i = 0;i<name.length()-1;i++){

if(name.charAt(i)==' '){

firstName = name.substring(0, i); // find firstName

break;

}

}

for(i = 0 ;i<name.length();i++){

if(name.charAt(i)==' '){

counter++; //count entered names(first,middle,last or first last only)

}

}

if(counter == 2){

for(i = 0 ;i<name.length();i++){

if(Character.toUpperCase(name.charAt(i)) == ' '){

middleInitial = Character.toUpperCase(name.charAt(i+1));//find the middle name initial character

break;

}

}

}

firstInitial = Character.toUpperCase(name.charAt(0)); //the first name initial character

if(counter == 2){

System.out.print(lastName+", "+firstName+" "+middleInitial+".");

}else{

System.out.print(lastName+", "+firstName);

}

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

Insert the following records into the Airports table, using subqueries where appropriate:
-- | Name | City | Country | IATA | ICAO | Latitude | Longitude | Altitude | TimeZone & TzDatabaseTimeZone |
-- |-----------------------|---------------|---------|------|------|--------------|----------------|----------|---------------------------------------------------------------------|
-- | Fort McMurray Airport | Fort Mcmurray | Canada | YMM | CYMM | 56.653301239 | -111.222000122 | 1211 | The same time zone as used for the `Edmonton International Airport` |

Answers

Using the knowledge of the computational language in python it is possible to write a code that Insert the following records into the Airports table, using subqueries where appropriate.

Writting the code:

select A.Name, A.City+', '+ A.Country as 'Serving City', A.TimeZone

from Airports A

where A.AirportCode=1028;

select A.FlightCode, A.ConfirmationNumber, Count(B.CustomerID) aa NumberOfPassengers

from Bookings A

join Passengers B on (A.ConfirmationCode=B.ConfirmationCode)

group by A.FlightCode, A.ConfirmationNumber;

select AVG(Amount) as AverageAmount

from Payments;

select A.FlightCode, sum(B.Amount) as TotalPayment

from Bookings A

join Payments B on (A.CustomerNumber=B.CustomerNumber)

group by A.FlightCode

having sum(B.Amount) > 10000;

select A.FlightCode, B.Date, C.FirstName+' '+C.MiddleName+' '+'C.LastName as FullName,

f

select AirportCode, Name

from Airports

where Name not like '%international%';

select Name

from Airlines

where AirlineCode not in (select AirlineCode

from Flights);

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

#SPJ1

Tasia is using accrual accounting in Quickbooks and creat3ed a customer invoice. What account is debited when the invoice is created?

Answers

Since Tasia is using accrual accounting in Quickbooks and creat3ed a customer invoice. The account  that is debited when the invoice is created is option A: Accounts receivable.

When an invoice is created in QuickBooks Accrual, which account gets debited?

Quickbooks  will debit the AR account when I create an invoice, but does the account credit. Depending on whatever income account is linked to your product or service when you create an invoice, a credit will be applied to that account.

Note that Customers' outstanding debts for goods or services they have received but haven't yet paid for are referred to as accounts receivable. For instance, the amount owing when clients buy things on credit is added to the accounts receivable.

Learn more about Accounts receivable from

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

See options below

Tasia is using accrual accounting in QuickBooks and created a customer invoice. Which account is debited when the invoice is created? Accounts receivable Sales of product income Owner's equity Checking account Miscellaneous income

Someone gives me the idea to increase this title for my thesis MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM.

Answers

An  idea to increase this title for the thesis is the role of MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM in the GDP of a country.

What is a research thesis?

It is a position or assertion that will be supported by your study. A compelling thesis statement outlines the subject to be covered, condenses the important points, and persuades the reader to keep reading.

Note that the essential points that will be discussed in the essay should be indicated in the thesis. Many thesis statements hint at what will be discussed in the essay in addition to stating the argument that will be presented. This gives the reader a "road map" so they can follow the thought the author is developing.

Learn more about thesis formation from

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

This is related to coding. I just have no idea how to do this coding project.

Answers

class brainly

{

public String repeatString(String str, int n)

{

for(n=1;n<=3;n++)

{

System.out.print(str);

}

}

}

Using the knowledge of the computational language in JAVA it is possible to write a code that write a method that takes a string and a int and return to the string.

Writting the code:

public String repeatString(String str, int n)

{

 String text = "";

 

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

     {

       text = text + str;

     }

     

   return text;

}

See more about JAVA at brainly.com/question/18502436

#SPJ1

Someone gives me the idea to increase this title for my thesis MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM.

Answers

The way to increase this title for the thesis the negative influence of MULTI PURPOSE COOPERATIVE AUTOMATED LENDING MANAGEMENT SYSTEM in an economy.

What does a research thesis entail?

It is a position or assertion that you will support with research. A compelling thesis statement outlines the subject to be covered, condenses the key points, and persuades the reader to keep reading.

Therefore, The major topics that will be discussed in the essay should be summarized in the thesis. Many thesis statements hint at what will be discussed in the essay in addition to stating the argument to be made.

Learn more about thesis forming from

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

Write Java statements to declare an array that will store the total car sales values (int) for each month of the year

Answers

The Java statements to declare an array that will store the total car sales values (int) for each month of the year is given below:

The Statement

int[] months = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};

This given program gives each value for each month of the year and gives them a number from 1 to 12 which signifies the 12 months of the year:

January, February, March, April, May, June, July, August, September, August, October, November, and December.

Hence, for each sale made, it is computed and the total for each month is printed, along with each individual month and listed out as output.

Read more about java programming here:

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

the difference bitween hardware and software ?​

Answers

Answer:

Hardware refers to the physical and visible components of the system such as a monitor, CPU, keyboard and mouse. Software, on the other hand, refers to a set of instructions which enable the hardware to perform a specific set of tasks.

Hardware is any physical part of the computer, like the monitor or keyboard. Software is the virtual part that tells the hardware what to do.

uses of computer in communication​

Answers

Uses of computers in communication:

1) Transfer of data

2)Transfer of information

3) Wireless message communication

4)Video service

5)E-mail

6) Internet and Fax

What is the use of computers in communication?

The mainstay of information technology, computers are essential for communication. Early in the 1990s, the first homes began to utilize the Internet, which eventually led to the widespread use of email, websites, blogs, social networking, and Voice-Over-Internet Protocol.

Above listed ones are the uses of computers in communication.

To know more about the information about computers in communication

https://brainly.com/question/26152499

#SPJ1

Explain the following :Union within structure union

Answers

Answer:

union with union structure

Explanation:

What should be entered to make the loop below print

55

60

65

x = 50

while (x < 65):

x = x + ____

print (x)

Answers

What should be entered to make the loop below print the output 55, 60, 65 is "5". Hence the complete code is:

x = 50

while (x < 65):

x = x + 5

print (x)

What is a loop in coding?

A loop is a set of instructions in computer programming that is repeatedly repeated until a given condition is met. Typically, a process is performed, such as retrieving and modifying data, and then a condition is verified, such as whether a counter has reached a predetermined number.

Loops are control structures that are used to repeat a segment of code a certain number of times or until a specific condition is fulfilled.

Learn more about loop:
https://brainly.com/question/14390367
#SPJ1

Probability Practice: Cass is interested in figuring out how many customers have applied for a home mortgage recently.

Review the data and calicut are the probability that if Cass runs into one of the financial institutions customers at random, that person has applied for a home mortgage this year.


What is the total number of customers?


How many customers applied for a home mortgage?

Answers

Answer:

Doesn't make a lot of sense. Can you be more specific.

Explanation:

Which of the following is not used as an Internet security indicator?
A) shield icon
B) handshake icon
C) lock symbol
D) heart symbol

Answers

Internet security is not indicated by the shield icon.

What does "Internet security" mean?

A key element of cybersecurity is online security, which includes controlling risks and dangers posed by the Internet, online browsers, web apps, websites, and networks. Protecting consumers & corporate IT assets against online threats is the main objective of Online security systems.

What are the many methods of Internet security?

Access control, antivirus, security testing, network analytics, various forms of network-related safety (endpoint, online, wireless), firewalls, VPN encryption, and more are all included in network security.

To know more about Internet security visit:

https://brainly.com/question/27730901

#SPJ4

Answer:

it is A.

Explanation:

MYSQL
I need a query code I am confused with two questions
Display each classification that has a total of more than 70 parts on hand. List the classification and the total on hand as ‘More than 70’
What is the average quoted price, maximum quoted price, and minimum quoted price of all orders? Display the average as ‘Average Quoted Price’, maximum quoted price as ‘Maximum Quoted Price’, and minimum quoted price as ‘Minimum Quoted Price’. Extra decimal places are okay for now. Insert your snip of the query and resultset together here:

Answers

Using the knowledge in computational language in MYSQL it is possible to write a code that Display each classification that has a total of more than 70 parts on hand. List the classification and the total on hand as ‘More than 70’.

Writting the code:

CREATE TABLE shop (

   price   DECIMAL(16,2) DEFAULT '0.00' NOT NULL,

   PRIMARY KEY(article, dealer));

INSERT INTO shop VALUES

   (1,'A',3.45),(1,'B',3.99),(2,'A',10.99),(3,'B',1.45),

   (3,'C',1.69),(3,'D',1.25),(4,'D',19.95);

See more about MYSQL at brainly.com/question/20626226

#SPJ1

Match each benefit of participating in a professional network to the appropriate scenario.

1. building the professional network

2. preparing for interviews

3. upgrading knowledge

A. Miriam joins a group for employees of the company where she is interning.

B. Imelda reads about new technologies in the computer programming industry.

C. Rolf researches a company on a professional networking website.

Answers

Professional network                                 Scenario

1                                                                       A

2                                                                      C

3                                                                      B

How to categorize professional networks with the scenario?

Scenario: A. Miriam joins a group of employees of the company where she is interning.

Professional network: 1. building the professional network

Scenario: C. Rolf researches a company on a professional networking website.

Professional network: 3. upgrading knowledge

Scenario: B.  Imelda reads about new technologies in the computer programming industry.

Professional network: 2. preparing for interviews

Hence based on the appropriate scenario I have matched accordingly

To know more information on professional networks and related things, please follow the link below:

https://brainly.com/question/2083119

#SPJ1

What hardware component is the main brain of the computer system that is responsible for all the activities of the processor stage of the IPOS cycle

Answers

Answer:

It is the Central Processing Unit (CPU)

Sammy’s Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrella to tourists. Modify your Application as follows: Using Python

Modify the getinput() function that accepts the user information so that it prompts for a customer name, first name and last name. Store in two separate variables.
Add data validation to the account number so that only a 4 character string is allowed. The first character must be an A. You will need to use a while loop here because you do not know how many times the user will enter an invalid Account Number. You will have two conditions for the while loop: while the length of the account number variable does not equal 4 or while the account number variables does not start with the letter "A".
Add a phone number input to the getinput(). Make sure that the phone number is 7 digits. Use a while loop that keeps asking the user to enter the phone number until it is seven digits.
Return all values from the getinput() function -- there will be 5 of them.
Modify the main() function so that the line that calls the getinput() function stores all 5 returned values in separate variables.
Modify the main() function so that the values returned from the getinput() function are passed to the calculatefotal() function.
Modify the header of the calculatetotal() function so that is accepts 5 parameters ( the account number, the number of minutes, the first name, the last name , and the telephone number.
Modify the function that calculates the total and displays all the information, so that it displays the Contract Number, first and last names, and the Phone Number. The Phone Number should be displayed in the ###-#### format. You can the slice function to do this.




Includes comments at the top to identify file name, project and a brief description.

For further documentation, include comment for each section of code.

Sample Run:

ACCOUNT NUMBER:, A234 (program keeps prompting until a 4 character, starting with an A

Name Sally Douglass

123 – 4567 (formatted in the module that displays the result)

Minutes rented: 115
Whole hours rented: 1
Minutes remaining: 55
Rental cost: $ 80



Coupon good for 10% Off!
This is my original code base on the instruction how do I add the new code to the case

# Main function calls other functions
def main():
display()
a,x=getinput()
calculatetotal(x,a)
# function to display logo
def display():
#Display the Sammy’s logo
print("-------------------------------------------------------------")
print("+ +")
print("+ “SAMMY’S MAKES IT FUN IN THE SUN +")
print("+ +")
print("+ +")
print("-------------------------------------------------------------")
# function to receive input from user
def getinput():
# Request the minutes rented and store in variable
contract_number = (input("Enter the account number"))
rented_minutes = int(input("Enter the number of minutes it took to rent: "))
while (rented_minutes<60 or rented_minutes>7200):
rented_minutes = int(input("Try again"))
return rented_minutes,contract_number
# function to calculate hours, minutes remaining and cost
def calculatetotal(acc,mins):
# Calculate number of whole hours
whole_hours = mins//60
# Calculate the number of minutes remaining
remaining_min = mins % 60
# Calculate the cost as hours * 40 + minutes remaining times 1
#Calculation from smallest to greater by getting the smallest number
cost = whole_hours*40+ min(remaining_min*1, 40)
# >Display minutes, whole hours, minutes remaining, and cost with labels
# Print all values
print(("ACCOUNT NUMBER:"),acc)
print("Minutes Rented:",mins)
print("Whole Hours:",whole_hours)
print("Minutes Remaining:",remaining_min)

Answers

Answer:

figure it out

Explanation:

Other Questions
How are radioisotopes used in radiation therapy for cancer?A. to detect unusual cellsB. to strengthen normal cellsC. to kill fast-growing cells Describe the transformers of the parent function, f(x)=x, performed to create g(x).g(x)= -3 f(x) + 1 a study of several pedigrees demonstrates that two parents are normal. if some of their children express a trait, then the trait is controlled by a: estelle's cornfield is divided into 666 regions. she wants to know if a new pesticide is as effective as the pesticide that she currently uses. she randomly assigns each of the 666 regions to either the new or current pesticide for a month, and she'll compare the effectiveness of the pesticides. what type of experiment design is this? Please look at attached image !!! last year at a certain high school, 10 students sought the nomination for president of the student body. in how many ways could the voters (student body) rank their first 5 choices? a) 5 b) 50 c) 30,240 d) 3,628,800 e) 252 f) none of the above. What did the Populists believe? A.The government should reject bimetallism.B.Rich people should pay a higher percentage of their income as taxes.C.Farmers were not an important political power.D.The government should help big businesses with more tariffs.APEX explain why a well-capitalized domestic banking system might be important for the successful maintenance of a fixed exchange-rate regime. write a select statement that lists all of the orders that included the fender precision select the order id, product id, product name, and order date sort the result by the product name in ascending order. complete the statement using angle R + angle A + angle T = curcumin is derived from black pepper and has been proven to prevent many types of cancer. select one: a. true b. false Statistics andProbabilityJonathan earned the followingscores on his math tests:82, 79, 85, 100, 46, 92, 88What is his mean test score? What is the name of the object to which the electric current flows from the battery toward (and then back to)? if after ordering products, you receive defective goods, or no goods, under the ucc, what are your rights? How many grams of water can be heated from 28.0C to 74.5C when 2.19 kJ of heat is absorbed? the idea that mental states are dispositions to behave in particular ways in certain circumstances is known as . a. logical nominalism b. logical behaviorism c. methodological behaviorism d. eliminative materialism geologists have long used fossils to help identify parts of the rock record from around the world and walter employed this strategy in studying the formations around gubbio. throughout the limestone he found fossilized shells of tiny creatures, called group of answer choices diatoms foraminefera dinoflagellates plankton The possible rational roots are 1, 3, 5, 9, 15, and 45.The actual roots ordered from least to greatest are and . Help asap pleaseI dont underddd fredrick has so many student loans, he can't afford rent on an apartment. most of the time, he lives in his car and even though he has a job, he can't seem to make enough to save for the deposit and rent payments. he rarely gets a full night's sleep and as a result he has difficulty concentrating at work. he is jumpy and scared at night and worried all the time. fredrick is struggling to fulfill which two of maslow's needs?