Similar Books


    No books found

Title
Chapter: 2 / Q: 45.2
Generate a vector of 20 random integers, each in the range from 50 to 100. Create a variable evens that stores all of the even numbers from the vector, and a variable odds that stores the odd numbers
Chapter: 2 / Q: 46.2
Assume that the function dif does not exist. Write your own expression(s) to accomplish the same thing for a vector
Chapter: 2 / Q: 47.2
Create a vector variable vec; it can have any length. Then, write assignment statements that would store the first half of the vector in one variable and the second half in another
Chapter: 3 / Q: 3.3
Write a statement that prompts the user for his/her favorite number
Chapter: 3 / Q: 3.4
Write a statement that prompts the user for his/her name
Chapter: 3 / Q: 3.5
Write an input statement that will prompt the user for a real number, and store it in a variable. Then, use the fprintf function to print the value of this variable using 2 decimal places
Chapter: 3 / Q: 3.6
Experiment, in the Command Window, with using the fprintf function for real numbers. Make a note of what happens for each. Use fprintf to print the real number 12345.6789
Chapter: 3 / Q: 3.7
Experiment, in the Command Window, with using the fprintf function for integers. Make a note of what happens for each. Use fprintf to print the integer 12345
Chapter: 3 / Q: 3.8
When would you use disp instead of fprintf? When would you use fprintf instead of disp?
Chapter: 3 / Q: 3.9
Write a script called echostring that will prompt the user for a string, and will echo print the string in quotes:
total questions: 459

Questions

459

Views

A PHP Error was encountered

Severity: Warning

Message: Undefined property: stdClass::$TotalViews

Filename: books/book.php

Line Number: 411

Best Answers

299

Points

5