irotsenmar 0 Newbie Poster

Can someone assist me on creating this program? Thank you.


create a program that will allow you to calculate the following:


1) The average gas mileage of a car
2) The range of a given car
3) The cost of a given trip


1) Create a Car.py file that will include the following methods:
a. calcMileage(range,gasUsed)
b. range(range,gasUsed)
c. cost(tripLength,averageMPG,priceOfGas)
2) Create an EnterInfo.py file that will import the Car.py file and prompt the user to enter the information and perform the given task. This can be modeled from the previous assignment.
3) You will have to include try and exception blocks that will allow users to enter floats and handle any bad user input.

irotsenmar 0 Newbie Poster

I seem to fall in to this category of students. I am currently in an IT program at my university and I decided to stay away from Programming also. I can relate to this because in my opinion many people try to stay away from the programming courses because it is tedious work. Taking a whole bunch of pre-requisite math courses ranging from pre clac to calc 3 doesn't help much either. But in any case as a growing IT professional I know that you cant get away from programming because even the IT major requires you to take java and database courses. It is good to know all sides to computers if you want to advance in your career

Hi,

I have been hearing a lot from an IT student friend of mine about the increasing hatred towards programming of any kind taught at the university and efforts to look for something else in the IT field itself as a career option. Can any one who is experienced enough tell me as why this is a shocking reality? Why universities are failing to encourage students to become professional programmers? If an IT student is not interested in being a programmer what else are the options? What is the most preferred option of all in terms of what you have seen in your professional career? Thanks.

irotsenmar 0 Newbie Poster

i searched the source code of all the pages and couldn't find ini_set

irotsenmar 0 Newbie Poster

I installed a help desk software that is coded in PHP. It has a feature that enables it to send out email when someone submits a troubleshooting ticket. I am unable to get the email function to work. The software is running on a remote server at a hosting company. How would I be able to get this feature to work without editing the php.ini file. (the hosting company doesnt allow modifications to the php.ini file since its in a shared environment) Thank you.

I am getting this error:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in d:\inetpub\redpaladin\support\admin\includes\mailtest.php on line 67

irotsenmar 0 Newbie Poster

do u know any web based case tracking systems? php or coldfusion based. we need to be able to log in through the internet to view the cases that have been submitted. Thanks

irotsenmar 0 Newbie Poster

I would like to know if anyone has any suggestions for building a case tracking system or getting one thats already made. For example, we want our clients to be able to log in to a site and submit cases with screenshots or attachments so that we can troubleshoot their computer problems more efficient. Thank you.

irotsenmar 0 Newbie Poster

can someone tell me what is the best php software to install on IIS with php5 and mysql to make blogs and classifieds? Thanks

irotsenmar 0 Newbie Poster

will ghost create an image of the hard drive with all the programs already loaded on there or just a backup of the files? and do i have to go around to each PC to install or can i deploy remotely?

irotsenmar 0 Newbie Poster

How can I create an image or i guess a backup of XP with all the software i want already loaded on there and then deploy on many computers within a company?

Thanks

irotsenmar 0 Newbie Poster

nevermind got the solution right here:

There are two steps to configure ColdFusion MX to use MySQL 5:

  • Including the MySQL Connector J in the ColdFusion server classpath
  • Using the “Other” driver type from the drop down list to specify the driver class com.mysql.jdbc.Driver

Steps to Configure ColdFusion MX for MySQL

  1. Download the MySQL Connector J JDBC driver
  2. Make the JDBC driver available to CFMX through the classpath by saving mysql-connector-java-3.0-bin.jar in either $CFMX_HOME/runtime/servers/lib/ for CFMX Server Configuration or $JRUN_HOME/servers/lib/ for CFMX on JRun Configuration. This makes the driver available to all JRun server instances.
  3. Restart CFMX server
  4. Add new datasource using the driver option Other (Not the MySQL driver!)
  5. Add the JDBC URL: jdbc:mysql://[host]:[port]/[database]
  6. Add the Driver Class: com.mysql.jdbc.Driver
  7. Complete username/password, and adjust other dsn settings if needed.
  8. Submit datasource for verification
irotsenmar 0 Newbie Poster

When I try to add a new data source from MySQL I get this error:

Connection verification failed for data source: entry
java.sql.SQLException: Invalid authorization specification: Access denied for user 'root'@'localhost' (using password: NO)
The root cause was that: java.sql.SQLException: Invalid authorization specification: Access denied for user 'root'@'localhost' (using password: NO)

root has all global priveleges
when adding the data source i use the username: root and password is blank
any ideas?

but when i enter in the password for MySQL i get this error when adding the data source:

Connection verification failed for data source: entry
java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
The root cause was that: java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

irotsenmar 0 Newbie Poster

i get a warning when i start phpmyadmin

"The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results."

any ideas? thx

i have mysql server and php 5 installed