Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for wyett

Alright, I'm trying to generate an ODD random number between 1 and 8. [CODE] Do While (i < 4) box(i) = randomObject.Next(1, 8) Do While (flag = 0) If (box(i) Mod 2 = 0) Then k = 0 box(i) = randomObject.Next(1, 8) If (box(i) = box(k + 1)) Then box(i) …

Member Avatar for wyett
0
123
Member Avatar for wyett

So, I'm asking a user to input a fraction in the form of this: +3 3/4 I know I can use a search to find where the first instance of something happens, but how do I actually take whats before it? Example: I can tell it to search for white …

Member Avatar for wyett
1
112
Member Avatar for wyett

So, I'm working on a fraction calculator to add, subtract, divide and multiply. Currently on the part where it's asking for the user to input their fractions. My professor states this on the assignment sheet: "A valid sign will be ‘+’ or '-', a valid whole part or numerator will …

Member Avatar for jonsca
0
88
Member Avatar for wyett

Quick question regarding the Fraction class created in the header file. Someone in my group used this in the header and I was wondering if there was an alternative to coding it than what they used. Something simpler for me to understand. It seems they just took a shortcut. [CODE]public: …

Member Avatar for wyett
0
85
Member Avatar for Towely

I'm trying to create a program that takes 2 numbers from a user (a numerator and a denominator), displays one ontop of the other separated by dashes, and then shows the answer of one number divided by the other. Inside an If statement, I want to output several lines using …

Member Avatar for Towely
0
214
Member Avatar for IndyColts

First off, you should know I just started learning C++ today. Anyway, whenever I type in my code to Dev_C++ Compiler, and then try to run it, it always says "Source file not completed." Here's my code: [CODE]// operating with variables #include <iostream> using namespace std; int main () { …

Member Avatar for TheComputerGal
0
125
Member Avatar for wyett

So, I created a program that allows a user to create student, delete student, display all students, search students, and quit. They are labeled 1 - 5, respectively. However, if a user were to enter 1, create the student, be taken back to the main menu and typed in x. …

Member Avatar for wyett
0
176
Member Avatar for wyett

So, I am currently having 2 issues with my code. Problem 1: Any value entered in for the GPA that isn't a number causes an infinite loop. (example: enter in the letter X) Instead of giving an error message, it just goes into that infinite loop. [CODE]bool right = false; …

Member Avatar for wyett
0
148
Member Avatar for wyett

Alright, so I'm a bit lost as to what to do next with this and am looking for some direction. The assignment sheet is as follows: [QUOTE]CSC 265 – Fall 2009 – Program 1 Due: Thursday October 8, 10 minutes before class starts Write a header file, implementation file, and …

Member Avatar for wyett
0
2K
Member Avatar for wyett

Alright. Basically the point of this program is to allow a user to select how many fractions they want printed on the screen. It is supposed to print 3 fractions PER line. If a user requests 4 fractions..it would print 3 and print the 4th fraction by itself on the …

Member Avatar for wyett
0
107