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
WITCHER [35]
3 years ago
9

Pradeep and his cousin went to the corner store to buy candy. His cousin paid and told Pradeep he could pay him back. "You owe m

e 4⁄5 of a dollar," laughed his cousin. "How much is that?" Pradeep asked. "You tell me!" his cousin replied. How much does Pradeep owe his cousin?
Computers and Technology
1 answer:
NeTakaya3 years ago
8 0

Answer:

"It is 80 cents"

Explanation:

In order to calculate how much this actually is, we would need to multiply this fraction by the value of a whole dollar which is 1. We can divide the fraction 4/5 and turn it into the decimal 0.80 which would make this much easier. Now we simply multiply...

0.80 * 1 = $0.80

Finally, we can see that 4/5 of a dollar would be 0.80 or 80 cents. Therefore Pradeep would answer "It is 80 cents"

You might be interested in
Write a client program ClientSorting2 and in the main() method: 1. Write a modified version of the selection sort algorithm (Sel
TEA [102]

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

 public static void SelectionSorter(String[] my_array){

     System.out.print("\nAfter sort: ");

     for (int ind=0; ind < 22; ind++ ){

         int min = ind;

         for (int k=ind+1; k < 23; k++ )

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

         String temp = my_array[ind];

         my_array[ind] = my_array[min];

         my_array[min] = temp;    }

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String [] myarray = new String [23];

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

 System.out.print("Before sort: ");

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

 SelectionSorter(myarray);

}

}

Explanation:

This defines the function

 public static void SelectionSorter(String[] my_array){

This prints the header for After sort

     System.out.print("\nAfter sort: ");

This iterates through the array

     for (int ind=0; ind < 22; ind++ ){

This initializes the minimum index to the current index

         int min = ind;

This iterates from current index to the last index of the array

         for (int k=ind+1; k < 23; k++ )

This compares the current array element with another

         if (my_array[k].compareTo(my_array[min] ) < 0 ){ min = k;  }

If the next array element is smaller than the current, the elements are swapped

<em>          String temp = my_array[ind];</em>

<em>          my_array[ind] = my_array[min];</em>

<em>          my_array[min] = temp;    }</em>

This iterates through the sorted array and print each array element

   for (int j=0; j < 23; j++){   System.out.print(my_array[j]+" ");}

    }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This declares the array

 String [] myarray = new String [23];

This gets input for the array elements

 for(int i= 0;i<23;i++){ myarray[i] = input.nextLine();  }

This prints the header Before sort

 System.out.print("Before sort: ");

This iterates through the array elements and print them unsorted

 for ( int j=0; j < 23; j++ ){        System.out.print(myarray[j]+" ");    }

This calls the function to sort the array

 SelectionSorter(myarray);

}

}

3 0
3 years ago
Write a class named Movie that has fields to hold the following data: Title Studio Name Year produced Rating In the Movie class,
rewona [7]

Answer:

Explanation:

don't know

3 0
2 years ago
Please help me to do this task
natima [27]

INPUT Num

While Counter > 12

       Num Num * Counter

       A[Counter] Num

End While

5 0
4 years ago
Write a method takeAwalk which will take an argument saying how many spare minutes you have for your walk (a whole number), and
lianna [129]

Answer:

public class walk {

       //create the function

public static void takeAwalk(int spare_Minute) {

 //check the condition and print if match

 if(spare_Minute>=60) {

  System.out.println("Store");

 }else if(spare_Minute>=10) {

  System.out.println("Block");

 }else {

  System.out.println("Nowhere");

 }

public static void main(String[] args) {  

 //call the function

 takeAwalk(60);

}

}

Explanation:

Create the class and define the function takeAwalk which takes one parameter of integer type and the function return type is void. It means the function does not return any value.

In the function, take the continuous if-else statement.

syntax:

if(condition){

  statement;

}else if(condition){

   statement;

}else{

  statement;

}

it takes the condition, if the condition is true then execute the statement otherwise program move to the else if() part. if this is also false then the program moves to the else part.

create the main function for testing the program and call the function.

suppose the value pass is 60.

then, program control moves to the function definition and start executing.

if-else statement checks the condition, 60 >= 60 condition match and the program print the message "Store".

8 0
3 years ago
Demonstrate how to write each condition as an if-else in Java. If yes, then the computer should print “The answer is A,” “The an
Anna71 [15]

Answer:

b

Explanation:

3 0
3 years ago
Other questions:
  • Write a copy assignment operator for CarCounter that assigns objToCopy.carCount to the new objects's carCount, then returns *thi
    15·1 answer
  • Someone who participates online for social reasons usually has a:
    9·1 answer
  • What variation of a dictionary attack involves a dictionary attack combined with a brute force attack, and will slightly alter d
    5·1 answer
  • Professionalism is defined as what?<br> ASAP PLEASE!
    11·1 answer
  • Which statement BEST describes the benefits of muscular fitness training? A. High levels of muscular fitness can improve your se
    6·1 answer
  • Problem 3. Consider the following recurrence, defined for n a power of 4 (for the time of some algorithm): T(n) = 3 if n = 1 2T(
    5·1 answer
  • Three classifications of operating system​
    8·1 answer
  • What steps can you take to secure your private information?.
    8·1 answer
  • What are some good apps to download to screenshot your screen?
    7·1 answer
  • Imagine an everyday scenario in which you are using the internet: downloading a file, uploading a photo, checking your email, et
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!