a. A programmer wrote a software delay loop that counts the variable (unsigned int counter) from 0 up to 40,000 to create a small delay. If the user wishes to double the delay, can they simply increase the upperbound to 80,000?
b. If the code contains a delay loop and we noticed that no delay is being created at run-time. What should we suspect during debugging?

Answers

Answer 1

Answer:

Explanation:

The objective here is to determine if the programmer can simply increase the upperbound to 80,000.

Of course Yes, The programmer can simply increase the delay by doubling the upperbound by 80000. The representation can be illustrated as:

( int : i = 0;  i <  40,000; i ++ )

{

  // delay code

}

Which can be modified as:

( int : i = 0;  i <  80,000; i ++ )

{

  // delay code

}

b)  If the code contains a delay loop and we noticed that no delay is being created at run-time. What should we suspect during debugging?

Assuming there is no delay being created at the run-time,

The code is illustrated as:

For ( int : i = 0 ; i < 0 ; i ++ )

{

  // delay code which wont

  //execute since code delay is zero

}

we ought to check whether the loop is being satisfied or not.  At the Initial value of loop variable, is there any break or exit statement is being executed in between loop. Thus, the  aforementioned delay loop wont be executed since the loop wont be executed for any value of i.


Related Questions

Which vulnerability can occur if a programmer does not properly validate user input and allows an attacker to include unintended SQL input that can be passed to a database?

Answers

Answer:

SQL injection

Explanation:

SQL injection is a vulnerability in databases that occurs when user input is not properly validated. Hackers are able to input SQL query statements to bypass the use of the actual user name and password to gain access to the account.

Using placeholders in programmed SQL statements mitigates the effects of SQL injection.

The simplest way to synchronize a dialogue is by using a _____ block found within the Control category.


still

pause

hold

wait

I NEED THE ANWER

Answers

The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

What is a Dialogue?

The term known as Dialogue is said to be a word that connote a form of a  written or spoken kind of conversational exchange that tends to exist between two or a lot of people, and a literary as well as theatrical form that shows such an exchange.

Note therefore, that The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

Learn more about dialogue from

https://brainly.com/question/6950210

#SPJ1

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?

Answers

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:

(a) use excel to construct a spreadsheet that show the following. (you will not submit this spreadsheet. however, the results will be needed later in this problem.)

Answers

A graph of mhgvsa was created using the aforementioned data and the necessary calculations to determine the acceleration, a. To draw and calculate the slope of the best fit line, use the trendline option.

Do you require familiarity with the Excel spreadsheet?

Understanding how to use an Excel spreadsheet is frequently important. It is a prerequisite for many jobs that allow employers to hire anyone.

How does a spreadsheet work and what is it used for?

A spreadsheet is a piece of writing with rows and columns of cells that may be used to sort and work with data. Each cell is intended to carry a single piece of information, such as a number, a letter, or formulas that make use of other cells.

To know more about  trendline option visit :-

https://brainly.com/question/20309607

#SPJ4

The internet solves a variety of problems. How does it solve the problem of data storage?
Responses

Even if your device is damaged, with the cloud, your information is still available online.

It allows people to store all their data safely on physical devices such as memory sticks.
It allows people to store all their data safely on physical devices such as memory sticks.

It allows people to work from home and always keep all their data with them on their devices.

With the cloud, even if the internet is not working, your information is still available on a device.

Answers

Answer:

i would say B

Explanation:

it makes the most sense

Question 10 A designer finds a job that she is interested in, but needs to create a resume quickly before the upcoming job application deadline. What tool can she use to create a solid resume with all the necessary elements?

Answers

If a designer finds a job that she is interested in, but needs to create a resume quickly before the upcoming job application deadline, a tool she can use to create a solid resume with all the necessary elements is: A. a template from a word processing program

What is a word processing software?

A word processing software can be defined as a type of software that is primarily designed and developed in order to enable its end users type, format and save text-based documents.

In Computer technology, word processing software are designed and developed to provide end users with the necessary tools for creating, typing, and editing all kinds of text-based documents such as the following:

