Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 36
Member Avatar for confusedndazed

Hello all, I need to create a function call to calculate the average...Can anyone help with that?? I'm not sure how to create a function in my code to calculate the average. My code currently terminates after I enter the 50 inputs and does not compute and read the average. …

Member Avatar for jonsca
0
87
Member Avatar for confusedndazed

Hello all, I'm getting an error telling me "'}' is expected at the end of input" but '}' is there. Any help with these issues? Here's what I have so far: [CODE]#include <iostream> using namespace std ; void displayTitle () { cout << "Active Duty Navy Personnel Program" << endl …

Member Avatar for jonsca
0
119
Member Avatar for confusedndazed

Hello guys....I appreciate any and all replies I get but I really needed to be [I]shown[/I] how to incorporate a program title and a function call into this code and have it properly execute. I am really lost with programming so I don't usually understand explanations unless I can actually …

Member Avatar for confusedndazed
0
100
Member Avatar for confusedndazed

Hi, I'm trying to incorporate a program title and welcome message into my code and I'm not sure if I have done it correctly. I would also like to know how to incorporate the following function calls into my code: Call Personnel Age Call Calculate Average Age Call Display Average …

Member Avatar for Lerner
0
91
Member Avatar for confusedndazed

Hello all, I am getting a few errors with my code, I have been playing around with it but I guess I still needed a few tweaks. The errors and code are as follows: 23 C:\myC++projects\averageproj.cpp expected `;' before '}' token 27 C:\myC++projects\averageproj.cpp expected primary-expression before '<<' token 34 C:\myC++projects\averageproj.cpp …

Member Avatar for sidra 100
0
126
Member Avatar for confusedndazed

Hello all, I have made some adjustments to my last two posts and combined them here to ensure it makes sense. I am supposed to use a top down design along with a pseudocode for a program that lists an array of numbers, computes the average, and outputs the results. …

0
53
Member Avatar for confusedndazed

Hello all, I have my assignment topic and I know what information I would like to include in my assignment. Can anyone tell me how to put my data into top-down format? Here is what I have thus far: I'm trying to design a program that will input ages of …

Member Avatar for confusedndazed
0
117
Member Avatar for confusedndazed

I'm trying to design a program that will input ages of 50 active duty Navy personnel and then finds the average age of current active duty Navy members. Here is my current pseudocode, could anyone tell me if there are errors? [code=text] Declare age[50] as integer Declare Sum, Average as …

Member Avatar for mrnutty
0
111
Member Avatar for confusedndazed

Hello all!! I've been working on this code for a while now and I'm still lost. Can anyone tell me what's wrong with this code please??? I know Line 44 is missing something but I'm not sure what goes there, here is the pseudocode as well: /* pseudocode for Binomial …

Member Avatar for confusedndazed
0
114
Member Avatar for confusedndazed

Hello all, I'm very confused on this K factor stuff.....I understand that...1*2*…*k indicates the product of consecutive numbers and therefore: 1*2*…*5 is actually 1*2*3*4*5 = 120 But I'm not sure how to write that as a code. I have the following information: /* pseudocode for Binomial Coefficients */ int binomial(int …

Member Avatar for confusedndazed
0
149
Member Avatar for confusedndazed

Hello people, this is my second attempt to get help for the same code. First post is unsolved. I apologize for any confusion in my posts but I'm confused myself so it's somewhat hard for me to properly explain that which I don't even understand....:$.... I have been given the …

Member Avatar for lotrsimp12345
0
115
Member Avatar for confusedndazed

[B]Hello everyone!!![/B] I have the following pseudocode and I'm not exactly sure how/where to plug it into my code. I am still very lost concerning programing so please bear with my ignorance...:) /* pseudocode for Binomial Coefficients */ int binomial(int n, int k) { If (n < k) Then return …

Member Avatar for confusedndazed
0
94
Member Avatar for confusedndazed

I'm having trouble understanding how to write a function call. This is what I have so far: [CODE]#include <ionstream> using namespace std ; int binomial(int n, int k) ; // function prototype int main () { int n, k ; // parameters for the binomial number int result ; cout …

Member Avatar for amrith92
0
144
Member Avatar for confusedndazed

My question: What is the output of the code corresponding to the following pseudocode? [code=text] Set y = 0 For (i = 0; i<=6; i=i+3) For (j = 0; j<=15; j=j+5) Set y = y + 1; End For (j) End For (i) Output y [/code] This is what I …

Member Avatar for rafta
1
104
Member Avatar for confusedndazed

Pseudocode is still somewhat confusing and I've been reading and this assignment for the a while now and I wanted to make sure I am understanding what's being asked of me. Could someone please tell me if my pseudocodes are correct? Question: 1. Using pseudocode declare a Real number named …

Member Avatar for Tales
2
98
Member Avatar for confusedndazed

Hello all, I'm working with exponentiation and I have an assignment to write a code for loop initialization and loop body but unfortunately, I don't even know what that means. I was given the following information: Input x // can be any float Input y // has to be a …

Member Avatar for confusedndazed
0
82