Computing assignements

Completado Publicado Jan 14, 2014 Pagado a la entrega
Completado Pagado a la entrega

First part

I want the user to enter a file name (of a .txt file), in which he will include in every line, the name of a molecule. The molecules can be in any order. When it reads H it must assign the value of mass equals 1, when it reads D it must assign the value of mass equals 2, for C the value of mass must be 12, for N the value of mass must be 14, for O the value of mass must be 16, for Cl the value of mass equals 35.5 and for Br 80.

So when it reads HBr, it must assign mass1 = 1, mass2 = 80 and then output rm (reduced mass) equal to m1*m2/(m1+m2).

Basically I want it to output a line in a new text file that will say : 'The reduced mass of (name of molecule as in the first file) is equals to (value of reduced mass)'. So if in a file, there are 10 names, in the new file it must output 10 lines. If a name is wrong, I want it to just say wrong molecule in that line and move onto the next one.

For example the .txt file should be

HCl

DCl

HBr

CO

NO

Second part (different code)

I want the user to be able to choose between 2 options by just entering 1 or 2. If they enter anything else apart from 1 or 2 (even if it is a letter or another number), I want to them to be redirected back, and be asked to choose between 1 or 2. If they choose 1, they can enter values from keyboard for k1, k2, T1 and T2 and if they choose 2 they can enter the name of a file which will already include these values. For example the file should be like

k1 = 2

k2 = 3

T1 = 300

T2 = 400

Ea = log(k2/k1)/(1/(R*T1)-1/(R*T2));

A = k1*exp(Ea/(R*T1));

Again I want them to choose if they want to output Ea and A on the screen or in a file. If they choose screen, just show the numbers. If they ask for a file, I want them to be able to enter a name for the file and then the file should be able to include the value of A or Ea in it. Each line should be like

Ea = 3000

A = 1000

I will give 20$ in total for these codes. Any other bid will be rejected and I want this project finished by tomorrow at 6pm UK time. Plus I would like you to send me the part of each code + some comments on it.

Programación en C Programación en C++

Nº del proyecto: #5320081

Sobre el proyecto

10 propuestas Proyecto remoto Activo Jan 14, 2014

Adjudicado a:

vano101

I am expert in C/C++ and I have good knowledge in chemistry in order to complete this project........

$20 USD en 1 día
(459 comentarios)
6.6

10 freelancers están ofertando un promedio de $19 por este trabajo

it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C/C++ and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com a Más

$20 USD en 0 días
(111 comentarios)
5.5
urmate

HI Contact me for an efficient, well documented and perfect solution and development of your project. I ensure quality work with always on time delivery of project and dedicated support and follow up. Thanks Farah Saif

$20 USD en 1 día
(42 comentarios)
4.7
VjCoder

Hi! I am expert in C++ assignments and you can confirm this by looking at my profile...So contact me if interested..Thanks!

$20 USD en 1 día
(3 comentarios)
3.9
michaelobusek

Hello, I have a good bit of experience doing small projects like this on Freelancer. Feel free to check out my profile to see some examples of my past work. I'm on US eastern time, but I would start this project t Más

$20 USD en 1 día
(2 comentarios)
2.5
zabolotniipavel

Hello. I have a great experience in working with students assignments in c/c++ and java. I have 100% completing rate and all of the my employees are satisfied with the quality and speed of my work. See my profile to be Más

$15 USD en 1 día
(2 comentarios)
1.4
s3rg1u

hey i am a student in computer science and i have experience developing c , c++ application, so i can do it for you

$15 USD en 1 día
(0 comentarios)
0.0
mkashif2012

i am hard core CPP C programmer, its very easy i will do it, do not forget my checking my portfolio, thanks :)

$20 USD en 1 día
(0 comentarios)
0.0
aitgallon

heyy.........message me asap...............will start working immeditely and deliver to you in required time with comments...............waiting for your reply..............thnx

$20 USD en 1 día
(0 comentarios)
0.0
asadrana91

hi this is Asad, i have a lot of experience in java and c++ programming , would surely do this project for you. wont disappoint you cheers :)

$15 USD en 1 día
(0 comentarios)
0.0
pasagadisriram

Hi, I am very good in C++ programming working as senior software engineer with an experience of 4 years. I will complete your work on time.

$20 USD en 1 día
(0 comentarios)
0.0