Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
How to solve this problem using Javascript

In weather.dat there are data with meteorological surveys. The first column contains the day of the month, while the second and the third contain respectively the temperature maximum and minimum for that day. Write a program that, given the input file, returns the day with the smallest temperature range.

this is the link of a the data displayed in Atom:

The file that contains these data has a .dat extension, I have never used it so far so I don't even know how should I retrieve these data in my script! (should I rewrite them directly in the arrays?)

Please help!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In general files are separated into txt and binary files so extracting data is general for these two file types. File extensions are often used just for clarification.

How to extract data from a txt(.dat) file
Javascript file reader

As well idea for the given task:

  • Save days into a collection (optional)
  • Iterate over the collection of days
  • Calculate the temperature range for each day (Max - Min)
  • Find the min value
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda