Similar Books


    No books found

Title
Chapter: 6 / Q: 22.6
Write a function per2 that receives one number as an input argument. The function has a persistent variable that sums the values passed to it. Here are the first two times the function is called:
Chapter: 6 / Q: 23.6
What would be the output from the following program? Think about it, write down your answer, and then type it in to verify
Chapter: 6 / Q: 24.6
Assume a matrix variable mat, as in the following example:
Chapter: 6 / Q: 25.6
The following script land calls functions to:
Chapter: 6 / Q: 26.6
The braking distance of a car depends on its speed as the brakes are applied and on the car’s braking efficiency. A formula for the braking distance is
Chapter: 6 / Q: 27.6
Write a menu-driven program to convert a time in seconds to other units (minutes, hours, and so on). The main script will loop to continue until the user chooses to exit
Chapter: 6 / Q: 28.6
Write a menu-driven program to investigate the constant π. Model it after the program that explores the constant e. Pi (π) is the ratio of a circle’s circumference to its diameter
Chapter: 6 / Q: 29.6
Write a program to calculate the position of a projectile at a given time t. For an initial velocity v0 and angle of departure θ0, the position is given by x and y coordinates as follows (note: the gravity constant g is 9.81m/s2 ):
Chapter: 7 / Q: 1.7
A file name is supposed to be in the form filename.ext. Write a function that will determine whether a string is in the form of a name followed by a dot followed by a three-character extension, or not. The function should return 1 for logical true if it is in that form, or 0 for false if not
Chapter: 7 / Q: 2.7
The following script calls a function getstr that prompts the user for a string, error-checking until the user enters something (the error would occur if the user just hits the Enter key without any other characters first)
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