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
lys-0071 [83]
3 years ago
8

How many constructors are there in the following class declaration?class CashRegister { public: CashRegister(); CashRegister(int

count); void set_item_count(int count); void view() const; private: int item_count; }; CashRegister::CashRegister() { set_item_count(0); } CashRegister::CashRegister(int count) { set_item_count(count); }a. 0b. 1c. 2d. 3
Computers and Technology
1 answer:
Mariana [72]3 years ago
7 0

Answer:

a. 0

Explanation:

There are zero constructors in the given class declaration. There is a cash register which is in count for public. There is a private cash register which shows the item count as zero.

You might be interested in
During critical thinking, the evaluation of information should use
nexus9112 [7]
False any critical thinking shouldn’t involve emotions
6 0
3 years ago
Read 2 more answers
Who is the intended audience of a pseudocode document?
cluponka [151]

Answer and Example:

Pseudocode is an artificial and informal language that helps programmers develop algorithms.

Pseudocode is a "text-based" detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented.

Pseudocode is understood by the programmers of all types. it enables the programmer to concentrate only on the algorithm part of the code development.

Java would use this.

3 0
3 years ago
Write a JAVA program to generate the list of prime numbers between 100 and 1000 ?
Svetllana [295]

First of all, we will need a function that checks if a number is prime or not:

boolean isPrime(int n){

 for(int i=2; i<=math.sqrt(n); i++){

   if(n % i == 0) return false;

 }

 return true;

}

Then, in the main program, we will call this function with all the desired inputs, and we will print the prime numbers:

for(int n=100; n<= 1000; n++){

 if(isPrime(n)) print(n);

}

6 0
3 years ago
_____ is a web application server that provides the ability to connect web servers to multiple data sources.
o-na [289]
ColdFusion/JRun is a web application server that provides the ability to connect web servers to multiple data sources.ColdFusion/JRun  is an application server developed by Adobe, that is based on Sun Microsystems' Java 2 Platform, Enterprise Edition (J2EE). The other options are eliminated because: Ms Access is <span>Database Management System , FoxPro is database development system and dBase is also data management system.</span>
7 0
4 years ago
What is the similarities between traditional and modernized presentation​
Ivenika [448]

Answer:

“Traditional” refers to those societies or elements of societies that are small-scale, are derived from indigenous and often ancient cultural practices. “Modern” refers to those practices that relate to the industrial mode of production or the development of large-scale often colonial societies.

6 0
2 years ago
Other questions:
  • Microsoft windows server and linux are examples? of:
    12·1 answer
  • Which of the following correctly describes the reason for quality customer service?
    15·2 answers
  • Consider a class called Rocket that has a private instance variable called Engine. You are writing a "getter" for the Engine. Us
    7·1 answer
  • Measurement consists of:__________
    5·1 answer
  • Exactly how thin is the air in outer space?
    10·1 answer
  • Which of the following is the best example of an installation issue
    11·2 answers
  • 1.The ___________ method adds a new element onto the end of the array.
    5·1 answer
  • What is number system?<br>​
    11·1 answer
  • How to tell if your cell phone is being tracked tapped or monitored by spy software?
    12·1 answer
  • HELP ASAP WILL GIVE BRAINLY Question 19 Multiple Choice Worth 5 points) (05 03 MC) Network technologies specialist Hannah has be
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!