a simple C program to find the logarithm of any number in any base.....​

Answers

Answer 1

Answer:

tera bur mast hai jwjvszvVbzNjz


Related Questions

Given the following code, what logic would you need to include to print all even values stored within the array:

int[] myArray = {1,2,38,4,54,6,7,8,9,10};

for (int i = 0; i < myArray.length; i++) {
//your code goes here
}
NOTE: Your response should be just the missing logic--not the entire problem set.

Answers

The missing logic whigh would allow all the even numbers stored within the array to be printed is if(myArray[i]%2 == 0)

Even numbers are divisible by 2, and hence, will leave no remainder when divided by 2.

Using the modulo operator, each iterated value in the array should be checked if it has a remainder of 0, when divided by 2.

Hence, if the remainder is 0, then the value is even and the value should be printed.

Learn more : https://brainly.com/question/17330574

How do I get fix the code to make it input 3 values and get the correct output
-------------------------------------------------------------
12.20 LAB: Driving costs - functions

Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f}'.format(your_value))

Ex: If the input is:

20.0
3.1599

the output is:

1.58
7.90
63.20

Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles.

Ex: If the function is called with:

50 20.0 3.1599

the function returns:

7.89975

def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon)

Your program should call the function three times to determine the gas cost for 10 miles, 50 miles, and 400 miles.
---------------------------------------------------
I need help for this part
Ex: If the function is called with:

50 20.0 3.1599

how do I get it to input the three to get the output of 7.89975?
-------------------------------------
My code:

# Define your function here.
def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon):
return (driven_miles/miles_per_gallon) * dollars_per_gallon

if __name__ == '__main__':
# Type your code here.

# Miles per gallon from input
miles_per_gallon = float(input())

#Dollars per gallon from input
dollars_per_gallon = float(input())


# Display the results as output

print('{:.2f}'.format(driving_cost(10, miles_per_gallon,dollars_per_gallon)))
print('{:.2f}'.format(driving_cost(50, miles_per_gallon,dollars_per_gallon)))
print('{:.2f}'.format(driving_cost(400, miles_per_gallon,dollars_per_gallon)))

Answers

Answer:Change your logic to:

for (int i = 0; i < 4; i++) {

System.out.println("Please input a number between zero to 3");

// use input and don't advance the scanner every time

int input = sc.nextInt();

if (input == 0) {

System.out.println("You have selected " + right);

}

if (input == 1) {

System.out.println("You have selected " + left);

}

// so on and so forth

}

By using sc.nextInt() four times, you are looking for the next token of the input which isn't there. So fetch the input for each run of the for-loop and it will work as expected.

Explanation:

Your worksheet contains a price in cell A5 and many formulas refer to that price how would you refer to that price in the formula

Answers

Answer:

$A$5

Explanation:

The A$5 would allow the row part of the reference to stay in place but would allow the column to change.

What does '$' mean in Excel formula?

An absolute reference in Excel exists as a cell address with the dollar symbol ($) in the row or column coordinates, like $A$1. The dollar sign specifies the connection to a given cell so that it stays unchanged no matter where the formula moves.

The A$5 would permit the row position of the authority to remain in place but would permit the column to modify. The location of the $ before either the row or column or both exists what specifies what component stands frozen. Therefore, the correct answer is option b) $A$5.

Complete question:

Your worksheet contains a price in cell A5, and many formulas refer to that price. How would you refer to that price in the formulas?

a. A5

b. $A$5

c. $A5

d. A$5

To learn more about Excel formula

https://brainly.com/question/26276255

#SPJ2

Write a program that prompt the user to enter a bank balance. The balance entered by the user is read into a variable named balance. The program then prompts the user to enter the amount to be deposited. The amount entered by the user is read into a variable named deposit. The program that calculates the new balance, which is the present balance plus the deposit. The program then displays the new balance.

Answers

Answer:

ertyuiopoijuhgfdsa hiyoufun tresdfghytrefgytredfg

Explanation:

look for the words

A color image uses 16bits to represent a pixel. What is the maximum number of different colors that can be represented?

Answers

Answer: A color image uses 16 bits to represent a pixel. What is the maximum number of different colors that can be represented? With 16 bits, we can represent up to 2^16 different colors. Assume six devices are arranged in a mesh topology.

Explanation:

The terms 16-bit picture, high color image, and 32K color image are all used to describe images that have 16 bits per pixel.

What is a pixel?

