Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
3
0 Endorsements
~18.1K People Reached
Favorite Tags
Member Avatar for DS9596

After you open files (like 7 or 8) on email and download to visual studio, how come it won't let you debug right there? Do I have to save all those files, one at a time and then will it let me debug?

Member Avatar for pritaeas
0
161
Member Avatar for DS9596

Can someone check if I got these correct please?? I'm pretty sure I missed almost half of these so I really need help on these. If someone can explain how to get an answer, that would be great. a: 5 b: address of location of x (0x....) c: address of …

Member Avatar for jacks009
0
294
Member Avatar for DS9596

I'm still getting one error not sure why? Error 1 error C4700: uninitialized local variable 'arranged' used 74 Thanks. #include <iostream> #include <iomanip> using namespace std; //Function prototypes void sortTestScores(int *TestScores, int size_Test); double avgTestScore(int *TestScores, int size_Test); void printTestScores(int *TestScores, int size_Test); int main() { //Define variables int *TestScores; …

Member Avatar for DS9596
0
186
Member Avatar for DS9596

Using an initialization list for a class array variable, what do you use to setup a slot with a 3parameter Ctor?

Member Avatar for rubberman
0
135
Member Avatar for DS9596

How does an array variable indexing expression differ from an array definition size expression?

Member Avatar for rubberman
0
135
Member Avatar for DS9596

Define an int array variable named arx with 3 slots, and stuff a 7 in the last slot int arx[2]=7; or is it: int arx[3]; arx[2]=7; Is this correct?

Member Avatar for David W
0
226
Member Avatar for DS9596

C++: I'm using Microsoft Visual Studio 2012 and I am not sure what to do about these two errors: 2 IntelliSense: identifier "x" is undefined Error 1 error C2065: 'x' : undeclared identifier Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. …

Member Avatar for ddanbe
0
372
Member Avatar for DS9596

C++: I'm using Microsoft Visual Studio 2012 and I am really confused and am getting errors. Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. One method named "read from user file" which will ask the user to input a filename and …

Member Avatar for David W
0
608
Member Avatar for DS9596

I'm getting these types of errors: identifier "gm" is undefined or expected a ';' How do I fix these errors? #include <iostream> #include <cstdlib> //srand #include <ctime> //time #include <cmath> #include <string> using namespace std; int G_master; int m_secret; int m_choice; int m_win, m_prev_delta; int Number_guess; int Card_guess; int delta; …

Member Avatar for David W
0
454
Member Avatar for DS9596

Need help to fix errors, I know int a[] should be specified but not sure how to. #include <iostream> using namespace std; class TWO { private: int age[5]; public: //read data into array void ReadData(int age[], int n); //member to return the average of data in array age of object …

Member Avatar for rubberman
0
155
Member Avatar for DS9596

When I run it, it prints out but the largest and lowest frequency's don't come out correctly? #include <ctime> #include <iostream> #include <iomanip> #include <array> using namespace std; void DisplayNum(int *x); void DisplayData(int *x); void FindMaxMin(int *x); struct NUM { int n; int freq; }; NUM ALL[10]; int main() { …

Member Avatar for tinstaafl
0
157
Member Avatar for DS9596
Member Avatar for David W
0
386
Member Avatar for DS9596

How do I write a program to compute run-time of a recursive and non-recursive functions to find the 43rd Fibonacci number?

Member Avatar for Schol-R-LEA
0
278
Member Avatar for DS9596

I'm not sure if I'm doing this part correctly, the part where I have to make it all lower case then to all upper case, then just first name. #include <iostream> #include <cstring> #include <stdio.h> using namespace std; int main() { char a[3][14] = { "Barack ", "H", " Obama" …

Member Avatar for DS9596
0
1K
Member Avatar for DS9596

I have to sort the 5 elements in a, the Days and the Vowels. How do I use the template <class T> with the way I put this?? #include <iostream> #include <algorithm> #include <iomanip> using namespace std; // Function prototypes void DisplayA(int[], int); void showArray(int[], int); void DisplayB(string[], int); void …

Member Avatar for nullptr
0
398
Member Avatar for DS9596

Max and min come out wrong, they go to 0's when it outputs ? How do I fix, any solutions?? #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { int x, y, z; int total; float average; //Read data into x, y, z void ReadData(int & x, …

Member Avatar for necrovore
0
1K
Member Avatar for DS9596

I did it like this and it somewhat works but I have problem with the middle name such as Barrack Hussein Obama. How do I make it so it ignores the middle name and just gives me the last name??? #include <iostream> #include <iomanip> #include <string> using namespace std; int …

