This isn't homework thank you. It's a test question that I did horrible on and just want to know how to approach it if it's one like this on the final. thanks. I'll get help elsewhere.
Type: Posts; User: jlmac2001
This isn't homework thank you. It's a test question that I did horrible on and just want to know how to approach it if it's one like this on the final. thanks. I'll get help elsewhere.
Final exams are a couple of weeks away and I'm studying early because I need to past my c++ final with an 85 or higher. We recently had a test and the following question is one that I got most of it...
I hd to write a total of 4 small programs that deal with writing function. I have two of them that i need to have checked because they are not working correctly and I dont know whatI'm doing wrong....
I have two small programs dealing with writing functions. I'm not not skilled at writing functions. for the second assignment, what type of recursive function can i use? Can someone give me an...
I have to write a square root function but I'm stuck on the definition. Can I have an example of a function definition dealing with math functions?
Here's the program:
Write a function called...
I figured out how to get the average and my program is working great. Thanks.
If I don't know how many numbers that I will use, how will I know what number to divide the average by? The loop is infinite!
This program is suppose to :
Prompt the user to enter any number of integers. Keep prompting the user to input integers until the input is 0, which is the signal to stop entering numbers. After...
I started the two programs but am still unsure how to do the sum for the first one and how to sort the second one. I don't think we can use functions or strings because we haven't gotten that far in...
I have to do three small programs that use loops. I know how to do the loops but am unsure about how to do the rest for exercises 1 and 2. I think that I can do exercise 3 fully on my own.
For...
I tried writing most of my program but I'm stuck on the definitions. Can someone show me an example of a definition? Here's my program:
#ifdef MYINT1_H
#define MYINT1_H
class MyInt
{
I started writing the class for the program but am unsure if I'm doing it correctly. Can someone look at it and give me some advice and examples? Also, how would I define an operator overload? Is my...
Okay, i tried going through class by class and cpp file by cpp file to catch errors but i'm still geting a few and i don't know what to do. the book.h file was given my the professor so it should be...
I need help getting my program to work.. When i compile, i get over 102 errors. I don't know why.
Can someone look over what I have and give me some feedback as of what looks wrong so that I can ...
Okay, I change that but what else do i need to do? Don't i need function definitions for the other functions? I tried compiling it and I got an error saying that lotto wasn't a function. i don't know...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int lotto [6];
int getNumber(void);
int duplicate (int);
void clearLotto(void);
void newline(int);
void srand (unsigned int seed);
i won't use the boards again. i just want some help. i didnt want u to write it for me.
I need help getting started with this program. It uses the random generator and I don't have much experience with that. Can someone help me get start? Point me in the right direction and I'll do it...
I have to write classes to implement an inventory list simulation for a bookstore. i don't really know how to start the store class. can some give me an example of a store class and types of...
I got two errors that are as a result of the bool statements. Howdo I get them to go away? How would I set up the SetFormat function? Would I leave the Show function blank?
#include...
I still don't understand how to start the cpp file. Can I hve an example?
I need a quick explanation of how to write the cpp file for my program. I have the class written below. I don't know how to use
the code tags that you guys like. Sorry. Can someone help me get...
One of the requirements is that all of the member data ofthe Date class be private. What does that mean? Does it meanthat I did it right by making everything private? Or should I make the...
Is this the correct way to build a class for Date?
#ifndef date_H
#define date_H
class date
{
private:
date(); //default constructor
I wrote some of the program but I know it incomplete and wrong. It's suppose to be roulette but the random generator isn't working. Wheredo I put that? What do I need to do to make my program...