jaygad
jaygad jaygad
  • 12-04-2022
  • Computers and Technology
contestada

Wtite a command to convert the points variable to any numerical data type (integer or float)

Respuesta :

scientificdiscoverer scientificdiscoverer
  • 03-06-2022

I am not sure what programming language that you are programming for, but I will assume Python/Java/C++.

Python:

points = "200"

points_Integer = int(points)

Java:

String points = "200"

int points_Integer = Integer.parseInt(points)

C++:

string points = "200";

int points_integer;

points_integer = (int) points;

I hope that this helps!

Answer Link
tahoorbajwa tahoorbajwa
  • 31-07-2022
String points = 200 for Java
Answer Link

Otras preguntas

What was passed by Congress to help the nation pull out of the Great Depression?
Do you think the farmers had problems with industrialization (factories, machines)? Why or Why not?
HELP ME PLZ AND THANKS I WILL MARK YOU AS BRAINLIEST!!!
ADN là gì ?hihihihihihihihihi
match each statement to the correct step in how a conflict develops
A manufacturer of cell phone screens is concerned because 12 percent of the screens manufactured using a previous process were rejected at the final inspection
what is the definition of risk ?
Sean las proposiciones p : "Cinco es mayor que diez" y q : "Dos más dos son cuatro". Escriba en lenguaje natural la proposición ∼p∧q
To find the quotient of 3 divided by 6/1
Having now studied the history and development of art styles, you will choose your favorite art style as well as your favorite artist and present information ab