--Originally published at Solving Problems with Programming
PICTURE OF ACTOR
So in this eight week class I started with doing the survey of mid semester where I gave ideas in order to improve this course and this and this WSQ07. I started reviewing in creating and calling functions in C++. #Mastery06, #Mastery07, #Mastery16 Use of recursion for repetitive algorithms, #Mastery17 When to use what type of repetition in a program and #Mastery18 Creation and use of Arrays/ Vectors in C++.
What I did for this numeric program is solving the problem to the user by writing a program that asks the user for 10 numbers (floating point). Store those numbers in a list. Show to the user the total, average and standard deviation of those numbers.Futhermore, Once you have this working, change it so that users keep giving you values until they signal “no more values”. How would you implement this and in particular for the C++ group, how to you deal with an unknown size to your array during compilation?
The quantity of the value depends of the quantity of the type float variable that has only 32 bits of leght, therefore you need a new library in order to increase the value of numbers called Biginteger.hh but I am going to add it in the next WSQ08 called Yo soy 196. Next, to deal with an unknown size of my array during compilation we need to ask the user the number of that size and save it in a variable n.
The resources I need it to solve this program are here:
ken bauer
Similar code made by Eduardo Torres
C Programming Tutorial: Functions (Call By Value, Reference,passing Arrays to function)
The following photograph shows the solution to this problem:
Picture of author
So at first I wrote the same structure of the program just did the same as
Continue reading "#WSQ07 Lists 03/03/17 and WSQ07.cpp"