LettersResumesReports.Articles

Read more on word processing here: https://brainly.com/question/28017401

#SPJ1

Complete Question:

Question 10

A designer finds a job that she is interested in, but needs to create a resume quickly before the upcoming job application deadline. What tool can she use to create a solid resume with all the necessary elements?

A template from a word processing program

Figma

Medium

Adobe XD

What is the correct command to shuffle the following list? import random people= ["Peter", "Paul", "Mary', 'Jane'] O shuffle (people) Opeople.shuffle() random.shuffle (people) random.shufflelist(people)​

Answers

Answer:

import random

people = ["Peter", "Paul", "Mary", "Jane"]

random.shuffle(people)

Explanation:

Edmentum computers and careers mastery test

Answers

The application that is an example of a locally installed email client  is Thunderbird

The type of computer application  that Oracle is, is called database

The  view in a presentation program displays that your slides in full-screen mode is called Slide Show

What are the applications about?

Thunderbird is a free, open-source email client that can be installed on a computer and used to manage and send email messages. It is an example of a locally installed email client, as opposed to a web-based email service like Yahoo Mail.

A database is a software program that is used to store and manage large amounts of data, such as customer information, product inventory, and financial transactions. Oracle is one of the most widely-used databases in the world, and is often used by large businesses and organizations to manage their data.

In a presentation program, such as Microsoft PowerPoint, the Slide Show view displays your slides in full-screen mode. This means that the slides fill the entire screen and there are no other elements, like the toolbar or ribbon, visible. This view is typically used when presenting the slides to an audience, as it allows the slides to be easily read and seen from a distance.

Learn more about  presentation program from

https://brainly.com/question/24653274

#SPJ1

See correct question below

Examples of  computers and careers mastery test

Email applications can either be local email client programs or web-based applications. Which application is an example of a locally installed email client?

Which type of computer application is Oracle?

Which view in a presentation program displays your slides in full-screen mode?

Select the correct answer from each drop-down menu.
Noah recently installed a proprietary software application on his home computer. Under the terms of the license, he must renew his subscription to the application every year. What type of license does the application have?

The application has_______ type of license. It is different from a perpetual license since this type of license has________

Answers

Answer:1 and 3 Explanation:

Answer:

The application has

(non-perpetual license)

type of license. It is different from a perpetual license since this type of license has

(no expiration date)

.Explanation:

USE SQL PROGRAMMING?
USE the YEAR FUNCTION
Which department received the most human resources complaints in 2020? USE the subproduct: hr subproduct. List the date the human resource complaint was submitted to the company. List the department name with the most human resources complaints in 2020 using the hr subproduct in the query?

Answers

SELECT department, date_submitted

FROM cοmplaints

WHERE subprοduct = 'hr subprοduct'

AND YEAR(date_submitted) = 2020

GROUP BY department

ORDER BY COUNT(*) DESC

LIMIT 1;

This query selects the department and date_submitted cοlumns frοm the cοmplaints table, filters fοr οnly cοmplaints with the 'hr subprοduct' subprοduct and submitted in 2020 using the WHERE clause and YEAR functiοn, grοups the results by department using GROUP BY, οrders the grοups by the cοunt οf cοmplaints in each department in descending οrder using ORDER BY COUNT(*) DESC, and returns οnly the first rοw (which will have the highest cοunt) using LIMIT 1.

To know more about SQL, visit:

brainly.com/question/30319386

#SPJ9

Does an MVP need to have a polished GUI to be delivered? If not, what's the minimum elements that are needed? What elements might not be needed to be completely finished for an MVP? Explain your rationale.

Answers

Answer:

Whether you consider an MVP to be the part before or after the initial polish shouldn't really matter. For your example, I imagine having a "clean" UI would be a pretty important factor in whether it's functionally fun (as defined above), so you should definitely be polishing that a bit

Explanation:

___________ is a global issue and there is a requirement to find out the interdependencies among the customers and suppliers.

Answers

Answer:

Supply chain disruption is a global issue and there is a requirement to find out the interdependencies among the customers and suppliers.

Explanation:

The context suggests we are discussing some type of challenge involving the relationships between customers, suppliers and a larger supply chain. A "global issue" involving "interdependencies among the customers and suppliers" points to potential supply chain disruption or issues in a supply network.

Since there is a "requirement to find out the interdependencies" between customers and suppliers, this suggests we need to identify and analyze how they are connected and dependent upon each other in order to resolve the broader "global issue." This information could then be used to make changes, build resilience or manage risks in the supply chain.

Hope this helps!

Answer:

Internet is global issues

30pts! PLEASE ANSWER FAST-BRAINLIEST WILL BE MARKED
the footer is a number and is used in checking to be sure the _____ has not changed​

Answers

the footer is a number and is used in checking to be sure the bottom margin of each page has not changed​

Which function will display 6 as the output in the following formula?
C1*(C2+B1)
where C1 is 6, C2 is 2, and B1 is 4
_________

Answers

Answer:

36

Explanation:

hi add creeper_king101 i need views on snap

Answer: i just did the pretest and the answer was 36 no cap

Explanation:

What is weather today in new york

Answers

Answer:

Explanation:

Today May, 5 Friday 2023 the weather today in New York is around:

write a method called threeHeads that repeatedly flips a coin until a coin

Answers

Answer:

public void threeHeads() {

Random r = new Random();

int count = 0;

while(count < 3) {

boolean head = r.nextBoolean();

if(head) {

System.out.print("H ");

count++;

} else {

System.out.print("T ");

count = 0;

}

}

System.out.println("\nThree heads in a row!");

}

Explanation:

Use GitHub

Write a short quiz program which asks three true/false questions and stores the user's answers as booleans. At the end the program it should print the user's answers with the correct answers.

Note: you should use the same quiz questions and correct answers as the sample run below.

Sample run:

Java is a programming language, true or false?
true
Only numbers can be stored by variables in Java, true or false?
true
There are only 2 possible values which can be held by a boolean variable, true or false?
false
Question 1 - Your answer: true. Correct answer: true
Question 2 - Your answer: true. Correct answer: false
Question 3 - Your answer: false. Correct
AP CS A Unit 1: Lesson 3 - Coding Activity 3

Answers

this answering question interface is bleh

Write a short quiz program which asks three true/false questions and stores the user's answers as booleans.

The concept of boolean variables is that; variables declared as boolean type can only take any of two values. The variable can either be true or false. Such variable cannot take any other value apart from these two.

The short quiz program is as follows.

Please note that comments are used to explain difficult lines.

import java.util.*;

public class shortQuiz{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

//This declares the variables that represent correct answers as boolean data type; the variables are also initialized

 boolean q1 = true, q2 = false, q3 = true;

//This declares the response to each question as boolean data type

 boolean q1response, q2response, q3response;

//This prints the first question

 System.out.print("Java is a programming language, true or false? ");

//This gets input for the first response

 q1response = input.nextBoolean();

//This prints the second question

 System.out.print("Only numbers can be stored by variables in Java, true or false? ");

//This gets input for the second response

 q2response = input.nextBoolean();

//This prints the third question

 System.out.print("There are only 2 possible values which can be held by a boolean variable, true or false? ");

//This gets input for the third response

 q3response = input.nextBoolean();

//This prints your first response, alongside the correct answer to the first question

 System.out.println("Question 1 - Your answer: "+q1response+". Correct answer: "+q1);

//This prints your second response, alongside the correct answer to the second question

 System.out.println("Question 2 - Your answer: "+q2response+". Correct answer: "+q2);

//This prints your third response, alongside the correct answer to the third question

 System.out.println("Question 3 - Your answer: "+q3response+". Correct answer: "+q3);

//The program ends here

}

}

