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
Flura [38]
3 years ago
5

Rebecca is creating a method for her class, but wants to make sure that a variable in the method satisfies a conditional phrase.

If it doesn’t, she wants the method to return an error and stop the program. She also wants to be able to turn this function on and off. What should she use?
A. this()
B. a void method
C. an exception
D. an assertion
Computers and Technology
1 answer:
astraxan [27]3 years ago
6 0

Answer:

D. an assertion

From PLATO

You might be interested in
Will Mark Brainliest
natta225 [31]

Answer:

Byzantium was located on trade routes and could be better protected.

Explanation:

Byzantium became the capital of the Roman Empire in 330, with the established objective of fulfilling a fundamental role in the control of the commercial routes used by Rome to the East: this city was located in the passage of these commercial routes, thus which was fundamental its protection in order to control trade in the area. In this way, it was agreed to name this city as the capital, which gave importance to the eastern region within the Empire, and allowed these trade routes to be better managed and protected by the Roman government.

7 0
3 years ago
A network ____ usually contains a computer, networked peripheral, or network device.
Archy [21]
Card
......... ......... ........
8 0
4 years ago
Ethical decisions often need to be made within gray areas. for example, should an isp comply with a request from a government fo
Vikki [24]
Matches an IP address

While a business may be legally bound by restrictions such as union contracts, customer privacy policy, and employee confidentiality laws, indeed, there are gray areas inside which ethical decisions need to be made. Many businesses have struggled with decisions like the one mentioned above especially in challenging economic times such as these.



7 0
3 years ago
The radix sort
Rashid [163]

Answer:  A) Treats array entries as if they were strings that have same length.

Explanation:

Radix sort are used as sorting algorithm for integers. This algorithm used as general purpose for sorting the integer data. Basically, it is non comparative sorting integer that sort the given data by making the individual group.

It treats input value as strings of the digit, that is why it is defined as string sorting algorithm.

Therefore, Option (A) is correct.

5 0
4 years ago
Create a constructor that requires parameters for the job number and estimated hours only. Also, include a ToString() method tha
Elodia [21]

Answer:

See explaination

Explanation:

Job.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace JobApp

{

public class Job

{

private int jobNumber;

private int estimatedHours;

private double price;

public Job(int jobNum, int estHrs)

{

jobNumber = jobNum;

estimatedHours = estHrs;

CalculatePrice();

}

public int JobNumber { get; set; }

public int EstimatedHours

{

get { return estimatedHours; }

set { estimatedHours = value; CalculatePrice(); }

}

private void CalculatePrice()

{

price = estimatedHours * 45;

}

public virtual double getPrice()

{

return price;

}

public override string ToString()

{

return GetType() + "\n" +

"Job No: " + jobNumber + "\n" +

"Est. Hrs.: " + estimatedHours + "\n" +

"Price: $" + price;

}

}

}

RushJob.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace JobApp

{

public class RushJob : Job

{

private double additionalCharge;

public RushJob(int jobNum, int estHrs, double additionalCharge):base(jobNum, estHrs)

{

this.additionalCharge = additionalCharge;

}

public override double getPrice()

{

return this.additionalCharge + base.getPrice();

}

public override string ToString()

{

return

base.ToString() + "\n" +

"Additional Charge: $" + this.additionalCharge + "\n" +

"Total Price: $" + getPrice();

}

}

}

JobDemo.cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace JobApp

{

class JobDemo

{

static void Main(string[] args)

{

Job job = new Job(101, 10);

Console.WriteLine(job.ToString());

Job rushJob = new RushJob(102, 15, 5);

Console.WriteLine("\n"+rushJob.ToString());

Console.ReadKey();

}

}

}

5 0
3 years ago
Other questions:
  • Typically homes ___________ over time and cars ______________ over time.
    6·2 answers
  • Which of the following is not a thing needed to make a network?
    6·2 answers
  • How does and employer judge a candidate
    8·1 answer
  • Hey so, I was looking online how to reset my laptop and I ended up pressing load setup defaults and now I get an error saying ch
    15·2 answers
  • Where do you get your news? Is it owned by a large conglomerate does it matter to you who own your local news outlets? why or wh
    5·1 answer
  • A newer kind of mobile site can do a lot of what only apps used to do, so the line has blurred between sites and apps. what are
    12·1 answer
  • sometimes people who have been playing gta for a while are annoying, i was playing gta this weekend and was trying to escape, bu
    8·2 answers
  • What data type would best hold the numeric value?
    8·1 answer
  • What term is used to describe state-sponsored attackers that are used for launching computer attacks against their foes
    5·1 answer
  • What does a good résumé help you do?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!