Question: Any one please help me with Authorship comment block for the file Proper indentation Proper spacing Method comment block of the the below project? /*******************************************************************************

Any one please help me with

Authorship comment block for the file

Proper indentation

Proper spacing

Method comment block of the the below project?

/*******************************************************************************

// StringManips.java Author: Any one please help me with Authorship comment block for the file

// Date: 02/07/2021

//

//*******************************************************************************

//

import java.util.*;

public class Main {

//==========================================================================

// main method

//==========================================================================

public static void main(String[] args) {

System.out.println("Enter the amount");

Scanner sc=new Scanner(System.in);

int amt = (int) Math.round(sc.nextDouble() * 100);//this makes 47.63 into 4763

int ten_dollars=amt/1000;//to calculate ten dollar bills

amt=amt%1000;//to get amount after excluding ten dollars bills

int five_dollars=amt/500;//to calculate five dollar bills

amt=amt%500;//to get amount after excluding five and ten dollars bills

int one_dollars=amt/100;//to calculate one dollar bills

amt=amt%100;//to get amount after excluding ten,five,one dollars bills

int quarters=amt/25;//to calculate quarters

amt=amt%25;//to get amount after excluding ten,five,one dollars bills,quarters

int dimes=amt/10;//to calculate dimes

amt=amt%10;//to get amount after excluding ten,five,one dollars bills,quarters,dimes

int nickels=amt/5;//to calculate nickels

amt=amt%10;//to get amount after excluding ten,five,one dollars bills,quarters,dimes,nickels

int pennies=amt/1;//to calculate pennies

System.out.println(ten_dollars+" ten dollar bills");

System.out.println(five_dollars+" five dollar bills");

System.out.println(one_dollars+" one dollar bills");

System.out.println(quarters+" quarters ");

System.out.println(dimes+" dimes");

System.out.println(nickels+" nickels");

System.out.println(pennies+" pennies");

}

}

* Syster.out. Tive dollar bills"); 1 //***************** ********************** // String Hanips.java Author: 090800 // // ***** import java.util. public class Main // nain nethod public static void nain(String[] args) { System.out.println "Enter the amount"); Scanner sc=new Scanner(System.in); int ant Lint) Math.round(sc.nextDouble() > 188);//this nakes 47.63 into 4763 int ten_dollars=amt/1989://ta calculate ten dollar bills ant-ant 1989://to get anount after excluding ten dollars bills int tive_dollars-ant/590;//to calculate five dollar bills antzant 4500;//to get amount after excluding rive and ten dollars bills int ane_dollarsamt/160;//to calculate one dollar bills ant-ant 108;//to get anount after cxcluding ten, five,onc dollars bills int quarters amt/25;//to calculate quarters antant 25://to get arount after excluding ten, ive, one dollars bills,quarters int dine sant/10;//to calculate dines ant-ant10;//to get anount after cxcluding tonefive,onc dollars bills.quarters, dincs int nickels-ant/5;//to calculate nickels antrant 18://to get arount after excluding ten, five, one dollars bills, quarters, dines, nickels int pennies-ant/1;//to calculate pennies five "); Systet.out.printiniane_dollars-" ane dollar bills"); System.out.print iniquarters" quarters "); System.out.print Inidines" dimes"); Syster.out.println nickels+" nickels"); System.out.printlnt penniest" 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!