The smallest addressable element in a raster image or the smallest point in an all points addressable display device is known as a pixel (abbreviated as px), pel, or picture element in digital imaging.

The smallest component in most digital display systems that can be changed by software are pixels.

Photos with 16 bits per pixel are referred to as 16-bit pictures, high color images, and 32K color images.

The number of distinct colors that can be represented by 16 bits, where there are 5 bits for each of the red, green, and blue values and the 16th bit can be the alpha bit, is around 32 thousand.

Thus, the maximum number of different colors that can be represented is 32 thousand.

For more details regarding pixel, visit:

https://brainly.com/question/15189307

#SPJ2

Other Questions
Determine the force required to move a block if the coefficient of static friction of one block and the floor is 0.35 and the coefficient of the static friction between 2 boxes is 0.25 Georgette was practicing her saxophone and got so involved improvising on a song that she completely lost track of time. She described it as exciting and awesome and was proud of the creativity in what she played. This is an example of in what country did the industrial revolution begin in the late 1700s me pueden decir que palabras son verbos comprar vaya tomate calmaropa compraventa tomate es Baker leaves his house and drives 10 miles north then 24 miles west to Tellus Science Museum. IfBaker could drive in a straight line from his house to the museum, how many miles would he save?How many miles is the normal route?How many miles is the straight line?How many miles would Baker save? (Hint: subtract the two.) A conversation that focused on the feelings and thoughts of the participants would be most appealing to a ___________________ listener.a.action-orientedb.people orientedc.time-orientedd.content oriented Select the correct text in the passage.Which sentence in the excerpt best supports the theme of harmonious living?A Spark Neglected Burns the Houseby Leo Tolstoy (adapted excerpt)There once lived in a village a peasant named Ivn Stcherbakf. He was comfortably off, In the prime of life, the best worker in the village, andhad three sons all able to work. The eldest was married, the second about to marry, and the third was a big lad who could mind the horses andwas already beginning to plough. Ivan's wife was an able and thrifty woman, and they were fortunate in having a quiet, hard-working daughter-in-law. There was nothing to prevent in and his family from living happily. They had only one Idle mouth to feed; that was Ivn's old father,who suffered from asthma and had been lying Ill for seven years. Man had all he needed three horses and a colt, a cow with a calf, and fifteensheep. The women made all the clothing for the family, besides helping in the fields, and the men tilled the land. They always had grain enoughof their own to last over beyond the next harvest and sold enough oats to pay the taxes and meet their other needs. So Ivn and his childrenmight have lived quite comfortably had it not been for a feud between him and his next-door neighbor, Limping Gabriel, the son of GordyIvanof.As long as old Gordy was alive and Ivan's father was still able to manage the household, the peasants lived as neighbors should. If the womenof either house happened to want a sleve or a tub, or the men required a sack, or if a cart-wheel got broken and could not be mended at once,they used to send to the other house, and helped each other in neighborly fashion. When a calf strayed into the neighbor's thrashing-ground,they would just drive it out, and only say, "Don't let it get in again, our grain is lying there." And such things as locking up the barns andouthouses, hiding things from one another, or backbiting were never thought of in those days.That was in the fathers' time. When the sons came to be at the head of the familles, everything changed. The length of a rectangle is 2 inches more than its width. The area of the rectangle is equal to 12 inches more than three times the perimeter. Find the lengthand width of the rectangle. A rabbit is an herbivore. It would most likely eat _____.a grassb insectsc miced other rabbits Elie in night believes that remembering theHolocaust will help ensure that this typeof atrocity does not occur in the future.Do you think learning about historicalevents can guide people to behavedifferently? Explain. How many solutions can be found for the system of linear equations represented on the graph?A) no solutionB) one solutionC) two solutionsD) infinitely many solutions write the opposite of ..................................The ocean was rough this morning. evaluate 102 what is the answer Write a letter or email to a friend in Spanish describing a recent trip to LatinAmerica (a place of your choosing).8-10 sentencesEach sentence needs a preterite or imperfect verb.What did you do? What did you see? Who did you go with? How did you get there? How did you feel there? What was the weather like? What did you eat?Use preterite and imperfect at least 3 times each respectively. exhibiting a personality that ________ is a common characteristic of all personality disorders. Which of the seven planets is closest to the sun Why do plants need to preform cellular respiration like animals? PLEASE FOR BRAINLIESTDescribe Chapters 9-10 of chains by luare anderson what does n equal in this problem?-2(n+1)=6 U ever get an answer