Within the method main, call each dataOut method using an appropriate list of arguments chosen from four variables that are declared in main:
A char variable named letter, assigned the value 'a'
A String variable named name, assigned the value "Hello"
An int variable named number, assigned the value 5
A double variable named value, assigned the value 6.25
Be sure to include comments and display the results to the user.
Complete the following Java program, inserting comments, package names, or calls to methods of the class Math after the bold comments. For readability, leave the blank lines and comments in place throughout the program.
Design a program that has five definitions of the method dataOut, with each one having a different signature. The signature for the five method definitions are
char, String, int, double
String, int, double, char
int, double
char, int
Write a program called restaurant.js, that calculates the tab for a couple based on the use of a gift certificate and the items ordered. Since we are not collecting input from the users, use the same literal values for the appetizer, entrée, drinks and dessert that you see in my example below. The total for ordered items, restaurant tax, and tab should be calculation and not hardcoded print statements.
An example execution of the program is given below:
This program will calculate a restaurant tab for a couple with a gift certificate, with a restaurant tax of 8.0%
Amount of gift certificate: 200
Ordered Items for person 1
Appetizer: 5.50
Entrée: 21.50
Drinks: 4.25
Dessert: 6.00
Ordered Items for person 2
Appetizer: 6.25
Entrée: 18.50
Drinks: 6.50
Dessert: 5.50
Ordered Items: $74.00
Restaurant tax: $5.92
Tab: $ -120.08
(negative amount indicates unused amount of gift certificate)
Design a program that asks the user to enter a floating-point number (either positive or negative). The program repeats while the user enters ‘y’ to continue. The program allows a user to enter either a lowercase or uppercase character. Use the ceil use the ( ), floor ( ), and abs ( ) methods to determine the smallest whole number that is greater than or equal to the number entered, the largest whole number that is less than or equal to the number entered, and the absolute value of the number given, respectively. Use the toLowercase ( ) method to change a given character value to lowercase if the value is an uppercase value.
Prompt the user to enter a three word phrase as one string and then:
Display the number of characters (including spaces) in the phrase.
Display the number of characters in the middle word.
Display the final word in all upper case.
Write a program for Horizon Phones, a provider of cellular phone service. Prompt a user for maximum monthly values for talk minutes used, text messages sent, and gigabytes of data used, and then recommend the best plan for the customer's needs. A customer who needs fewer than 500 minutes of talk and no text or data should accept Plan A at $49 per month. A customer who needs fewer than 500 minutes of talk and any text messages should accept Plan B at $55 per month. A customer who needs 500 or more minutes of talk and no data should accept either plan C for up to 100 text messages at $61 per month or Plan D for 100 text messages or more at $70 per month. A customer who needs any data should accept Plan E for up to 2 gigabytes at $79 or Plan F for 2 gigabytes or more at $87.
Write a public static method that takes 3 integer numbers and return a string
that has the three numbers separated by a space and sorted in descending order.
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!