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
Rainbow [258]
3 years ago
6

"Write one statement that declares an integer variable numHouses initialized to 25."

Computers and Technology
1 answer:
katrin [286]3 years ago
7 0

Answer:

int numHouses = 25;

Explanation:

The answer above is the Java and C++ prgramming languages' method of declaring and assinging a value to a variable.

To declare a variable, the variable type is written first , this could be (int for Integer, char for characters, double for decimal numbers, etc.), then followed by the name the programmer chooses to give to the variable which must not be a keyword or reserved word. The equality opereator performs the assignment operation of  assigning a value to the variable in this case 25.

int numHouses = 25;

int  is the variable type

numHouses  is the variable name

= is the assignment operator

25 is the assigned value

You might be interested in
Match each example to the type of component, either Input, Process, or Output.
statuscvo [17]

Answer:

Find answers below.

Explanation:

1. Input: it takes in data in its raw format or an item that receives data and transfers them to the process.

  • <em>Employees in a management team. </em>
  • <em>Program code for a software application. </em>
  • <em>Flour for making bread.</em>
  • <em>A wrench. </em>

2. Process: it converts the data from an input to a usable format. Also, it conveys the processed data (informations) to the output.

  • <em>Fermentation. </em>
  • <em>Harvesting a crop. </em>
  • <em>Dryer spinning at top speed.</em>

3. Output: it is the result produced by a process i.e the finished product.

  • <em>Newly painted structure. </em>
  • <em>Freshly mowed lawn. </em>
  • <em>Hot muffins. </em>
5 0
3 years ago
Erica is CEO of a company and has recently hired a vice president of marketing. She would like to share this information with al
EleoNora [17]
B: Send an e-mail to all employees
6 0
3 years ago
Read 2 more answers
Many Web browsers allow users to open anonymous windows. During a browsing session in an anonymous window, the browser does not
LiRa [457]

Answer:

Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer

Explanation:

Browsing ananymously implemented as In-private browsing by some web browsers allows you to browse without leaving histories and cookies, however your activities can still be monitored by an admin and you are not protected from malware because of in-private browsing.  Because browsing histories are not saved, any data from a web store such as future purchase intention will also not be saved

7 0
3 years ago
What is the preferred procedure for putting customers on hold​
vesna_86 [32]

Answer/Explanation:

Explain the reason you need to put the caller on hold.

Ask for the person's phone number, in case the conversation is cut off.

Promise to return in a minute—or your best estimate of how long the hold will last. If you think the delay will be longer than a couple of minutes, ask for a number and a time when you can call back.

If, despite your best efforts, the delay is taking longer than anticipated, check in with the caller so that he doesn't feel abandoned. Again, offer to call back, "rather than keep you holding."

When you return to the phone, apologize for the inconvenience and thank the caller for his patience.

Use the caller's name frequently to add a sense of connection.

The first step you can take when putting a caller on hold and making it a satisfying experience is a systematic one. When a caller is on hold, 60 seconds seems like an eternity, so see if you can program the phone system to play music (calming classical or jaunty jazz is best) to break this perception of an interminable wait. Aside from that, however, putting someone on hold in a professional way depends on your behavior. The golden rule to keep in mind is as follows: how would you like to be treated if you were on the other end of the line?

MAKE ME THE BRAINLIEST!!!!!!!!!!!!

8 0
3 years ago
Read 2 more answers
write a c++program that allows the user to enter the last names of fivecandidates in a local election and the number of votes re
madreJ [45]

Answer:

#include<iostream>

#include<stdlib.h>

using namespace std;

int main(){

   //initialization

   string str1[5];

   int arr_Vote[5];

   int Total_Vote=0,max1_Index;

   int max1=INT_MIN;

   //loop for storing input enter by user

   for(int i=0;i<5;i++){

       cout<<"Enter the last name of candidate: "<<endl;

       cin>>str1[i];

       cout<<"Enter the number of vote receive by the candidate: "<<endl;

       cin>>arr_Vote[i];

       //calculate the sum

       Total_Vote = Total_Vote + arr_Vote[i];

       //find the index of maximum vote

       if(arr_Vote[i]>max1){

           max1=arr_Vote[i];

           max1_Index=i;

       }

   }

   //display

   cout<<"\nThe output is......"<<endl;

   //loop for display data of each candidate

   for(int i=0;i<5;i++){

       cout<<str1[i]<<"\t"<<arr_Vote[i]<<"\t"     <<float(arr_Vote[i]*100)/Total_Vote<<"%"<<endl;

   }

   //display winner

   cout<<"The winner candidate is"<<endl;

   cout<<str1[max1_Index]<<"\t"<<arr_Vote[max1_Index]<<"\t"<<float(arr_Vote[max1_Index]*100)/Total_Vote<<" %"<<endl;

}

Explanation:

Create the main function and declare the two arrays and variables.

the first array for storing the names, so it must be a string type. second array stores the votes, so it must be int type.

after that, take a for loop and it runs for 5 times and storing the values entered by the user in the arrays.

we also calculate the sum by adding the array data one by one.

In the same loop, we also find the index of the maximum vote. take an if statement and it checks the element in the array is greater than the max1 variable. Max1 variable contains the very small value INT_MIN.

If condition true, update the max1 value and update the max1_Index value.

The above process continues for each candidate for 5 times.

After that, take a for loop and display the data along with percentage by using the formula:

Vote\,percent=\frac{Vote\,receive*100}{Total\,vote}

the, finally display the winner by using the max1_Index value.  

5 0
3 years ago
Other questions:
  • Assume that
    7·1 answer
  • Microsoft access does not create n:m relationships because microsoft access creates databases based on
    7·1 answer
  • What country threatens Denmark at the beginning of Hamlet as evidenced in Marcellus’s question, "Why this same strict and most o
    13·1 answer
  • Discuss anomaly detection.
    5·1 answer
  • To see all of the records at once, you should use _______ view. 
    12·2 answers
  • What is the problem with the code snippet below? public class Test { public static void main(String[] args) { System.out.println
    6·1 answer
  • To specify your preferred colors, fonts, and effects for a document, which of the following should be done?
    5·2 answers
  • Which feature allows you to copy attributes of
    11·1 answer
  • Rebbeca has finished with the research and outline portion of her slide presentation. Now, the next logical step is to begin wor
    11·1 answer
  • Which type of internet connection allows for high-speed bi-directional data communication over a hybrid fiber-coaxial (HFC) conn
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!