answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
musickatia
2 months ago
5

PHP is based on C rather than ______.

Computers and Technology
1 answer:
zubka84 [1K]2 months ago
8 0
2b2t. Explanation: 2b2t.
You might be interested in
Write a function so that the main program below can be replaced by the simpler code that calls function mph_and_minutes_to_miles
Natasha_Volkova [1026]

Answer:

def mph_and_minutes_to_miles(hours_traveled, miles_traveled):

   hours_traveled = minutes_traveled / 60

   miles_traveled = hours_traveled * miles_per_hour

   print('Miles: %f' % miles_traveled)

Explanation:

This function, written in Python, specifies two input parameters (hours_traveled, miles_traveled)

When executed, the main function prompts the user for necessary data, calls this method, and passes the inputs as arguments. Refer to the complete code and output that follows.

6 0
2 months ago
This program will calculate the rise in ocean levels over 5, 10, and 50 years, Part of the program has been written for you. The
maria [1035]

Answer:

Here is the C++ code:

#include <iostream> //for utilizing input and output functions

using namespace std; //for defining objects cin cout

int main(){ //beginning of the main function

     

   double risingLevel; //declares a variable of type double to store the rising level

   cin>>risingLevel; //captures the risingLevel input from the user

   

   cout<<"Level: "<<risingLevel<<endl; //outputs the rising level

   cout << "Years: 5, Rise: " << risingLevel * 5<<endl; //outputs the increase in ocean level over 5 years

   cout << "Years: 10, Rise: " << risingLevel * 10<<endl; //outputs the increase in ocean level over 10 years

   cout << "Years: 50, Rise: " << risingLevel * 50<<endl; //outputs the increase in ocean level over 50 years

}

Explanation:

The functioning of the program is as follows:

Supposing the user inputs a rising level of 2.1, then,

risingLevel = 2.1

At that point, the first print statement (cout):

cout<<"Level: "<<risingLevel<<endl; outputs the value of risingLevel to the display. Therefore, this line shows:

Level: 2.1

Next, the program proceeds to the following statement:

   cout << "Years: 5, Rise: " << risingLevel * 5<<endl;

which calculates the increase in ocean levels for a duration of 5 years using the equation:

risingLevel * 5 = 2.1 * 5 = 10.5

It subsequently shows the calculated result on the display. So, this line shows:

Years: 5, Rise: 10.5 Then, the control shifts to the next statement:

   cout << "Years: 10, Rise: " << risingLevel * 10<<endl;

that computes the rise in ocean levels over a span of 10 years using the equation:

risingLevel * 10 = 2.1 * 10 = 21

It then showcases the calculated figure on the output screen. Thus, the output is:

Years: 10, Rise: 21

Next, the program control progresses to this statement:

   cout << "Years: 50, Rise: " << risingLevel * 50<<endl;

which determines the rise in ocean levels for a duration of 50 years using the equation:

risingLevel * 50 = 2.1 * 50 = 105

This then displays the computed result on the output screen, leading to the output:

Years: 50, Rise: 105 Consequently, the complete output from the program will be:

Level: 2.1 Years: 5, Rise: 10.5

Years: 10, Rise: 21

Years: 50, Rise: 105

4 0
1 month ago
Grabar microphone audio icon_person click each item to hear a list of vocabulary words from the lesson. then, record yourself sa
Harlamova29_29 [1022]

This problem is a personal reflection and cannot be solved without discussing it after the individual provides input.

5 0
2 months ago
Read 2 more answers
Other questions:
  • Which of these is an example of the integrity principle that can ensure your data is accurate and untampered with?
    10·2 answers
  • To reduce costs and the environmental impact of commuting, your company decides to close a number of offices and to provide supp
    14·1 answer
  • Write a class for a Cat that is a subclass of Pet. In addition to a name and owner, a cat will have a breed and will say "meow"
    9·1 answer
  • The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simula
    15·1 answer
  • Write the execution steps if the input is a lion.
    11·1 answer
  • "If someone really wants to get at the information, it is not difficult if they can gain physical access to the computer or hard
    11·1 answer
  • When looking at security standard and compliance, which three (3) are characteristics of best practices, baselines and framework
    8·1 answer
  • Write a function searchBooks which returns ALL the books written by a specific author and return the list of the book titles as
    5·1 answer
  • assume that name is a variable of type stirng that has been assigned a value write an expression whose value is the last charact
    11·1 answer
  • Which of the following are recommended techniques for protecting computer files and data? Check all of the boxes that apply.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!