Problem Description
Create a Date class with the following capabilities:
a) Output the date in multiple formats such as
MM/DD/YYYY
June 14, 1992
b) Use overloaded constructors to create...
Type: Posts; User: 123456tacos
Problem Description
Create a Date class with the following capabilities:
a) Output the date in multiple formats such as
MM/DD/YYYY
June 14, 1992
b) Use overloaded constructors to create...
Sorry im kinda a noob at this :/
for the Student.cpp i get
and for the mid2.cpp i get
I cant figure out this problem i think i have everything right but i cant get it to compile, no idea where i messed up, please help if you can.
Create a class Student. The class has member data:...
ok thanks and i got the code part
cout << setiosflags( ios::fixed | ios::showpoint ) im just asking where should i place it and do i have to
setprecision( 2 ) for every result or just one?
Oh and where should i put
setprecision( 2 )
Ok i got it working but its giving me the wrong answer For example if i enter product 2 and sold 2 i get $2.50
Ok this is my revised code i get a error saying that QuantitySold cant be used as a function and sorry about not spacing my code in the OP
#include<iostream>
#include <iomanip.h>
using...
I need help with with my hw. The code bellow is what i have so far but i still need to this part which i cant figure out .
>>>>>If the quantity sold for the product is over 10, then 10% off is...
anyways thanks for the help i figured it out :)
kk thanks ill give it a try
can u give like a example because i have no idea what you mean by that bc i was sick and missed that lesson unfortunately :/
Ok so i got this code working but then i realized that my teacher is a lame and wont accept it bc its dooesnt use Multiple Functions with Input/Output Parameters and i have no idea how to do that :/...
so like
strcpy (temp, lname[y]);
strcpy (lname[y], lname[y-1]);
strcpy (lname[y-1], temp);
and where would these go if they are right? im new to c :P
Hi i cant seem to get this program to work, i think the problem might be with the arrays but i cant seem to figure it out :/
This is the hw problem
Write a program that stores lists of names...
ohh ok i think i got it thanks :)
oo got wrong sign :P so is there a way to write it in array form? a example would be nice
here its all updated it works and gives the right answer it just isnt in array form which the damn teacher...
this is the code i wrote but i need to write it in array form but i dont know how, ohh the system pause cause a syntax error
#include <stdio.h>
int main (void)
{
hi, well i need help with my hw, it deals with arrays and arguments but i have no idea how to do it, like im taking a online class and the book is basically useless, so i was wondering if u guys...
kk so this is what i got it works and all but when i enter multiple product #1 it just takes the last one i enter and it doesnt add them :(
#include <stdio.h>
int main()
{
int swt=0,...
ahahaha thanks i got it working :DDD
soooooo.....yaaa idk lol im just a beginner in all this :P
Problem : . Function with Input/Output Parameters
Write a void function called Result that has only two type int input/output parameters. The function will return the sum of the two original...
There is my code. I'm running into problems in which the program will run, but the results are... bad. Not even close. All products except 5 show up as 0, and 5 ends up showing up as 70.xxxxxxxxxxx...
yaaaaa we havent learned that yet :'/
ahahaha thanks it works now but if i enter multiple entries like "1" twice for the product number it stops automaticaly -.-'
#include <stdio.h>
int main (void)
{
int custnum;