Computer science

posted by .

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that
outputs the result of the formula f = (a b)(x y) using a
single printf() function.

B. Create a program that uses the same formula above to output
the result; this time, however, prompt the user for the values
a, b, x, and y. Use appropriate variable names and naming
conventions.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. computer science 104

    Create a method areaOfaTrapeziod when given a, b, and h (all doubles), will return the area (double) of a trapezoid. Use the equation pictured below In the code, i should 1. Create the prototype for the method 2. create the method …
  2. programming

    Given a = 5, b=1, x=10, and y =5, create aprogram that outputs the result of the formula f = (a b)(x y) using a single printf() function. B> Create a program that uses the same formula above to output the result; this time however, …
  3. Computer (Programming Logic and Design)

    How do i Create a program that determine the shipping cost for an order based on the following table: From To Price  $0.00 $19.00 $2.95  $20.00 $49.99 $3.95  $50.00 $74.99 $4.95  $75.00 $1000.00 $Free I don't understand how to …
  4. Computer Science (Programming Logic And Design)

    Create a program that outputs a letter grade for a student based on the following table:  From To Grade  90 100 A  80 89 B  70 79 C  0 69 F  I don't understand how to do this. Would you mind helping me get the answer to this …
  5. Computer Science (Programming Logic And Design)

    Create a program that outputs a letter grade for a student based on the following table:  From To Grade  90 100 A  80 89 B  70 79 C  0 69 F  I don't understand how to do this. Would you mind helping me get the answer to this …
  6. computer

    create a QBASIC program using DO WHILE LOOP
  7. computers

    create a program that will input two quizzes and will compute for sum,difference,product,quotient and average using printf and scanf. create your own design.
  8. Programming logic and design

    Using python write a program that does the following: •Create the logic for a program that calculates and displays the amount of money you would have if you invested $3000 at 2.65 percent interest for one year. •Create a separate …
  9. computer science

    Create a program that uses the preceding formula and displays the result, but this time, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.
  10. computer programing

    okay I need a little help here on next program this what it say for first one which I have done. Create a counting program that counts backward from 100 to 1 in increments of 10. #include < stdio.h > int main () { Int i; while …

More Similar Questions