Member Avatar for Moschops
0
165
Member Avatar for DS9596

It lets me continue the loop but it won't let me enter a sentence the second time?? #include <iostream> #include <iomanip> #include <string> #include <cctype> using namespace std; int main() { char c, response; int Uc = 0, Dc=0, Vc=0, Wc=0; string vowels("aeiouAEIOU"); cout << "I can count the number …

Member Avatar for NathanOliver
0
346
Member Avatar for DS9596

The output comes out wrong it should be different: //This is what I have Enter a sentence: Today Is Thr Jan, 2015 Number of uppercase letters.........2 Number of digits....................2 Number of vowels....................2 Press any key to continue . . . //The output should look like this: Enter a sentence: Today …

Member Avatar for SalmiSoft
0
201
Member Avatar for DS9596

Not working right, else is getting error. #include <iostream> #include <iomanip> #include <cmath> #include <string> using namespace std; int main() { // Declare variables below here int CORRECT, WRONG; double a, b, correct, result; char choice, answer; cout <<"Let's practice addition or subtraction with random integer numbers <100"<<endl; cout <<"---------------Math …

Member Avatar for tinstaafl
0
151
Member Avatar for DS9596

How would I fix something like this: It is without the is a vowel or is not a vowel, still doesn't work but how do I fix it? This is what it Today Is Thr Jan, 2015 Enter a sentence: #include <iostream> #include <iomanip> #include <string> using namespace std; int …

Member Avatar for DS9596
0
399
Member Avatar for DS9596

So far I have this but I need to use switch statements to make age< certain numbers for each age group. #include <iostream> #include <iomanip> #include <string> using namespace std; const float CHILDREN_MALE=50.00; const float CHILDREN_FEMALE=55.00; const float TEENAGERS_MALE=150.00; const float TEENAGERS_FEMALE=155.00; const float ADULTS_MALE=275.00; const float ADULTS_FEMALE=250.00; int main() …

Member Avatar for StuXYZ
0
277
Member Avatar for DS9596

The total bill doesn't add up correctly, don't get where I went wrong? Total bill is way off. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; const float Small = 1.20; const float Medium = 1.50; const float Large = 1.70; const float less_inches = 3.75; const float …

Member Avatar for DS9596
0
253
Member Avatar for DS9596

Not sure why it's not letting me choose the operation I want where I put "Enter an operation symbol..", I'm supposed to use switch statements to compute functions. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; int main() { int type; int a, b, c, d; char op; …

Member Avatar for DS9596
0
277
Member Avatar for DS9596

Can someone check if I am doing these right please, thanks ? int a=3, b=5, x; x= a/b + b/a +a%b + b%a; cout << x; // x=0+1+0+1= 2 y=float(b/a)+ float(b)/a; cout << y; // y=1.6+1=2.6 z=a*b/2; cout << z; // z= 4 w=pow(b, a)+sqrt(a+b); cout << w; // w=125+2sqrt(2) …

Member Avatar for YarMak
0
247
Member Avatar for DS9596

So I have this so far, not sure how to make dollars * e^(rate*time) #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { //declare identifiers double rate = 1; double time = 2; float dollars; float total=0.0; //initialize identifiers total= pow(exp(1.0), rate*time); cout << fixed << showpoint …

Member Avatar for YarMak
0
207
Member Avatar for DS9596

Can you tell me what's wrong with it because it's not running on visual studio and I need it right now??? #include <iostream> #include<vector> #include<algorithm> #include<limits> #include<fstream> #include<string> using namespace std; class PayRoll { private: vector<int> salaries; public: PayRoll(); bool searchSalary(int salary); void generateStats(); void printSalaries(); }; PayRoll::PayRoll() { ifstream …

Member Avatar for cgeier
0
178
Member Avatar for DS9596

I did some don't know how to read into the vector, need help on this assignment: Rich Software Inc. has hired you for an internship position to create new payroll software for their employees. Your goal is to create a program that reads the newdata.txt file with their salaries. After …

0
152
Member Avatar for DS9596

Rich Software Inc. has hired you for an internship position to create new payroll software for their 5 employees. Your goal is to create a program that reads the data.txt file with their 5 salaries. After that, the user can select from a 4 choice menu that handles the user’s …

Member Avatar for deceptikon
-2
160
Member Avatar for DS9596

Is this a good pseudocode and can you help me write this, I am kind of new to programming. if (choice > 0 && choice < 4) //choice is between 0 and 4 { cout << "Enter the distance: \n"; //displays the distance cin >> distance; //prints the distance if …

Member Avatar for rubberman
-1
435