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
yulyashka [42]
3 years ago
7

Assume you have class AutoFactory with two static methods called shutdown and reset. Neither method has any parameters. The shut

down; method may throw a ProductionInProgressException. Write some code that invokes the shutdown method. If a ProductionInProgressException is thrown, your code should then invoke the reset method.
Computers and Technology
1 answer:
dedylja [7]3 years ago
3 0

// Writing C++ code

static shutdown(){

try{

// Code that we need to check if it throws exception, which is not discussed //in question

}catch(e){

// e will have a value if the exception is thrown

if(e == ProductionInProgressException)

this.reset();

}

You might be interested in
Martha is developing a software program in C++ and has a question about how to implement a particular feature. She performs an o
VLD [36.1K]

Answer:

A blog

Explanation:

A blog is a regularly updated website or web page, typically one run by an individual or small group, that is organised by posts.

7 0
3 years ago
What is the quick key to highlighting a column?
BaLLatris [955]

Answer:

B is the answer.. pls mark me as brainliest

ctrl+shift+down arrow

Explanation:

7 0
4 years ago
What needs to be done to a brand new hard dive
Katena32 [7]
The first thing you will have to do is install it and then install windows through the bios

6 0
3 years ago
Write a function negateOdds that takes a list of integers and returns a list of integers with all of the odd integers negated. n
aleksley [76]

Is this computer science?

If so, then the function you would need for your code is this...

_____

if (someValue%2 != 0) {

 value *= -1;

        }

_____

//basically <u>number%2 == 0</u> means even so "!" means false so "not even" meaning "odd."

Assuming you are doing an array list (given a set value) or a for-loop with an

int someValue = Integer.parseInt(args[i]); inside (not given a set value and not restricted)

Otherwise ignore me....lol

5 0
4 years ago
ICT4AD was meant to modernize the civil service through E-governance implementation.
astra-53 [7]

ICT4AD work through E-governance implementation fail as a result of:

  • Lack of Infrastructure.
  • High cost of running its affairs as it needs  huge public expenditure.
  • Issues with Privacy and Security and others.

<h3>What is the aim of e-governance?</h3>

The objectives of e-Governance is created so as to lower the level of corruption in the government and to make sure of  fast administration of services and information.

Conclusively, It is known to fail due to the reasons given above and if they are worked on, the service would have prospered.

Learn more about civil service from

brainly.com/question/605499

7 0
2 years ago
Other questions:
  • In an oligopolistic market, consumer choice is?
    12·2 answers
  • Today when Dylan turned on his computer, he noticed that the monitor was very dim. He could still see the desktop icon and text.
    15·1 answer
  • Mike recently started using Google Display Ads to create a more automated approach to managing his campaigns. What's one automat
    10·1 answer
  • What allows users to connect via the Internet to its private network?
    11·2 answers
  • When using color in a computer - generated presentation aids you should use?
    7·1 answer
  • Why is weather forecast so important for hang gliders?
    12·1 answer
  • Name two materials that we can burn in order to get energy from biomass
    9·1 answer
  • Which of the following aspects of a computer is responsible for making sense of input? processing output memory storage
    14·2 answers
  • Which feature allows you to copy attributes of
    11·1 answer
  • Pleassseeeee helppp!!!!
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!