Transcendent -5 Junior Poster in Training

I have a video meeting with a professor who possibility could give me an assistantship for graduate school and I need some advice. Any advice?

Find some way to motivate yourself and keep learning no matter what. One thing I learned is that you have to PROGRAM as much as you can. You can learn Java, JavaScript, IOS, Android, Ruby on rails, or python next. READ TOO!

Transcendent -5 Junior Poster in Training

What skill/languages do you need to be a data science?

Transcendent -5 Junior Poster in Training

I have a book that is using eclipse but I can't find the R.java file in eclipse

Transcendent -5 Junior Poster in Training

Where is the R file in Android Studio? How can I find it or generate it?
I have a book that is using eclipse but I want to use android studio. Plus I can't find the R.java file in eclipse either.

Transcendent -5 Junior Poster in Training

What languages do you need to learn to be a software engineer?
I can only think of c, c++, and java but do you need to be really really good at it?

Transcendent -5 Junior Poster in Training

What languages do you need to learn to be a web developer?
I know you have to learn html, javascript, php, and css but do you need to be pro at it?

string words;
    while(!infile.eof()){
                strVec.push_back(getline(infile, words));
            }

Errors:

Invalid arguments '
Candidates are:
void push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)
void push_back(std::basic_string<char,std::char_traits<char>,std::allocator<char>> &&)
'   readingSentences.cpp    /fStream    line 37 Semantic Error
no matching function for call to 'std::vector<std::basic_string<char> >::push_back(std::basic_istream<char>&)'  readingSentences.cpp    /fStream    line 37 C/C++ Problem

I did this:

 while(!infile.eof()){
            strVec.push_back(getline(infile));
        }
Heading Here

BUT GOT THOSE ERRORS:

Invalid arguments '
Candidates are:
std::basic_istream<#0,#1> & getline(std::basic_istream<#0,#1> &, std::basic_string<#0,#1,#2> &)
std::basic_istream<#0,#1> & getline(std::basic_istream<#0,#1> &, std::basic_string<#0,#1,#2> &, #0)
'   readingSentences.cpp    /fStream    line 36 Semantic Error
Invalid arguments '
Candidates are:
void push_back(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)
void push_back(std::basic_string<char,std::char_traits<char>,std::allocator<char>> &&)
'   readingSentences.cpp    /fStream    line 36 Semantic Error
no matching function for call to 'getline(std::ifstream&, int)' readingSentences.cpp    /fStream    line 36 C/C++ Problem
Transcendent -5 Junior Poster in Training

What IDE do you use for C++ development and what is the best in your opinion?

I'm using eclipse but sometimes I get errors when there shouldn't be errors. For example: I would have errors on eclipse but when i use code::block, everything works fine. I'm thinking of switching to visual studio express or code::block. What do you guys think.

is the name of the data file. the data is called "about.txt". How can i make it that about contain what's in the file?

Transcendent -5 Junior Poster in Training

This what I'm trying to do:

Type two or more lines of text into a file. Write a program to
    open the file, reading each word into a vector<string> object. Iterate
    over the vector, displaying it to cout. That done, sort the words using
    the sort() generic algorithm

But I'm stuck unfortunately.

#include <iostream>
#include<fstream>
#include<vector>
#include<cstdio>

using namespace std;

int main()
{
    ifstream infile("about.txt");

    if(!infile){
        cout<<"Sorry, file could not be open"<<endl;
    }else{
        vector<string> strVec;
       // string eachWord[];

        while(!infile.eof()){
            strVec.push_back(getline(about));
        }

    }

    return 0;
}

Error: 'about' was not declared in this scope

Transcendent -5 Junior Poster in Training

I can't seem to add my values from my function.

I keep greating NaN.

Here is the html code:

<!DOCTYPE html>
<!-- grocery.html
     A document for computeCost.js
     -->
