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
svet-max [94.6K]
3 years ago
11

Write a function numberofpennies() that returns the total number of pennies given a number of dollars and (optionally) a number

of pennies. ex: 5 dollars and 6 pennies returns 506.
Mathematics
1 answer:
ElenaW [278]3 years ago
5 0
What language are you writing this in? C? Javascript? Java? Are you allow to have parameters? 
The general idea should be the same. Since 1 dollar  = 100 pennies, we should write something like...

Java:
public static double numberofpennies(double dollars, double penny) {         
           double sum = 0;                  

           // The amount of pennies that dollar represents       
           double converted = dollars * 100.0;                  

           sum = converted + penny;
         
           return sum;   
}
Note: You should probably place this question under the category computer and technology instead of math. Also, this is just an example of what you could possibly write. What parameters you are allowed to use, what type (double? int? etc?) of pennies are you allowed to return, etc. depends on how you write it. 



You might be interested in
What is 7x + 6x = ?<br>​
viva [34]

Answer:

  • 13x

Step-by-step explanation:

<u>Two ways to solve</u>

1.) Expand each term in the equation

  • 7x = x · x · x · x · x · x · x
  • 6x = x · x · x · x · x · x
  • Count all the x’s ⇒ There are 13 x’s ⇒ 13x

2.) Add the coefficients

  • 7 + 6 = 13
  • 7x + 6x = 13x

Hence,

Answer = 13x

8 0
3 years ago
Find the missing part.
sveta [45]

Answer:

The answer is a = \frac{15}{4}

Step-by-step explanation:

We have to:

cos(\theta) = \frac{adjacent\ side}{hypotenuse}

So, if we take the 60 degree angle of the smallest triangle, we have to:

cos(60) = \frac{a}{x}

We do not know x. But if we take the sine of the angle of 30 degrees and the main triangle we have:

sin(30) = \frac{x}{15}\\\\x =\frac{15}{2}

Then:

cos(60) = \frac{a}{\frac{15}{2}}

a = cos(60)\frac{15}{2}

a = \frac{15}{4}

7 0
3 years ago
Please help find the inequalities
saul85 [17]

Answer:

I and III

Step-by-step explanation:

5x - 10 \leq - 5 <=>

5x \leq 5 <=>

x \leq 1

For I:   -1 \leq 1   Correct

For II:   9 \leq 1   False

For III:   1 \leq 1   Correct

Hence, I and III is the final answer.

7 0
3 years ago
Read 2 more answers
TRUE or FALSE: Billy is paid $32 for 8 hours of work. He gets peid $4 per hour
Pavlova-9 [17]

Answer:

True

Step-by-step explanation:

We know Billy is paid $32 for 8 hours of work.

All we have to do is divide 32 by 8 to see if whether he gets paid 4 dollars an hour,

32/8

==> 4

This is true

5 0
3 years ago
Please help i need answer for test
Korvikt [17]

Answer:

He did the complete opposite of what he needed to do

Step-by-step explanation:

The error is that when you need to find x - intercept, you need to replace the value of y with zero, not the y value.

Cause otherwise, what he did here is to find the y - intercept

If you have any questions about the way I solved it, don't hesitate to ask me in the comments below :)

6 0
3 years ago
Other questions:
  • How do i rearrange the equation Eg=mgh to obtain an for a) m, b) g, c) h?
    5·1 answer
  • I need help please?!
    6·2 answers
  • Find the missing value. If not whole number, leave in simplest radical form. PLEASE HELP!!
    9·1 answer
  • Juan ordered 20 pizzas for a party. 45% of the pizzas has 8 slices each. The remaining 55% of the pizzas have 12 slices each. Co
    9·1 answer
  • Solve the proportional equation below: b/8 = b-8/10
    6·1 answer
  • When combining like terms what is 4 + 9v + 1?
    7·2 answers
  • Please help asap will give you brainliest
    5·1 answer
  • What is StartFraction 11 Over 12 EndFraction divided by one-third? A fraction bar labeled 1. Under the 1 are 3 boxes labeled one
    7·2 answers
  • Find x and y if: (2×8)2×(4×64)4×85=2x×8y
    13·1 answer
  • A student walks in displacement of 34 m in a time of 7s. What is the students velocity?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!