subject

Create a c# console program named tipcalculationthat includes two overloaded methods named displaytipinfo.

one should accept a meal price and a tip as doubles (for example, 30.00 and 0.20, where 0.20 represents a 20 percent tip).
the other should accept a meal price as a double and a tip amount as an integer (for example, 30.00 and 5, where 5 represents a $5 tip).
each method displays the meal price, the tip as a percentage of the meal price, the tip in dollars, and the total of the meal plus the tip. include a main() method that demonstrates each method.
for example if the input meal price is 30.00 and the tip is 0.20, the output should be:
meal price: $30.00. tip percent: 0.20
tip in dollars: $6.00. total bill $36.00
looks like this so far:
using static system. console;
class tipcalculation
{
static void main()
{
// write your main here
}
public static void displaytipinfo(double price, double tiprate)
{
1}
public static void displaytipinfo(double price, int tipindollars)
{
}

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
You know the right answer?
Create a c# console program named tipcalculationthat includes two overloaded methods named displayti...
Questions
question
Mathematics, 11.07.2019 12:20
question
Mathematics, 11.07.2019 12:20
Questions on the website: 13722360