I am building an Android Studio code that is supposed to calculate the user's hours of work by the hourly pay he receives.
I need to convert the number of hours to numeric value - DEC, and also reverse.
Is there any library that can help with that?
I'm pretty new so I'll glad if it was simple and understandable.
thanx.
This question is a little vague, so I am going to make a lot of assumptions.
I am assuming you mean: If a guy make a 100 dollars at 10 dollars an hour, how many hours did he work?
I am assuming you would like to go the opposite way, stating if a guy works 10 hours at 10 dollars an hour, how much did he make?
To accomplish this goal, you really do not need to convert hours to a decimal scale. For the first assumption, you would use a formula like so:
Total/per hour.
This would look something like
float total = 100.00;
float pHour = 10.00;
float hours = total/pHour;
On the second assumption, you could just rearrange the terms to where you would have;
float total = hours*pHour
If this does not match what you are asking, there are plenty of websites that will show you conversion formulas. Implementing these into a java program are usually as straight forward as my example. Now if you want to make the values user inputted or update on a database or anything else, there are also plenty of options and tutorials on how to do so.
In addition, please give more detail and be extremely clear when writing your question. There are answers for everything.
Related
I'm currently doing my final year project. The end product of this project is to develop an Android application that can be used by an individual to track the amount of carbon gas emitted through daily activities and consumption. I'm having trouble in searching and understanding the method use for calculation. Anyone can explain?
You will most likely need to get the user to input their daily food waste, etc and use a formula to calculate it. A quick search on google brought me to https://www3.epa.gov/carbon-footprint-calculator/ which has an excelsheet with the various formulas you can download on that page.
As for how the formula or its constants are derived, I have no clue myself.
I am trying to build an app for college so the students can have their exams on it
but I am having problem the article questions which I can't compare the answer of the student and the answer of the model answer to check if it was right or wrong
so can anyone help me with that or tell me where to start ?
I have read about a lot of algorithms but I don't know where to begin.
I have found codes and function but I don't know how to use them like the following link click here
I think, you should generate average vector for each answer. Then, you can compare this vectors with lots of method. It's easily, vectoral distance or cosine similarity can be used. Each words will have a vector by using Word2Vec. After you must calculate average vectors.
Maybe, you want to look this project about grading open-ended questions
As part of my final project for a 1 year software development course i am required to implement a knn project which predicts the outcome of football matches in an android app.
I built a mysql database on an online hosting site (byethost) using predictors:
difference in average goals per game
diff in average points per game
diff in average goals conceded per game
outcome
My tutor recommended k should equal 100 and that a significant data set be constructed (over 1000 results)
From here on i am lost as to how i should approach the problem at hand. Can anyone give any further guidance as to how to tackle the problem.
All advice is welcomed.
This is too long for a comment.
K-NN could be used as part of the solution. However, it is an undirected data mining algorithm, meaning specifically that it doesn't generate expected outcomes. That means that K-NN is not appropriate as the only technique used for a final project that depends on prediction.
I am concerned about any year-long course that makes such a recommendation. The difference between directed and undirected algorithms is pretty fundamental.
For my project, ppl can give an answer to a certain question they get. I perform userAnswer = etUserAnswer.getText().toString().toLowerCase(); on it and then compare it to a value that is stored in the SQL database.
But I was thinking that it is quite annoying for a user if the answer is just almost correct but if he has written 'kk' in a word instead of 'ck'. Therefor I am trying to create a system which checks if the answer is more or less correct and then returns the result of this. I searched the net but don't seem to find anything on this subject. I also don't know if such a system has a certain name in english?
Or.. maybe somebody knows a good tutorial or a good way to get started?
I guess you're looking for the string distance, for which you could e.g. use the Levenshtein Distance. For alternative metrics, see this question
I am developing Android application for the company. They want me to create digital newspaper that would:
Display list of headlines for each category/subcategory
Will have 4-6 categories and 4-8 subcategories for each category
Display article with text and images,
Play podcast,
Save downloaded articles/headlines in db
They already have the web-service almost adopted for this app.
This app will be quite similar to: TechnologyReview or CNET News (but the article will be larger)
I have estimated this project for 160 hours of development. That doesn't include design but includes design implementation.
I would love to hear your opinion on this estimate. Do you think 160h is too short or too long? How much I should charge for this project or 1 hour of development(more or less of course)? I am living in London, UK
I need this estimation by the end of today so I will be really grateful for fast replies.
If you have a similar project, or some similar code files you can bunch together into a folder, you can simply run ProjectCodeMeter over it and get a ballpark cost estimation that will point you in the right direction.
Good luck!
The way to do estimates is to break down the project into each component and estimate each of those. Trying to ballpark one number is inevitably worse than ballparking a breakdown. This also helps you get better on each estimate in the future because you know which estimates made sense and which were wrong.