See attached image for program sample run.

The above program initializes the correct answers using boolean variables. The correct answers are then printed, after the user answers the three questions.

Read more about boolean variables at:

https://brainly.com/question/16843003

Write a short quiz program which asks three true/false questions and stores the user's answers as booleans.

What would the following code do?
while True :
print("Hello")

Answers

Answer:

If it is true then it will write hello

Answer: Will just keep printing “Hello”

Explanation: when you pass a value to a whole loop let’s say it’s called “var1” if u just submit the variable to the whole loop like ‘while var1’ it will run the code in the block while var1 is true '!while var1' for the opposite, so when you pass 'while True' it will keep running the code while True is equal to True which it always will

.............................................is the vertical distance between successive lines of the text​

Answers

Answer:

Line spacing is the vertical distance between successive lines of the text​.

Explanation:

Hope this helps you. :)

You are a systems analyst. Many a time have you heard friends and colleagues complaining that their jobs and businesses are being negatively impacted by e-commerce. As a systems analyst, you decide to research whether this is true or not. Examine the impact of e-commerce on trade and employment/unemployment, and present your findings as a research essay.

Answers

E-commerce, the online buying and selling of goods and services, has significantly impacted trade, employment, and unemployment. This research essay provides a comprehensive analysis of its effects.

What happens with  e-commerce

