Iyalodeofcanada's Posts
Nairaland Forum › Iyalodeofcanada's Profile › Iyalodeofcanada's Posts
1 2 (of 2 pages)
Visual studio c++ 2011. proxy20: |
Otuabaroku:Thank you for this but your code seems too advanced for a baby programmer like me(I started this class one week ago). I have been googling each line all day. The truth is it is an assignment due tommorow. It is not as if i am been lazy but right now i just have to deliver and i am looking for the simplest way to go about this later i can now read up and catch up on array declarations and all that. Still working on it though thanks alot #include <iostream> using namespace std; int maxmul(int a, int b, int c) { int min; int a = 1; int b = 2; int c = 3; } int main() if b < min min = b; if c < min min = c; { cout << maxmul(1,2,3) << endl; cout << maxmul(3,1,2) << endl; cout << maxmul(3,2,1) << endl; } return a*b*c/min; |
proxy20:As regards your solutions, can i present the first like this? #include<iostream> int maxmul(int a, int b, int c) { } int main() { int a =1; int b=2; int b=3; product =inta*intb cout <<product<< endl; return 0 } cout << maxmul(1,2,3) << endl; cout << maxmul(3,1,2) << endl; cout << maxmul(3,2,1) << endl; } |
proxy20:I am very grateful thank you alot!............Please teach me! I really want to learn!! |
Otuabaroku:I was able to come about this for number 1 int maxmul(int a, int b, int c) { int min; min = a; if b<min min = b; if c<min min = c; return a*b*c/min; } Question 2 double inc(double x) { return x+1.0; |
Please help a beginner Question 1. Write a function that takes three integers as arguments and returns the product of the largest two. #include<iostream> int maxmul(int a, int b, int c) { } int main() { cout << maxmul(1,2,3) << endl; cout << maxmul(3,1,2) << endl; cout << maxmul(3,2,1) << endl; } Question 2. Write a function, inc, that increases the value of variable x by 1.0; #include<iostream> int main() { float x=10.0; cout << inc(x) << endl; } Question 3. Write a function that calculates and returns the average value of an array of doubles. The length of the array is provided as a second argument, n. double average_array(double data[], int n) { } Question 4. Write a function to subtract the average value of the entire array from each array element. You may make use of the average_array function from the first question. void subtract_average(double data[], int n) { } Question 5. Write a function to calculate the average value of a 100 by 100 array of ints. Return the average as a double. question 6. Write a program to dynamically allocate a n by m array of doubles. Both n and m should be read from the console. All elements of the array should be initialized to zero. All memory should be freed before the program exits. Question 7. The function trap() numerically integrates exp(x^2) in the interval x=[a,b]. n is the number of points to evaluate the function at. Add comments to the function and format it using C++ standards. #include<cmath> float exp_mx2(int x) {return(exp(x*x));} float trap(float a, float b, int n) { float h = (ba)/(n1); float value = 0.5*( f(a)+ f(b)); for(int k=2; k < n; k++){value+=f( a + h*(k1)); } value*=h;return(value); } |
Interesting 1) God 2)parent 3)Positive friends 4)Family 5)Goals 6)Vision 7)Dreams 9)Excellence 10)Heaven Even though there is no easy way out!!! |
No agent will tell you all this even if you pay them.information is key information is power!!! |
BeulahHephziba:how did you do that with master card? Did you use token? |
bigtt76:Many Canadian schools do have mentorship program that allows international students settle down fast enough. I doubt if the op arrived when the school was really active. He probably arrived either spring or summer. |
[quote author=bigtt76 post=35573786]Hahaha nice one but the school nor try shaaa. At least den for organize orientation for new foreign |
taiwokazx:Congratulations meaning you never submitted any soa a at all till they requested? Please list the document |
akanni:Oh I see.......I dont want to be seen by the family as someone who cares more for the husband to be than the family.......I hope you understand... So i want to at least help my sister to get here by any means possible.....she is currently a graduate student in Nigeria. I am looking for a way to bring her here before. So my husband to be can apply for his open work spousal permit without any rancour. Is there any way I can bring her her through visit, then she gets a job or apply for either another masters or phd during the visit period and stay? Please advise me....Thank you so much God bless you |
@taiwokazx @akanni : Thank you so much for the answers on my husband to be. However I still have one question. Is the process of inviting one's sister whose name was listed on the cic family form the same as the process of inviting one's spouse? What documents will be needed for someones sister? . what documents do i need to gather if i am inviting my sister? and what documents does my sister need needs to show cic? Thank you. |
Thank you so much for this reply. I don't have a job before I left Nigeria. But I have savings. Like 500 thousand is left in the account. I came to Canada early this year with funding paid from within canada (Scholarship)so I get paid 500 dollars biweekly after tax. This is my own profile. As for my husband to be,he earns about 80 thousand naira per month and he has a current balance of 1.2million. Now how much soa will be enough to proof to the embassy from his own part? I got here early this year. Do I have to be a permanent resident before I can invite him after our marriage? I am on a two years masters degree and I am yet to complete a semester . Please shed more light. Thank you taiwokazx: |
taiwokazx: |
Chumsyzynny I am in the same shoes can you please put me through? I posted this yesterday but no one answered. I am studying here I got here February and I want to go back and marry my fiance in nigeria by august What documents do I need to put together and what doc will be required from him because I want him to join me here after our wedding. |
Hello Everyone.....I am new here. I need information on how to bring my fiance here. We are actually planning to get married by september in Nigeria. I need information on the right documents to submit so i can start preparing from my end and he can start gathering documents too. Please help me. Thank you. |
1 2 (of 2 pages)