Question: Java please do it as soon as possible, by fallowing the instruction. Thank you. - Watch the video on the metric conversion page before doing

Java please do it as soon as possible, by fallowing the instruction. Thank you.

Java please do it as soon as possible, by fallowing the instruction.Thank you. - Watch the video on the metric conversion page beforedoing the assignment. - This assignment covers what we have learned sofar with the concentration on this week's module. - Please make sureto go through the module for this week before doing the assignment.- the assignment is due on Monday, the assignment will be open

- Watch the video on the metric conversion page before doing the assignment. - This assignment covers what we have learned so far with the concentration on this week's module. - Please make sure to go through the module for this week before doing the assignment. - the assignment is due on Monday, the assignment will be open until Wednesday with a penalty of 15 percent - provide a self grade as a comment at the top of your program. Your self grade must be based on the provided rubric. Must explain the reason for your grade - Feel free to be creative. Write a program to convert the given millimeter to its equivalent of meter, centimeter and millimeter. In order to do the conversion we need to kno following 1 meter =1000 millimeter 1 centimeter =10 millimeter To convert 6567 millimeter to meter, centimeter and millimeter we need to do the following: meter =6567/1000=6 millimeter left =6567%1000=567 centimeter =567/10=56 millimeter left =567%10=7 therefore 6567 millimeter is equal to 6 meter, 567 centimeter and 7 millimeter public class CoinconverterLastname public static void main(String[] args) {publicstaticvoiddescription(){ //your code public static void convert () {{intyuan=1234;intpennies=(int)(yuan.14)100; //your code \} Objective In this assignment you will be practicing variable declaration, assignment statement, expression, string concatenation and java mathematical operations. problem You are writing an app to convert the certain number of Yuan (China's money currency) to dollar amount. Then your program needs to covert the dollar amount to quarters, dimes, nickels and pennies . 1 Yuan is equivalent to 14 dollar amount. Sample Calculation Int yuan =1234 int pennies =( int )(yuan.14)100;// converting dollar to pennies int dollar = pennies /100;// finding the number of dollars pennies= pennies \% 100; // leftover pennies int quarters = pennies /25;// finding the number of the quarters pennies = pennies %25;// finding the left over pennies int dime = pennies /10;// finding the number of the dimes pennies = pennies %10; // leftover pennies int nickel = pennies /5;// finding the number of the nickels pennies = pennies %5;// leftover pennies display the variables dollars, quarters, dimes, nickel and pennies preparation Watch the vide on converting millimeter to meter, centimeter , and millimeter Requirements - your code should satisfy all the rubric criteria - you must have minimum two methods: main and another method to do the calculations - must use variables to store numbers - must include block comments for each method - your output must be correct and match the provide output - you need to run your program two different times with different values to make sure the output is correct. There is no need to write multiple methods for conversion. Refer to the sample output. You only need to turn in one java file - you need to use the operations / and \% repeatedly to find out the number of the dollars, quarters, dimes, nickels and pennies. Refer to the video posted on converting centimeter to meter, centimeter and milli meter - 1 dollar is 100 pennies, a quarter is 25 pennies, a dime is 10 pennies, a nickel is 5 pennies. Required methods * public static void description (): This method describes what the program does. In this method include some print/println statements to describe the application. This method should display "Welcome to the coin Converter Tell many the number of the pennies you have, I will tell you the number of dollar bill, quarters, dimes, nickels and pennies" when it is called in the main method. * public static void convert(): This method does all the calculations and uses print/println to display the result on the screen. Refer to the provided sample calculation and follow it to write your code. Make sure to declare a variable to hold the number of Yuan: int yuan =1234; then convert the Yuan to pennies: int pennies =( int )(yuan.14100), type casting the result of the expression to an integer. The rest would be finding the number of the dollars, quarters, dime, nickels and pennies. * public static void main (String[] args): This method calls the methods description and the method convert. Sample output \#1 set the number of the Yuan to 1234, compile your code and run it. you should get the following output MM Welcome to the Coin Converter MMz I can convert the number of the pennies you have, MM\% to the number of dollar bill, quarters, dimes, nickels and pennies % MMM MMM MM MMHere is the result: MM1234 Yuan is equivalent to 17276 U.S pennies MM17276 pennies is equal to : MM172 dollars MM3 quarters MM0 dimes MMo nickels MM1 pennies Sample output \#2 Set the number of the Yuan to 34567, compile your code, run your code. You should get the following output M Welcome to the Coin Converter M % I can convert the number of the pennies you have, M : to the number of dollar bill, quarters, dimes, nickels and pennies M M M MMH*re is the result: MM34567 Yuan is equivalent to 483938 U.S pennies MM483938 pennies is equal to: MM4839 dollars MM1 quarters MM1 dimes MM0 nickels MM3 pennies

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!