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
erastova [34]
3 years ago
6

Suppose that a class CalendarDate has been defined for storing a calendar date with month, day and year components. (In our sect

ion handout, the class was called Date, but we have renamed it here because Practice-It uses a class named Date for other purposes.) The class includes the following members:

Engineering
1 answer:
laiz [17]3 years ago
7 0

Answer:

note:

find the attachment

You might be interested in
java Write a program that simulates tossing a coin. Prompt the user for how many times to toss the coin. Code a method with no p
max2010maxim [7]

Answer:

The solution code is written in Java.

  1. public class Main {
  2.    public static void main(String[] args) {
  3.        Scanner inNum = new Scanner(System.in);
  4.        System.out.print("Enter number of toss: ");
  5.        int num = inNum.nextInt();
  6.        for(int i=0; i < num; i++){
  7.            System.out.println(toss());
  8.        }
  9.    }
  10.    public static String toss(){
  11.        String option[] = {"heads", "tails"};
  12.        Random rand = new Random();
  13.        return option[rand.nextInt(2)];
  14.    }
  15. }

Explanation:

Firstly, we create a function <em>toss()</em> with no parameter but will return a string (Line 14). Within the function body, create an option array with two elements, "heads" and "tails" (Line 15). Next create a Random object (Line 16) and use <em>nextInt()</em> method to get random value either 0 or 1. Please note we need to pass the value of 2 into <em>nextInx() </em>method to ensure the random value generated is either 0 or 1.  We use this generate random value as an index of <em>option </em>array and return either "heads" or "tails" as output (Line 17).

In the main program, we create Scanner object and use it to prompt user to input an number for how many times to toss the coin (Line 6 - 7). Next, we use the input num to control how many times a for loop should run (Line 9). In each round of the loop, call the function <em>toss() </em>and print the output to terminal (Line 10).  

4 0
3 years ago
Read 2 more answers
A heat engine that receives heat from a furnace at 1200°C and rejects waste heat to a river at 20°C has a thermal efficiency of
viktelen [127]

Answer:

second-law efficiency  = 62.42 %

Explanation:

given data

temperature T1 = 1200°C = 1473 K

temperature T2 = 20°C  =  293 K

thermal efficiency η = 50 percent

solution

as we know that thermal efficiency of reversible heat engine between same  temp reservoir

so here

efficiency ( reversible ) η1 = 1 - \frac{T2}{T1}      ............1

efficiency ( reversible ) η1  = 1 - \frac{293}{1473}  

so efficiency ( reversible ) η1  = 0.801

so here second-law efficiency of this power plant is

second-law efficiency = \frac{thernal\ efficiency}{0.801}

second-law efficiency = \frac{50}{0.801}  

second-law efficiency  = 62.42 %

3 0
3 years ago
An interrupted line of sight means changes in ......and .... are necessary for re-establishing a ......... to the driver’s path
Mrrafil [7]

Answer:

Welcome to Gboard clipboard, any text that you copy will be saved here.

Explanation:

Touch and hold a clip to pin it. Unpinned clips will be deleted after 1 hour.

5 0
2 years ago
A silicon diode has a saturation current of 6 nA at 25 degrees Celcius. What is the saturation current at 100 degrees Celsius?
Illusion [34]

Answer:

0.0659 A

Explanation:

Given that :

I_{0}  =  6nA ( saturation current )

at 25°c = 300 k ( room temperature )

n = 2  for silicon diode

Determine the saturation current at 100 degrees = 373 k

Diode equation at room temperature = I = Io \frac{V}{e^{0.025*n} }

next we have to determine the value of V at 373 k

q / kT = (1.6 * 10^-19) / (1.38 * 10^-23 * 373) = 31.08 V^-1

Given that I is constant

Io = \frac{e^{0.025*2} }{31.08} =  0.0659 A

3 0
3 years ago
Answer my question I will mark brainliest
Iteru [2.4K]

Answer:

150

Explanation:

Mark me Brainliest

6 0
3 years ago
Read 2 more answers
Other questions:
  • Make sure that the switch is on (if the drill is electric), the chuck key is not removed before you plug in the drill or turn it
    11·2 answers
  • Blank Complete the following paragraph pertaining to the popular audio file formats.
    7·2 answers
  • Which technical planning document defines support tasks?
    7·1 answer
  • Technician A says that a lack of lubrication on the back of the disc brake pads can cause brake noise. Technician B says that pa
    8·1 answer
  • 1. Which of these materials is the strongest?
    12·1 answer
  • How do you explain the application of regulations in locations containing baths, showers and electric floor heating, including t
    10·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
  • Computer system analyst advantage​
    5·2 answers
  • Explain how to properly engage the safety latches on the Stan Design Pit Jack.
    10·1 answer
  • A composite plane wall consists of a 5-in.-thick layer of insulation (ks = 0.029 Btu/h*ft*°R) and a 0.75-in.-thick layer of sidi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!