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
Serjik [45]
1 year ago
10

See attached. I have code typed out but still having problems.

Computers and Technology
1 answer:
densk [106]1 year ago
5 0

The constructor that takes four arguments: the title, the artist, and two arguments representing the song length in minutes and seconds is given below:

<h3>The Java Code</h3>

public class Song

{

   // instance variable declaration

  private String songTitle;

  private String songArtist;

  private Duration songLength;

// Constructors

  public Song (String title , String artist , int min , int sec )

  {

       this( title , artist , Duration.ofMinutes( min ).plusSeconds( sec ) ) ;

  }

  public Song (String title , String artist , int totalSeconds )

  {

      this( title , artist , Duration.ofSeconds( totalSeconds ) ) ;

  }

  public Song (String title , String artist , Duration duration )

  {

      this.songTitle = title;

      this.songArtist = artist;

      this.songLength = duration ;

  }

Read more about java programming here:

brainly.com/question/18554491

#SPJ1

You might be interested in
If a football player had to use the restroom during a play what do they do?
Artyom0805 [142]
Usually they wait for halftime
4 0
3 years ago
Topic: Video Games.
Butoxors [25]

Answer:

Fire Emblem

Explanation:

4 0
3 years ago
Peter is software designer working at a big software company. He just found out that he has been shifted to their downtown branc
sweet [91]

The managers at Peter’s company have an Autocratic environment.

<u>Explanation:</u>

The managers who are autocratic in nature make decisions on their own. They will never get insights of their employees and they will not take the inputs of them in taking any decisions. This type of management is suitable in an organisation where there is an urgent need to taking decisions to any matter.

Managers who are autocratic in nature will make decisions without consulting anyone's advice.  This type suits those organisations wherein there are very less number of employees. Here, the manager of Peter did not consulted peter in making decisions related to him, the environment is authoritarian or autocratic.  

7 0
3 years ago
Write a method named addCommas that accepts a string representing a number and returns a new string with a comma at every third
pentagon [3]

Answer:

Locale unaware

'{:,}'.format(value) # For Python ≥2.7

f'{value:,}' # For Python ≥3.6

Locale aware

import locale

locale.setlocale(locale.LC_ALL, '') # Use '' for auto, or force e.g. to 'en_US.UTF-8'

'{:n}'.format(value) # For Python ≥2.7

f'{value:n}' # For Python ≥3.6

6 0
3 years ago
​ In a systems development life cycle (SDLC) model, the purpose of the _____ is to build a logical model of the new system.
faust18 [17]

Answer:

Systems analysis phase.

Explanation:

In a systems development life cycle (SDLC) model, the purpose of the systems analysis phase is to build a logical model of the new system.

In the systems analysis phase, the system developer examines or analyzes the information or data about the requirements of an end-user, which are then implemented to achieve the organizational set goals and objectives.

Hence, systems analysis refers to the process of gathering data or factual informations, understanding processes, problem identification and suggestions of probable solutions for an effective and efficient functioning of the system.

4 0
4 years ago
Other questions:
  • Arpanet was developed by the united states so that there was a communication network that would survive a nuclear war. True or F
    11·1 answer
  • The critical path in a project network is:______ A. The Shortest path through the network. B. Longest path through the network.
    8·1 answer
  • What command can be used to export an nps backup file named npsconfig.xml that can be used to restore nps configuration on anoth
    12·1 answer
  • A program contains the following function definition: def cube(num): return num * num * num Write a statement that passes the va
    13·1 answer
  • What will be the value of “sumtotal” when this code is executed?
    6·1 answer
  • Test if the word mold is stored in the variable word. Computer science.
    9·1 answer
  • Which of the following can you use to judge source legitimacy?
    6·2 answers
  • Who used the ICT in a report to UK government in 1997
    12·1 answer
  • Page 1. I who invented computer?​
    9·1 answer
  • What happens in the development phase of the software development life cycle?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!