subject

This is the source code. // This program computes net weekly pay
// based on hours worked, rate per hour,
// and 15% withholding
using System;
using static System. Console;
class DebugTwo3
{
static void Main()
{
const double WITHHOLDING_RATE = 15;
string hoursAsString, rateAsString;
double hours, rate;
double gross, withholding, net;
Write("Enter the number of hours you worked this week >> ");
hoursasString = ReadLine();
Write("Enter your hourly rate >> ");

rateAsString = ReadLine()
hours = Convert. ToDouble(hoursAsStrinng);
rate = Convert. ToDouble(rateAsStrinng);

gross = hours + rate;
withholding = gross * WITHHOLDING_RATE;
net = gross * withholding;
WriteLine("You worked {0} hours at {1} per hour",hours, rate. ToString("C"));
WriteLine("Gross pay is {0}", gross. ToString("C"));
WriteLine("Withholding is {0}", withholding. ToString("C"));
WriteLine("Net pay is {0}", netToString("C"));
Console. ReadKey();
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:10
What is word processing and word wrap?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
You know the right answer?
This is the source code. // This program computes net weekly pay
// based on hours worked, ra...
Questions
question
English, 18.11.2020 22:40
question
Mathematics, 18.11.2020 22:40
question
Computers and Technology, 18.11.2020 22:40
question
Mathematics, 18.11.2020 22:40
question
Mathematics, 18.11.2020 22:40
question
Mathematics, 18.11.2020 22:40
question
Physics, 18.11.2020 22:40
question
Mathematics, 18.11.2020 22:40
question
German, 18.11.2020 22:40
Questions on the website: 13722360