1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
emmainna [20.7K]
3 years ago
7

C++ Question (if and while loops)

Computers and Technology
1 answer:
IceJOKER [234]3 years ago
8 0
Your while statement is in error

<span>while (wage = 0) assigns 0 to wage.

What you want is to compare wage to 0, ie.:

while (wage == 0).

However, comparing double's to some value is very bad practice due to rounding errors. Much safer is to always have a < or > in there:

while (wage < 0.0001)

If you confuse assignment (=) and comparison (==) often, and you don't have a compiler to warn you for this, you can adopt the coding style to put the constant first:

while(0 == x)</span>
You might be interested in
Write a program great_circle.python that takes four float arguments x1 y1 x2 y2
svlad2 [7]

Answer:

897893+ 892e98374))8qwye932__8730140923(7834983(8974+9)9903)

Explanation:

IT IS SIMPLE MY FRIEND

spanish conquistadors, who were primarily poor nobles from the impoverished west and south of Spain, were able to conquer the huge empires of the New World with the help of superior military technology, disease (which weakened indigenous resistance), and military tactics including surprise attacks and powerful and there were no strangers to love and they knew the rules and so did i they just wanted to tell people how the were feeling and they wanted someone to understand so they were never gonna give you up and they were never gonna let them down and they were never gonna turn around and hurt other people in the army they were never gonna make the soldiers cry and they never were going to say goodbye but the years stop comming and they dont stop comming head to the rules gotta keep the groud running but Remember those walls I built Well, baby, they're tumbling down And they didn't even put up a fight They didn't even make a sound I found a way to let you win But I never really had a doubt Standing in the light of your halo I got my angel now It's like I've been awakened Every rule I had you breaking It's the risk that I'm taking I ain't never gonna shut you out Everywhere I'm looking now I'm surrounded by your embrace BabPatrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.y, I can see your halo You know you're my saving grace You're everything I need and morei t's written all over your face Baby, I can feel your halo Pray it won't fade away  Hit me like a ray of sun Burning through my darkest night I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up Like I'm Bakugo, turn they soul to  smokei 'm boutta' pop,  you know I'm boutta' blow up Only need these hands, I don't need no ' pole Once I get a grip, I might blast yo dome up Why you packin', you ain't bout' that action I'll blow her back in Why you mad but not attackin' boy I'll send you packin' I'm the best, no doubt about it Competition live without it You just mad cause I'm too rowdy get back I'm really bout it Head down on the ground, you don't want these hands around you Nitroglycerin I'm sweatin', blastin' off I'm bound to Rushin', there ain't no hiding yous a  if you down to If you try to hide you gon' be begging once I've found you I'm the best, ain't no hero but always been vet if you got an issue, AP shots up to yo neck I don't give a  about no one, I'll say it no regrets I'm only here for me, I'm at the top and you'll respect Grenadier bracers on my wrist, I'm about to pull the pin Come at me with all your might or I'ma melt off all your skin Howitzer impact  ,  I told you I'ma win get back before I blast, I said I'll do it again wit' a grin Like I'm Bakugo, turn they soul to ' smoke I'm boutta' pop,  you know I'm boutta' blow up Only need these hands I don't need no  pole Once I get a grip, I might blast yo  dome up and  I want Think I'm addicted to your light  swore I'd never fall again But this don't even feel like falling Gravity can't forget To pull me back to the ground again Patric Patrician. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.ian. sorry teacher but i am gay They also needed to pack it box it flip it top it wit a bowtie ribbion stop it because there dogs were eating all the rainbow cookies and pies were filying through the roof. Patricians were considered the upper-class in early Roman society. They controlled the best land and made up the majority of the Roman senate.

6 0
3 years ago
When you are making multiples of a brownie recipe, you cannot - without great difficulty - use a fraction of an egg. The calcula
Lera25 [3.4K]
The answer is one ☝️ question for the poll of a vote
5 0
2 years ago
What happens if you have Param 1 in your ad, but there is no corresponding value at the keyword level?
nika2105 [10]
Without it, you at will no severe
4 0
3 years ago
Read 2 more answers
In HTML, what is an element?
klio [65]

An element is what makes up the HTML long story short.

8 0
2 years ago
Read 2 more answers
Anybody plays mine craft
GuDViN [60]
Want to avoid giant mushrooms than stay away from dark oak and mooshroom biomes
5 0
3 years ago
Read 2 more answers
Other questions:
  • Rachel uses a word processor to write short stories. However, most of her time is spent toying with the keys, rather than in wri
    13·2 answers
  • The function keys are labeled from f1 to wat
    10·1 answer
  • What is the difference between a key escrow and a recovery agent? (Choose all that apply.)
    12·1 answer
  • A function ________ contains the statements that make up the function.
    5·1 answer
  • What directs the read/write arm of the hard drive to where data exists and accesses it upon the user's request?
    8·1 answer
  • Question # 2
    7·1 answer
  • Explain what an IM is, and what is the technology shown in the accompanying figure
    7·2 answers
  • Write a method that takes a RegularPolygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclus
    10·1 answer
  • On tool hackers use to get sensitive information from victims is/are:
    15·2 answers
  • Write a Java program that launches 1000 threads. Each thread adds 1 to a variable sum that initially is 0. You need to pass sum
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!