1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Papessa [141]
3 years ago
6

Given an int variable k, an int array incompletes that has been declared and initialized, an int variable nIncompletes that cont

ains the number of elements in the array, an int variable studentID that has been initialized, and an int variable numberOfIncompletes, Write code that counts the number of times the value of studentID appears in incompletes and assigns this value to numberOfIncompletes. You may use only k, incompletes, nIncompletes, studentID, and numberOfIncompletes.
Computers and Technology
1 answer:
Hoochie [10]3 years ago
5 0

Answer:

I will code in Javascript.

Preconditions:

The variables k, incompletes has been declared and initialized.

The variable nIncompletes contains the number of elements of incompletes.

The variable stududentID has been declared and initialized.

The variable numberOfIncompletes has been declared.

Script:

numberOfIncompletes = 0; <em>//initialize numberOfIncompletes</em>

for( k = 0; k < nIncompletes; k++) {

      if(incompletes[k] == studentID){ <em>//if the element of array is equal to studentID</em>

         numberOfIncompletes++; <em>//adds 1 to numberOfIncompletes</em>

      }

}

Explanation:

The script uses a for loop to go through the entire array incompletes, comparing the k variable with nIncompletes and adding 1 on each pass.

Then inside the for, uses an if statement to compare if the actual element is equal to studentID, if equal adds 1 numberOfIncompletes.

You might be interested in
Create a website on budget
kaheart [24]

Answer:I bet your attention automatically tuned into the video background, right?  It’s almost impossible to ignore it as it is moving.

There’s nothing wrong with you – it’s just human nature and how we subconsciously decide where to pay our attention to.

We are easily distracted by anything that moves – just like that dog that ignores everything in its world to chase that pesky little squirrel!

“Okay, you got me to look at your silly video, what does this have to do with my website design?”

What a great question and I’m glad you asked.

A video background on your website, if used properly, can help you capture your website visitors’ attention too!

Video background is one of the most popular website design trend that seems to be here to stay.

Marketers love video backgrounds because they make websites look modern and create a sense of artistry that static background images simply can’t match up to.

Many website conversion experts and regular people alike see their visitors stay on their websites longer and more likely to sign up or opt-in to their product / service offers.

I’ll admit – a 138% improvement sounds extraordinary and challenging to achieve every other day.

Keep in mind that such high figure is from tests ran by conversion / business optimization professionals who do this for a living. So it’s fair to say not everybody who runs a DIY website will see similar improvements, just by adding a video background to their website.

However, even a 10% – 20% improvement in engagement and conversion is not unreasonable for even a first-time website owners with no professional help  – if you use video background on your homepage the right way!

Imagine if you collected email newsletter subscribers so you can follow up with special promotions or share interesting discussions to build your brand.

Consider what a 20% increase in subscribers can do to your business? This can mean more sales and/or higher brand awareness!

All this can be done if you can capture your visitors’ attention more effectively – by using a video background.

This is not just a hypothetical idea. A lot of real life case studies have demonstrated how many businesses have succeeded by using video backgrounds to improve sales.

Like all things in life, there is a right way and a wrong way of doing things.

Even with something as groundbreaking as a video background, you can still screw it up and end up hurting your overall website design and experience – if you don’t abide by some basic rules.

So, understanding how to avoid basic mistakes when using a video background on your homepage can give you a much higher chance of succeeding in improving your web design.

In this guide, we will show you all the steps and best practices you should take to use video background effectively:Video background is most effective when you use it to (1) create a vibe, (2) to set a tone or (3) to induce an emotional reaction.

Let’s check out some examples:

Example #1: Businesses, Services, Organizations

Video backgrounds work for most professional websites, whether you are running a clinic, consultancy business, or design agency.

You can use a video background to show clips of the life of your staff or even the process of helping a customer. This gives your potential clients a chance to get to know you before even talking to you. It also paints a very vivid visual representation of what they can expect to experience from your business.Grain & Mortar is a design agency. This example is interesting because it shows you that you don’t always need to have a full page video background to get a similar benefit. They only display a video in the header section of the page that takes no more than half the screen real estate.

