You are given a class named clock that has one int instance variable called hours. write a constructor with no parameters for the class clock. the constructor should set hours to 12.

Answers

Answer 1
Answer: in java it would be 

public clock()
{
     hours = 12;
}

Related Questions

The term firmware refers to programs embedded into hardware devices. This software only changes when a firmware upgrade is performed.A. TrueB. False
if you were to send a bottle rocket 15 kilometers up into the air which layer of the atmosphere would it be in?
If you need to set up direct deposit, which information from your check would you likely need?
Choose the term that describes each step of the cycle.------- : gets next instruction ---------- : interprets instruction ----------- : carries out instruction ------------ : saves result of instruction
Can some one help sorry I just so confused on this and I keep failing it I just need the help So choose the best answers

When using a public computer or network, you should always _______. A. install a firewall. B. run an anti-virus program beforehand. C. log out of any sites you have logged into. D. run a malware scan after signing off.

Answers

Answer is c log out of any sites you have logged into ..bc it's a public computer

C. log out of any sites you have logged into is the answer

Web r sum s are posted to the Internet in HTML format. Please select the best answer from the choices provideda. True
b. False

Answers

The answer is A. True.

Write a C++ program to count even and odd numbers in array. The array size is 50. The array elements will be entered by the user.

Answers

Answer:

The program in C++ is as follows:

#include <iostream>

using namespace std;

int main(){

   int numbers[50];

   int evekount = 0, odkount = 0;

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

       cin>>numbers[i];

       if(numbers[i]%2==0){            evekount++;        }

       else{            odkount++;        }

   }

   cout<<"Even Count: "<<evekount<<endl;

   cout<<"Odd Count: "<<odkount<<endl;

   return 0;

}

Explanation:

This declares the integer array of number

   int numbers[50];

This initializes the even count and odd count to 0

   int evekount = 0, odkount = 0;

This iterates from 1 to 50

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

This gets input for the array

       cin>>numbers[i];

This checks for even

       if(numbers[i]%2==0){            evekount++;        }

This checks for odd

       else{            odkount++;        }

   }

This prints the even count

   cout<<"Even Count: "<<evekount<<endl;

This prints the odd count

   cout<<"Odd Count: "<<odkount<<endl;

What are tributaries A. Rivers that flow into other streams
B.Streams that flow into oceans
C.Rivers that flow into lakes
D.Ocean currents that flow into other oceans

Answers

Tributaries are rivers that flow into another river or another lake. Tributaries are common in any country. Tributaries are like roots of lakes that flows to somewhere else. It is like a distribution of water that scatters through streams and lands to a larger body of water.

I'm sorry I just took this test and I put  ( Rivers that flow into lakes ) it was wrong.

After a security incident is verified in a SOC, an incident responder reviews the incident but cannot identify the source of the incident and form an effective mitigation procedure. To whom should the incident ticket be escalated?a SME for further investigation
a cyberoperations analyst for help
an alert analyst for further analysis
the SOC manager to ask for other personnel to be assigned

Answers

Answer:

Option A i.e., SME for further investigation.

Explanation:

Following the reports of such a security incident into an SOC, an incident respondent examines the incident but could not determine the cause of that same incident as well as establish an appropriate response protocol. The ticket for an incident must be applied to SME for even more inquiry. So, the following answer is correct.

To what do buses and lines connect in a computer chip?

Answers

Address and data buses, which send addresses and data to memory, and read and write lines, which tell the memory whether it wants to set or get an addressed location, can connect to either ROM or RAM and generally connects to both.

Final answer:

Buses and lines on a computer chip connect to transistors, creating intricate electric circuits. These circuits, made possible by silicon-based integrated circuits, handle the binary code used in modern computing and operate on a nanoscopic scale.

Explanation:

In a computer chip, buses and lines connect to transistors, creating an intricate electric circuit. Transistors, behaving like on-off switches, handle digital signals that represent binary code; a transistor is either on or off. Integrated circuits, made from silicon or other semiconductors, contain vast collections of transistors, allowing for massive and complex data manipulation.

Silicon-based integrated circuits have revolutionized computer technology by integrating transistors and capacitors in a space-efficient manner, enabling the creation of densely packed circuitry required for modern computing devices like computers and cell phones. Such devices contain electric circuits with features as small as a nanometer.

These transistors are interconnected through buses and lines, known as the electrical pathways. These pathways are created using ultraprecise chemical treatments of the silicon or other semiconductors, which provides the precision needed for the minuscule scale of circuitry.

Learn more about Computer Chip here:

brainly.com/question/26164153

#SPJ11