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
Kaylis [27]
4 years ago
6

We have the following class:

Computers and Technology
1 answer:
maxonik [38]4 years ago
3 0

Answer:

The correct answer is d) Banana co;

Explanation:

In Java everything is an object, for example when we declare a variable x of type int we usually do in this way, determine the class we are going to instance and then the name of our object:

  • int <em>x</em>;

On the example  above we instantiate an object of int named x.

For this exercise we have to instantiate an object of type Banana that is going to be named co.

  • Banana <em>co</em>;
You might be interested in
write a program that reads a string from the user containing a date in the form mm/dd/yyyy. it should print the date in the form
julia-pushkina [17]

Using the knowledge in computational language in python it is possible to write a code that reads a string from the user containing a date in the form mm/dd/yyyy.

<h3>Writting the code:</h3>

<em>months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']</em>

<em>date = input('Enter a date using the mm/dd/yyyy format ')</em>

<em>m, d, y = date.split('/')</em>

<em>m = int(m) - 1</em>

<em>name_of_month = months_info[m]</em>

<em>print('{} {}, {}'.format(name_of_month, d, y))</em>

See more about python at brainly.com/question/13437928

#SPJ1

3 0
2 years ago
Whats the next lyric,i baked you a pie,pie,pie
eduard
“oh boy what flavor”
4 0
3 years ago
Read 2 more answers
1. Which utility would you use to return the common name of the computer you are at?
melamori03 [73]

The utility you would use to return the common name of the computer you are at is Ping.exe. This is the one of the utility which are in first command line utilities. It's easy, first you need to open cmd.exe then you should enter ping-your ip adress, this reveals the TCP/ICP name of the computer you are at.

5 0
4 years ago
Which two actions allow the System Administrator to limit Chatter access during roll-out to a subset of Salesforce users?
Wewaii [24]

Answer:

a. Edit a Profile to "Enable Chatter" for the subset of users.

b. Create a Permission Set with the "Enable Chatter" permission for the subset of users

Explanation:

There are two ways to limit Chatter access during roll-out to a subset of Sales force users

  • through user profiles
  • through permission sets

"Enable Chatter" permission is added to the user profiles and permission sets during Chatter profile based roll-out.

a.

  • The system Administrator has to log in as Sales force administrator to perform this action.
  • Then select Profiles from Setup.
  • Click on Edit for the custom user profile.
  • Tick the Enable Chatter check box in the Administrative Permissions section.

b.

  • Search through the Permission Sets in Setup.
  • System section appears. Select System Permissions in that section.
  • Click on the Edit button .
  • Tick the Enable Chatter check box.
5 0
4 years ago
Write an application that calculates and displays the weekly salary for an employee. The main() method prompts the user for an h
Serjik [45]

Answer:

// import package

import java.util.*;

// class definition

class Salary

{

   // method to calculate weekly salary

   public static double fun(int p_rate,int r_hour,int o_hour)

   {

       // calculate weekly salary

       double w_salary=(p_rate*r_hour)+(o_hour*p_rate*1.5);

       // return salary

       return w_salary;

   }

   // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // object to read value from user

    Scanner scr=new Scanner(System.in);

   

       System.out.print("enter hourly pay rate: ");

       // read hourly pay rate

       int p_rate=scr.nextInt();

     

       System.out.print("enter regular hours: ");

       //read regular hours

       int r_hour=scr.nextInt();

       

       System.out.print("enter overtime hours : ");

       // read overtime hours

       int o_hour=scr.nextInt();

       // call the method

       System.out.println("weekly salary of an employee :"+fun(p_rate,r_hour,o_hour));

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read hourly pay rate, regular hours and overtime hours from user.Call the method sal() with these parameters.There weekly salary is calculated by multiply regular hours with p_rate and overtime hours with 1.5 time of p_rate.Sum both of them, this will be the weekly salary.return this to main method and print it.

Output:

enter hourly pay rate: 50                                                                                                  

enter regular hours: 35                                                                                                    

enter overtime hours : 15                                                                                                  

weekly salary of an employee :2875.0

5 0
4 years ago
Other questions:
  • PYTHON CODE ONLY:
    7·1 answer
  • Which statement about information published on the internet is true?
    9·2 answers
  • What is the purpose of the overload keyword in the ip nat inside source list 1 pool nat_pool overload command?
    8·1 answer
  • Three of the following values could be stored as strings. When would you NOT use a
    12·1 answer
  • Most editing commands in Word, such as cut, copy, and paste, can be found on which tab?
    9·2 answers
  • Write code that uses the input string stream inss to read input data from string userinput, and updates variables usermonth, use
    10·2 answers
  • Write a loop to print 10 to 90 inclusive (this means it should include both the
    10·1 answer
  • Mikhail is working in an IDE and needs to test a program one step at a time to find and fix errors. What tool should he use?
    7·1 answer
  • Rosa has received reports by several users that one of the Linux servers is no longer accessible. She is able to remote into the
    10·1 answer
  • Write a program that computes how much each person in a group needs to pay (after tax and tip) when splitting the bill equally.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!