Contrary to popular belief, e-commerce has led to the growth and expansion of trade by breaking down geographical barriers and providing access to global markets for businesses, particularly SMEs. It has also created job opportunities in areas such as operations, logistics, customer service, web development, and digital marketing.

While certain sectors have experienced disruption, traditional businesses can adapt and benefit from e-commerce by adopting omni-channel strategies. The retail industry, in particular, has undergone significant transformation. E-commerce has empowered small businesses, allowing them to compete with larger enterprises and fostered entrepreneurial growth and innovation. However, there have been job displacements in some areas, necessitating individuals to transition and acquire new skills.

Read mroe on  e-commerce here  https://brainly.com/question/29115983

#SPJ1

some context free languages are undecidable

Answers

yess they are and have been for awhile although they’re already

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.

Answers

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))

The nth Fibonacci number Fn is defined as follows: F0 = 1, F1 = 1 and Fn = Fn1 + Fn2 for n &gt; 1.In

Since database data items are stored in compatible formats and logical connections among them are also stored, we describe database data as Group of answer choices

Answers

Answer:

integrated

Explanation:

Due to this compatibility, we describe database data as integrated. This is because data integration refers to the process of combining data from different sources into a single, and unified view/database. This creates a large gathering of various information that can all be interswapped and used with the same software as one another.

Cache memory is typically positioned between:
the CPU and the hard drive
the CPU and RAM
ROM and RAM
None of the above

Answers

Cache memory is typically positioned between the CPU and the hard drive. A cache memory is used by a computer's central processing unit to reduce the average cost time or energy required to access data from the main memory.

What is Cache memory ?

Cache memory is a chip-based computer component that improves the efficiency with which data is retrieved from the computer's memory. It serves as a temporary storage area from which the computer's processor can easily retrieve data.

A cache is a hardware or software component that stores data in order to serve future requests for that data more quickly; the data stored in a cache may be the result of an earlier computation or a copy of data stored elsewhere.

When the requested data can be found in a cache, it is called a cache hit; when it cannot, it is called a cache miss. Cache hits are served by reading data from the cache, which is faster than recalculating a result or reading from a slower data store; as a result, the more requests that can be served from the cache, the faster the system performs.

Caches must be relatively small in order to be cost-effective and enable efficient data use. Nonetheless, caches have proven useful in a wide range of computing applications because typical computer applications access data with a high degree of locality of reference.

To learn more about Cache memory refer :

https://brainly.com/question/14069470

#SPJ1

What is the difference between popular art and high art?

Answers

Answer:

Explanation:  In contrast, popular art often follows proven formulas that have been shown to appeal to large groups

Bob is the HR manager at an IT firm. What kind of résumé would Bob like to look at?
O A.
OB.
C.
O D.
a résumé with a decorative font
a long, detailed résumé
a colorful résumé
a résumé that addresses their advertised needs
Reset
Next

Answers

Since Bob is the HR manager at an IT firm. The kind of résumé that Bob like to look at is option D. a résumé that addresses their advertised needs.

