For each of the following tasks, provide an appropriate method header. Remember
ID: 3528321 • Letter: F
Question
For each of the following tasks, provide an appropriate method header. Remember - the method header should include an appropriate name for the method, a parameter list, and a return type. DO NOT write code for these methods, just provide method headers Convert an integer grade (0 to 100) to its corresponding letter grade ('A' through 'E') Compute the sales tax on an item, given the cost of the item (in dollars and cents) and the sales tax rate (as a percentage) Given a sentence as a String, print each word in the sentence on a separate line of output Given a String s and a character c, return a new String that is a copy of the String s but with all occurrences of the character c removed from it.Explanation / Answer
a. public char gradeConvert(int grade);
b. public double salesTax(int dollars, int cents, double taxRate);
c. public void printWord(String sentence);
d. public String newString(String s,char c);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.