<html lang = "en">
  <head> 
    <title>grocery.html</title>
    <meta charset = "utf-8" />
    <style type = "text/css">

      #column { display:inline; margin-bottom: 20px; margin-right: 20px; }  
      label,input {display: block; margin-bottom: 20px; margin-right: 20px;} 
      label { float: left; text-align: right;}
      input { margin-left:150px;}

      #items label{ margin-bottom: 20px; margin-right: 20px;} 
      #theCost{margin-bottom: 20px; margin-right: 20px; }
      #done { margin-bottom: 20px; margin-right: 20px;} 
      #done input {display:inline; margin-left: 140px;}  

      #item, #quantity {  margin-left: 40px;}   
     </style>

<!-- Script s -->
    <script type = "text/javascript"  src = "computeCost.js" >
    </script>

  </head>

      <body>
        <h2>Grocery List</h2>
            <form>

                <div id = "column">

                    <label id="item">Item</label>
                    <label id= "quantity">Quantity</label>

                </div>

                <div id= "items">
                    <label>Apple(59 cents each) </label>
                    <input type="text" name="apples" id="appleTotal" />
                    <label>Orange(49 cents each) </label> 
                    <input type="text" name="oranges" id="orangeTotal" />

                    <label>Banana(39 cents each) </label> 
                    <input type="text" name="bananas" id="bananaTotal" />
                </div>

                <div id = "done">

                    <!-- The submit and reset buttons -->
                        <input type = "button"  value = "Submit" onClick ="ComputeCost()"/> 
                        <input type = "reset"  value = "Clear" />

                </div>

                <div id = "taxes">

                    <label>Total before tax </label> 
                    <input type="text" name="beforeTax" id="beforeTaxTotal" onfocus = "this.blur()"/>

                    <label>Tax(7.25%) </label> 
                    <input type="text" name="taxes" id="TaxTotal" disabled ="disabled" />
                </div>

                <div id = "theCost">
                    <!-- Button for precomputation of the total cost -->
                    <label >Total after tax</label>
                    <input type ="text" size = "5" id = "totalCost" onfocus = "this.blur()" />
                </div>

            </form>
      </body>
</html>

Here is the JavaScript Code:
Is ...

Transcendent -5 Junior Poster in Training

676d3a4d6fae34888f383c4d66a4ab99 676d3a4d6fae34888f383c4d66a4ab99

<!DOCTYPE html>
<!-- grocery.html
     A document for computeCost.js
     -->
<html lang = "en">
  <head> 
    <title>grocery.html</title>
    <meta charset = "utf-8" />
    <style type = "text/css">
      label,input {display: block; margin-bottom: 20px; margin-right: 20px;} 
      label { float: left; width:200px; text-align: right;}
      input { margin-left:150px;}

      #items{ margin-bottom: 20px; margin-right: 20px;} 
      #theCost{margin-bottom: 20px; margin-right: 20px; }
      #done { margin-bottom: 20px; margin-right: 20px;} 
      #done input {display:inline; margin-left: 140px;}  
      #column { display:inline; }   
      #item, #quantity {  margin-left: 40px;}   
     </style>

<!-- Script s -->
    <script type = "text/javascript"  src = "computeCost.js" >
    </script>

  </head>

      <body>
        <h2>Grocery List</h2>
            <form>

                <div id = "column">

                    <label id="item">Item</label>
                    <label id= "quantity">Quantity</label>

                </div>

                <div id= "items">
                    <label>Apple(59 cents each) </label>
                    <input type="text" name="apples" id="appleTotal" />
                    <label>Orange(49 cents each) </label> 
                    <input type="text" name="oranges" id="orangeTotal" />

                    <label>Banana(39 cents each) </label> 
                    <input type="text" name="bananas" id="bananaTotal" />
                </div>

                <div id = "done">

                    <!-- The submit and reset buttons -->
                        <input type = "button"  value = "Submit" onClick ="ComputeCost()"/> 
                        <input type = "reset"  value = "Clear" />

                </div>

                <div id = "taxes">

                    <label>Total before tax </label> 
                    <input type="text" name="beforeTax" id="beforeTaxTotal" onfocus = "this.blur()"/>

                    <label>Tax(7.25%) </label> 
                    <input type="text" name="taxes" id="TaxTotal" disabled ="disabled" />
                </div>

                <div id = "theCost">
                    <!-- Button for precomputation of the total cost -->
                    <label >Total after tax</label>
                    <input type ="text" size = "5" id = "totalCost" onfocus = "this.blur()" />
                </div>

            </form>
      </body>
