#WSQ16 I had to search too much info to get to understand this, but well here it is. I´m like crazy because I have a lot of stuff left to do and almost any time left.. but anyway https://github.com/ricardonewton/TC101/blob/master/cars
#WSQ16 I had to search too much info to get to understand this, but well here it is. I´m like crazy because I have a lot of stuff left to do and almost any time left.. but anyway https://github.com/ricardonewton/TC101/blob/master/cars
#include <iostream> #include <string> #include <fstream> #include <sstream> using namespace std; int main (){ string Read; string mid_price; string city_mpg; string high_mpg; int n = 57; float city; float avg_city = 0.0; float high; float avg_high = 0.0; float price; float avg_price = 0.0; ifstream read_file(“93cars.dat.txt”); if (read_file.is_open()){ for (int i =0; i < 93; […]
Second to last WSQ… starting to feel the need for coffee now. It wasn’t so hard after doing the Quiz 11, it was only a matter of looking for the right functions to use and put the code and the text file in the same directory. Which for me means, at the home folder since … Continue reading WSQ 16 →
The final dash! So currently there are a little over 12 hours left before everything closes down and all hell breaks lose because of the finals. As good a time as any to dedicate that time to finishing everything there is to finish. From here on out, I will be doing every mastery that’s needed … Continue reading WSQ 16 →
We are just ending with all the stuff and I need to admit Im really stressed about it; Here is my code that I wouldn’t finished it if @samantha @montse wouldnt helped me. THANKS !! https://github.com/fernandazm/WSQS/blob/master/WSQ16
For this WSQ I used the book to know how to read files. Here’s the working program. Here’s the source code and my GitHub repository.
Hi, this is my last WSQ, i´m not doing because i´m lazy. This WSQ was hard for me because i had no idea how to read a file properly by lines. Frida´s blog helped me a lot to figure this out, check it on this link: http://tc1014.blogspot.mx/2015/11/cars.html
The link to my code on Github is this: https://github.com/Jocapear/TC1014/blob/master/WSQ16.py
Here is my code https://github.com/OctavioIRG/TC1017/blob/master/WSQ-s/run.cpp Well I got helped and I read Carlo’s solution. The thing is that my answer should work but i had a little problem with the way my number are added.
This WSQ was a little difficult because there were some new stuff you had to find out how to do and some libraries to use and the functions you use: <fstream>(1) ifstream file(example): It opens and reads the file. file.close():… Continue Reading →