C++

// Program: name of program

// Author: your name

// Date Written: date you began writing the program

/* Abstract: Brief description of the program */

Include in-line comments in the body of your program.

You can convert temperature from degrees Celsius to degrees Fahrenheit by multiplying by 9/5 and adding 32. Write a C++ program that allows the user to enter a floating-point number representing degrees Celsius, and then displays the corresponding degrees Fahrenheit.

Algorithm (IPO chart, pseudocode or flowchart, desk check test data)

C++ program.

Screen shot of running program using test data from

---------------------------------------------------

No 2

At the top of every program program file you create, put the following as comments:

// Program: name of program

// Author: your name

// Date Written: date you began writing the program

/* Abstract: Brief description of the program */

Include in-line comments in the body of your program.

Write a working C++ program that calculates the values of the variables x, and y using the following formulas.

x = (b2- 4ac) / 2a

y = (-b + (b2- 4ac)) / 2a

For simplicity, assume a, b, and c are integers.

Prompt the user for initial values for a, b and c.
Accept values from user for a, b and c.
Choose appropriate data type for x and y.
Calculates the values for x and y based on user input for a, b and c and using the formulas provided.
Display the values of x and y to the user.

  1. 👍 0
  2. 👎 0
  3. 👁 745

Respond to this Question

First Name

Your Response

Similar Questions

  1. Maths

    Principal - 6000 Rate - 5% Effective Date - May 15 Maturity Date - November 1 Partial Payment Amount - $1500 Partial Payment Date -August 15 Also Answer the following questions: 1. NUMBER OF DAYS BETWEEN EFFECTIVE DATE AND PARTIAL

  2. Mathematics

    An invoice is dated January 24 with terms 2/10 – 20x. Find the final discount date and the net payment date. The net payment date is 20 days after the final discount date. The final discount date is 2/23. The net payment date is

  3. c++ programming

    Write a program that determines the day number (1 to 366) in a year for a date that is provided as input data. As an example, January 1, 2011 is day 1. December 31, 2010 is a day 365. December 31, 2012 is day 366, since 2012 is a

  4. computers

    . Explain the following unexpected result: $ whereis date date: /bin/date ... $ echo $PATH .:/usr/local/bin:/usr/bin:/bin $ cat > date echo "This is my own version of date." $ ./date Fri May 22 11:45:49 PDT 2009

  1. math

    A partial payment is made on the date indicated. Find the balance due on the note on the date of maturity: Principal: $108,000 Maturity date: November 1 Rate: 14% Partial payment. $27,000 on August 15 Effective date: February 15th

  2. Science

    Cottage roof timber from Ireland. Date: 906 ± 35 years. What is the BP Date?

  3. Educational Technology

    Of the following websites, the least trustworthy is the one that: A: Has the author's name and the current year as the date the site was posted. B: Has in-depth information and has a .gov URL. C: Has photographs and a copyright

  4. math

    A partial payment is made on the date(s) indicated. Use the United States Rule to determine the balance due on the note at the date of maturity. (The Effective Date is the date the note was written.) Assume the year is not a leap

  1. Business math

    An invoice is dated January 25 with terms 2/10 -20x. Find the final discount date and the net payment date. The net payment date is 20 days after the final discount date.

  2. English

    1. A research paper has which of the following aspects in common with an essay? A. a title page B. a works cited list C. body paragraphs with topic sentences D. personal experience as a primary source 2. When citing all sources,

  3. Math

    A survey about the student government program at a school finds that of 245 students: • 218 students like the program • 27 students think the program is unnecessary If a circle graph were made from this data, what would the

  4. Child day care management

    Which of the following best describes why you need to establish goals for your program? A. Goals will let parents know the philosophy of your program. B. Goals tell the community how much they can gain from your program. C. Goals

You can view more similar questions or ask a new question.