That made the program work exactly how I wanted it to, getting the decimils and the overtime read out. I cant believe I missed something so simple.
Thank you very much.
Type: Posts; User: brian75
That made the program work exactly how I wanted it to, getting the decimils and the overtime read out. I cant believe I missed something so simple.
Thank you very much.
I am trying to make a program that takes an employees wage and their hours worked and have the output be their money made for that week. Anything over 40 hours is going to be counted for overtime at...
Ehh. I was in no rush.
My final code:
#include <iostream>
int year;
int leap;
int leap2;
int leap3;
Bingo. That was going to be what I tried next. I had four different way written down on a piece of paper and I was working through them.
Thanks for the help.
That program there tells you the output, "It's a leap year" on all leap years but say nothing and exits when you input a non leap year.
That makes sense to a degree but that is not how you completely determine if a year is a leap year. It has to be divisible by 4 but not 100 but 400 is the exception.
That if I understand...
I am trying to work out a program where it takes a user inputed year and outputs if that year is a leap year or not.
Right now from what I have when I put leap years into the program it reads the...
I am not sure if this is what you guys were suggeting me to do but I got this to run with no errors and ouput the correct numbers.
Here is the code I have now to date. Any inprovements for me?
...
Thank you for posting. I dont exactly follow what you are talking about but I think I have a general understanding. I will try and change my code up tonight and post the new one in and see if it...
I am writing a program that is supposed to take an amount of change the user imputs and then the program is supposed to output the number of quarters, dimes, nickles, and pennies needed to make up...
I got it to work. Thank you for the help.
Here is the working code I have
/* Program to convert minutes to hours and minutes */
I am working on an excersise from one of my programming books and I need to get the program to take a time in minutes and convert it to hours and minutes.
Example- The user would input a time in...
I will not answer that. Lol
Thank you for all your help everyone. I understand what was wrong now.
so the beggining would want to look something like
/* program to convert temperature in celcius
to temerature in fahrenheit */
#include <iostream>
alright so to make my equation the most accurate i need to make it (9.0/5.0) when doing the conversion to fahrenhiet?
alright. would the equation:
int f = ((9/5) * (c)) + 32
work as well or does c++ read it still as 1? I'm at work now so I can't test the code out for myself now.
and when defining...
thanks for the help. why do you have to remove the second set of >> ?
I have a program that is supposed to convert temperature i celcius to temperature in fehrenhiet. I get a syntax error on the line where the user is supposed to input the temperature in celcuis.
I...
anim8or is very good as well. it is almost as feature rich as maya but for free and easy to use. that is what i use
ok i get it know. that explained it well. Thank you.
well i wasnt 100% sure on what you were saying but i did change some things around so it will run through the whole program. I also added <string> so the program will repead the full word replies...
so therefore if i leave it as is and name off all of the
int multiplication()
int gears()
//etc
so if i change all of my
int questioning()
int gears()
//etc.