A jar of peanut butter costs $3.75 each and a jar of jelly are $2.54 each. Write the part of a Java program (comments are not necessary) that prompts for the number of jars of peanut butter and the number of jars of jelly and displays the total cost of the combined jars of peanut butter and jelly with two digits after the decimal point.An example run might look like this:Enter the jars of peanut butter: 3Enter the jars of jelly: 4The total cost is $21.41 You are not required to use comments or named constants. No loop is necessary. (12 pts)
Blog
The Morrill Land-Grant College Act (1862)
The Morrill Land-Grant College Act (1862)
Where did Robert E. Lee finally surrender to Ulysses S. Gran…
Where did Robert E. Lee finally surrender to Ulysses S. Grant effectively ending the Civil War?
Stephen F. Austin was
Stephen F. Austin was
How many states ultimately seceded from the Union forming th…
How many states ultimately seceded from the Union forming the Confederate States of America?
Most of the pioneers who migrated westward on Overland Trail…
Most of the pioneers who migrated westward on Overland Trails traveled
One of the benefits of job specialization is that it _____.
One of the benefits of job specialization is that it _____.
Which of the following was an issue that hindered the annexa…
Which of the following was an issue that hindered the annexation of Texas to the United States for several years?
Who was the commander-in-chief of the Texian army that won T…
Who was the commander-in-chief of the Texian army that won Texas’ independence at the Battle of San Jacinto in April 1836?
What was the concept of “manifest destiny” in 19th-century A…
What was the concept of “manifest destiny” in 19th-century America?