</html>
Transcendent -5 Junior Poster in Training

I have created a function in mysql but when I call it using: SELECT myFunction(3);

it says it does not exist. I checked my server and it is in there. I have also tried this also:

INSERT INTO myTable(num, num2) VALUES (15, (SELECT myFunction(15))); 

Is this right and how do I tell mysql the file does exist

Transcendent -5 Junior Poster in Training

I have created a procedure and a table. I was wondering how can I call my procedure in a sql file and insert the result into my table?

Thank You everyone!!!

Transcendent -5 Junior Poster in Training

How can you find out which version of GCC/GNU compiler your are using?

Transcendent -5 Junior Poster in Training

I want to start learning Android programming. I was wondering what is the best book for beginners on android programming?

I have an error for one of my other tables. Here is the code:

use myDatabase;

CREATE TABLE Page2(
UnderstandingConcepts                                   VARCHAR(30),
FailureToTakeTests                                      VARCHAR(30),
ListeningProblems                                       VARCHAR(30),
FailureToTurnInAssignment                               VARCHAR(30),
InadequateStudyHabit                                    VARCHAR(30),
WritingSkills                                           VARCHAR(30),
PoorPerformanceOnAssignment                             VARCHAR(30),
ExcessiveAbsences                                       VARCHAR(30),
LowTestScores                                           VARCHAR(30),
Other:                                                  VARCHAR(30),
IncreaseStudyTime                                       VARCHAR(30),
WorkOnAssignments                                       VARCHAR(30),
HelpWithAssignment                                      VARCHAR(30),
HelpWithSubjectMatterComprehensionUnderstanding         VARCHAR(50)
);

HERE IS THE ERRORS:

mysql> source Tables2.sql;
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':                                  VARCHAR(30),
IncreaseStudyTime                                                                               VARCHAR(30),
WorkOnAssignm' at line 11

I already checked and it does not exist

Transcendent -5 Junior Poster in Training

I'm trying to create a table but I keep getting errors:

Here are the errors:

mysql> source Tables3.sql;
Database changed
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 9

Here is the code:

use myDatabes;

CREATE TABLE Page3(
TeachingAndLearningCenter                               VARCHAR(30),
ConferenceWithInstructor                                VARCHAR(30),
ProblemSolvingSkills                                    VARCHAR(30),
ConferenceWithCounselor                                 VARCHAR(30),
ReadingSkills                                           VARCHAR(30),
WritingSkills                                           VARCHAR(30),
ComputationSkills                                       VARCHAR(30),
);
Transcendent -5 Junior Poster in Training

A parking garage charges a $2.00 minimum fee to park for up to three hours. After three hours, the garage charges an additional $0.50 per hour. However, the maximum fee will be $10.00. No one can park over 24 hours.

This is what I have:

public double calculate(double hours){
        if(hours <= 3)
            fee = 2.0; 
        else if(hours >= 3 & fee < 4)
             fee= (2.0 +( .50*hours));
        if(hours > 10)
            fee = 10.0;
        return fee;

    }
Transcendent -5 Junior Poster in Training

If I had this:

<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>

HOW DO I TAKE WHAT SOME TYPE INTO MYSQL. Do I create a table first ect. Examples pleases

Transcendent -5 Junior Poster in Training

I'm trying to install GCC 4.7.2 for windows and linux but I can't seem to do. Anybody know how I can do that. I have eclipse Juno

Transcendent -5 Junior Poster in Training

can someone give me a hint on how I can fix this function:

void computeOrder(int& spoolOrderAmount, int& spoolStockAmount, double shippingHandling = 10.00)

the third parameter is supposed to be a default argument.

this is the error:

default argument given for parameter 3 of 'void computeOrder(int&, int&, double)' [-fpermissive]

Transcendent -5 Junior Poster in Training

I'm trying to learn python and is looking for sites to learn it from so if you know a site please comment.

Some people was saying that it won't work if someone is using localhost but I'm not sure.

It's not from localhost. I'm using http://x10hosting.com/