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

Find the slope and the y-intercept of the line.y=-5/4x+5​
In which country do the people eat fish and seaweed using chopsticks?1 Greece2 India3 Japani pretty sure its 3
What is a science that deals with disease? Psychiatry Philosophy Pathology Physics​
Early drum brakes systems were mechanically operated by all of the following EXCEPT: Gears Links Levers Rod
(I WILL PUT BRAINLIEST)Yuri wants to assign a task to his co-worker. He clicked the Task button to enter the subject, start date, and end date for the task. The
What is the answer to 8d+0
Darcy gave her beauty technician a $4.40 tip. The tip was 5% of the cost of the procedure. Write an equation to find b, the cost of the procedure. If all percen
Please answer ASAP will give brainliest!!!!!!!
Which sentence correctly uses an appositive phrase? A: The novel about spies was a quick read, and very entertaining. B: The novel, a love story set in ancient
Convert 20 miles Into kilometres.