The video shows the daily collaboration of the staff (strategy sessions) and how they create design solutions for their clients.

At this moment, video background themes are somewhat limited in Shopify’s Theme Store. You do get more selection if you search for Shopify Video Background Themes in third party providers like Themeforest.

Do keep in mind all themes available in Shopify’s Theme Store are screened, approved and supported by Shopify.

In comparison, Shopify Themes from third party providers do not undergo Shopify’s direct screening process. While I am not saying third party themes are not as good, I just want you to be informed if you are considering whether to purchase from a third party provider.

Explanation:

lol i know this is alot just copy and paste it and can i have a brain list

3 0
3 years ago
How to change default search engine in internet explorer 10?
ser-zykov [4K]
Settings > view advanced settings > change search engine > Google search > set as default
7 0
3 years ago
Linda and her mom want to start a company selling homemade brownies to large supermarket chains. To get started, they have creat
lianna [129]

Answer:

Peer to Peer Network

Explanation:

In a peer to peer network, the 'peers' are computer systems which are connected to each other via the Internet. Files can be shared directly between systems on the network without the need of a central server. In other words, each computer on a peer to peer network becomes a file server as well as a client.

The only requirements for a computer to join a peer-to-peer network are an Internet connection and a peer to peer software.

4 0
3 years ago
Write an HLA Assembly language program that prompts for a specific int8 value named n and then displays a repeated digit pattern
yan [13]

Answer:

Output:

123456

123456

123456

123456

123456

123456

Explanation:

C Code:

#include <stdio.h>

int main() {

int n,i,j;

printf("Gimme a decimal value to use as n:");

scanf("%d",&n);

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

for(j=1;j<=n;j++){

printf("%d",j);

}

printf("\n");

}

return 0;

}

Equivalent assembly program:

.LC0:

.string "Gimme a decimal value to use as n:"

.LC1:

.string "%d"

main:

push rbp

mov rbp, rsp

sub rsp, 16

mov edi, OFFSET FLAT:.LC0

mov eax, 0

call printf

lea rax, [rbp-12]

mov rsi, rax

mov edi, OFFSET FLAT:.LC1

mov eax, 0

call scanf

mov DWORD PTR [rbp-4], 0

.L5:

mov eax, DWORD PTR [rbp-12]

cmp DWORD PTR [rbp-4], eax

jge .L2

mov DWORD PTR [rbp-8], 1

.L4:

mov eax, DWORD PTR [rbp-12]

cmp DWORD PTR [rbp-8], eax

jg .L3

mov eax, DWORD PTR [rbp-8]

mov esi, eax

mov edi, OFFSET FLAT:.LC1

mov eax, 0

call printf

add DWORD PTR [rbp-8], 1

jmp .L4

.L3:

mov edi, 10

call putchar

add DWORD PTR [rbp-4], 1

jmp .L5

.L2:

mov eax, 0

leave

ret

Input:

6

The program was first written with a c code, anf and subsequently translated to an assembly language.

3 0
3 years ago
Suppose you are an ad-serving company and you maintain a log of cookie data for ads you serve to the Web pages for a particular
Firlakuza [10]

Answer:

A

Explanation:

thethe more you have attached the more people are going to know your product so that it's going to be a long process which people can introduce to their friends

3 0
3 years ago
Other questions:
  • What are career resources?
    7·2 answers
  • The device used to attach a microphone to a lectern is called a ____.
    10·1 answer
  • The ____ contains all data definitions for a database, including table structures, security information, relationships between t
    11·1 answer
  • What kind of sampling does a quasi experiment use?
    11·1 answer
  • What does the following code segment do?
    13·1 answer
  • Consider the following first line from a Java method definition.
    13·1 answer
  • Me Completan Pliiiis
    11·1 answer
  • Print ___________ command is used for adding numbers.​
    14·1 answer
  • Why does virtual reality rely on slightly different views for each eye?
    6·1 answer
  • Once you select a theme, you__________ change the theme’s individual elements independently of each other.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!