What is a résumé  about?

A résumé that addresses the advertised needs of the company will focus on the skills, experiences, and qualifications that are most relevant to the position being applied for.

It will also be clearly organized and easy to read, and will highlight the most important information in a way that is relevant to the company's needs.

In all, a résumé that addresses the advertised needs of the company is likely to be the most effective in communicating the candidate's skills and qualifications to Bob and other HR managers at the IT firm.

Learn more about résumé from

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


Which of the following can technology NOT do?
O Make our life problem free
O Provide us with comforts and conveniences
Help make our lives more comfortable
O Give us directions to a destination

Answers

make our life problem free

because technology has its negative effects on humanity like Social media and screen time can be bad for mental health

And technology is leading us to sedentary lifestyles

Technology is addictive

Insomnia can be another side effect of digital devices

Instant access to information makes us less self-sufficient

Young people are losing the ability to interact face-to-face

Social media and screen time can be bad for mental health

Young people are losing the ability to interact face-to-face

Relationships can be harmed by too much tech use

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

Insert the following records into the Airports table, using subqueries where appropriate:-- | Name |

define Artificial intelligence?​

Answers

Artificial intelligence - When a computer replicates human problem solving abilities to perform functions

Use a method from the JOptionPane class to request values from the user to initialize the instance variables of Election objects and assign these objects to the array. The array must be filled. ​

Use a method from the JOptionPane class to request values from the user to initialize the instance variables

Answers

To use the JOptionPane class in Java to request values from the user and initialize instance variables of Election objects and assign them to an array, you can follow the steps given in the image:

What is the JOptionPane class

The code uses JOptionPane. showInputDialog to show a message box and get information from the user. IntegerparseInt changes text into a number.

After completing a process, the elections list will have Election items, and each item will have the information given by the user.

Learn more about JOptionPane class from

brainly.com/question/30974617

#SPJ1

Use a method from the JOptionPane class to request values from the user to initialize the instance variables
Other Questions
I need a 2-page essay or 4 paragraphs asap! It is about mentally strong people. I will give you more details if you are willing to help. I will also give you something. Respond quick. Q9 HELPPPPPPPPPppppppp Solve the equation for x. 5(2x 8) = 90 A) 5 B) 10 C) 13 D) 15 Suppose you are eating buffalo wings at a local happy hour. The total utils from doing so after the fourth, fifth, sixth, and seventh wings are 30, 50, 65, 72, respectively. In this situation we have __________ marginal utility, which is generally __________ in the analysis of consumer choice. One of the chemicals used in this experiment is K2CrO4 (aq). What is its name? compared to the systemic circuit, in the steady state, the pulmonary circuit has ______ cardiac output, ______ mean arterial pressure, and ______ total vascular resistance. Cancer Possible Causes: Symptoms: Treatment: when was Gorge Washington born? first one to answer will get a brainliest! Allan manages security at an events center. He works 8 hours perday, 5 days per week. Allan tracks his total pay as a function of hours in the chartbelow. Using the table, how much is Allan's rate of pay?Time (hours) Total Pay (dollars)8$92.0016$184.0024$276.0032$368.0040$460.00 why should the go/no-go decision be made more thanonce in a projects life cycle? Explain how the graph of the function f(x)=8/x can be obtained from the graph of y=1/x. Then graph f and give the domain and range. Help please1.In ABC, how many triangles are formed given: a=10 cm, b=18 cm, c=105?A. 1B. 2C. 3D. None2. In ABC, if Which of the following was not a reason why the western Roman Empire fell in 476? how did the tension between Britain and the colonies lead to war in Massachusetts? Can u help me please explain how coach seats being terrible on airplanes is a form of price discrimination (hint: customers who prefer first class seats) what is the role of government in a closed economy HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAPHELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP Can someone please help me? The probability that a male will be color-blind is .042. find the probabilities (to six decimal places) that in a group of 53 men, the following are true. (a) exactly 5 are color-blind. (b) no more than 5 are color-blind. (c) at least 1 is color-blind.