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 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
You know the right answer?
Create a c# console program named tipcalculationthat includes two overloaded methods named displayti...
Questions
Questions on the website: 13722359