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
nignag [31]
3 years ago
15

URGENT!

Computers and Technology
1 answer:
lutik1710 [3]3 years ago
6 0

<u>Explanation:</u>

Hey there! you need not to panic about it ,your program didn't have Driver program i.e main program! the correct & working code is given below:

// C++ program to count  even digits  in a given number .

#include <iostream>  

using namespace std;  

// Function to count digits

int countEven(int n)  

{  

int even_count = 0;    

while (n > 0)  

{  

 int rem = n % 10;  

 if (rem % 2 == 0)  

  even_count++;  

 n = n / 10;  

}  

cout << "Even count : "

 << even_count;  

if (even_count % 2 == 0 )  

 return 1;  

else

 return 0;  

}  

// Driver Code  

int main()  

{  

int n;  

std::cin >>n;

int t = countEven(n);  

return 0;  

}  

You might be interested in
Benching system are prohibited in
enyata [817]
Providence yep ur welcome
3 0
3 years ago
Which statement about analog and digital images is true?.
emmainna [20.7K]

The statement which is true about analog and digital images is: Option B; Sampling an analog image more frequently produces a digital image with a better representation.

<h3>Analog and Digital Images</h3>

An analog image is defined as a type of image with a matrix of pixels that is stored in binary form whereby the tone is depicted by continuous variations such as Photograph, Television images, X-ray images, artistic paintings e.t.c

Now, a digital image converts an analogue image to a digital image or converts a digital image to an analog image. This means that digital images are more powerful and provide a better representation than analog images.

Looking at the options the inky correct one is option B.

The statements are missing and they are;

A) With advances in technology, digital images look exactly like the analog images they represent.

B) Sampling an analog image more frequently produces a digital image with a better representation.

C) Analog images come from data that is measured at regular intervals.

D) Digital images come from data that is measures continuously

Read more about analog and digital images at; brainly.com/question/17239524

3 0
3 years ago
Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy’s name,
insens350 [35]

Answer:

Check Explanation.

Explanation:

A programming language is used by engineers, technologists, scientists or someone that learnt about programming languages and they use these programming languages to give instructions to a system. There are many types for instance, c++, python, Java and many more.

So, the solution to the question above is given below;

#define the lists

boyNames=[]

girlNames=[]

#open the text file BoyNames.txt

with open('BoyNames.txt','r') as rd_b_fl:

boyNames=rd_b_fl.readlines()

boyNames=[name.strip().lower() for name in boyNames]

#open the text file GirlNames.txt

with open('GirlNames.txt','r') as rd_b_fl:

girlNames=rd_b_fl.readlines()

girlNames=[name.strip().lower() for name in girlNames]

#print the message to prompt for name

print('Enter a name to see if it is a popular girls or boys name.')

while True:

#prompt and read the name

name=input('\nEnter a name to check, or \"stop\" to stop: ').lower()

# if the input is stop, then exit from the program

if name=='stop':

break

# If the girl name exits in the file,then return 1

g_count=girlNames.count(name)

# if return value greater than 0, then print message

if g_count>0:

print(name.title()+" is a popular girls name and is ranked "

+str(girlNames.index(name)+1))

# if return value greater than 0, then print message

#"Not popular name"

else:

print(name.title()+" is not a popular girls name")

## If the boy name exits in the file,then return 1

b_count=boyNames.count(name)

if b_count>0:

print(name.title()+" is a popular boys name and is ranked "

+str(boyNames.index(name)+1))

# if return value greater than 0, then print message

#"Not popular name"

else:

print(name.title()+" is not a popular boys name")

3 0
3 years ago
Fordham3 Hardware is known for its consensus buying center culture. Recognizing this corporate culture, someone attempting to se
balandron [24]

Answer: (c) focus exclusively on the head of the buying center.

Explanation:

As Fordham3 Hardware is known for its consensus buying center culture, so someone attempting to sell to Fordham3 should focus exclusively on the head of the buying center.

8 0
3 years ago
The “logical link control” and “media access control” are sublayers of which layer?
yKpoI14uk [10]
I believe it’s C.) data link layer
8 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following is an appropriale way to declinc an offer in a<br>professional environment?​
    13·2 answers
  • You are going to buy a computer but first you want to do some research to help you select the best model everfi answer
    11·1 answer
  • When considering the best technology for its particular use what should a business consider
    8·2 answers
  • What is the purpose of a Program Epic?
    7·2 answers
  • The current standard for RFID is based off of Group of answer choices MIT standards IEEE standards ISO standards there is no agr
    12·1 answer
  • In which area is composing for games similar to composing for
    14·1 answer
  • Most sources consider the ARPA-NET project the birth of computer blank<br> .
    11·2 answers
  • RIGHT ANSWER GETS BRAINLEST
    5·1 answer
  • Which is the following should be selected in the paragraph dialogue box to prevent page break from occurring within a paragraph
    12·1 answer
  • Help I will mark brain list I promise!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!