Computers and Technology, 04.08.2019 15:00 jasminemarie610
C++ question (if and while loops)for some reason it is closing whenever i go through the first statement completely or in the while loop if something is to happen if it is 0. i want it to display the pay message in both instances. however it crashes. #include using namespace std; int main() { double wage; double hours; double tr; cout < < "enter the wage for the employee" < < endl; cin > > wage; if (wage > = 0.00001) { cout < < "you have entered " < < wage < < " as a value" < < endl; cout < < " enter the amount of hours the employee worked." < < endl; cin > > hours; cout < < "you have entered " < < hours < < "hours." < < endl; cout < < " enter the tax rate as a decimal." < < endl; cin > > tr; std: : cout < < "the employee's pay for this cycle is " < < (wage * hours) - (wage * tr) < < endl; } while (wage = 0) { cout < < " reenter, you need to specify amount greater than 0.00." < < endl; if (wage > = 0.00001) { cout < < "you have entered " < < wage < < " as a value" < < endl; cout < < " enter the amount of hours the employee worked." < < endl; cin > > hours; cout < < "you have entered " < < hours < < "hours." < < endl; cout < < " enter the tax rate." < < endl; cin > > tr; std: : cout < < "the employee's pay for this cycle is " < < (wage * hours) - (wage * tr) < < endl; } } return 0; }
Answers: 1
Computers and Technology, 21.06.2019 18:30
What type of weird relationship this is analogy show? dissolve: solidify: : noise: silence
Answers: 2
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
C++ question (if and while loops)for some reason it is closing whenever i go through the first state...
History, 05.02.2020 08:58
Geography, 05.02.2020 08:58
Social Studies, 05.02.2020 08:59
Biology, 05.02.2020 08:59
Mathematics, 05.02.2020 08:59
Mathematics, 05.02.2020 08:59
Advanced Placement (AP), 05.02.2020 08:59