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 03:30
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
question
Computers and Technology, 22.06.2019 05:30
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
You know the right answer?
Create a c# console program named tipcalculationthat includes two overloaded methods named displayti...
Questions
question
Mathematics, 19.11.2020 23:10
question
Mathematics, 19.11.2020 23:10
Questions on the website: 13722360