Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question: 1 what function do you need to call to ask the user of the pr…

Question

question: 1
what function do you need to call to ask the user of the program to enter text?
○ readline
○ readin
○ text
○ console.log

question: 2
to ask the user of the program for a number, which function should you use?
○ readline
○ readint
○ readfloat
○ both readint and readfloat are for numbers.

Explanation:

Response
Question 1
Brief Explanations
  • readLine is used to read user - entered text (a line of input). readIn is not a standard function for reading text input in typical programming contexts. text is not a function for reading input. console.log is used to output text, not to read input.
Brief Explanations
  • readInt is used to read integer numbers, and readFloat is used to read floating - point numbers. Both of these functions are designed to handle different types of numerical input from the user. readLine is for reading text, not numbers.

Answer:

A. readLine

Question 2