Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following code is in response to question #6 in chapter 6 of the book with the isbn# 978-0-13-401489-0. I dont know how to make

The following code is in response to question #6 in chapter 6 of the book with the isbn# 978-0-13-401489-0. I dont know how to make it so that when I put a question mark in for a variable, it prompts the user for the next variable. It currently works when I type "0" in where I should type a question mark. Here is my code followed by the output when I type "0", and the output when I type "?".image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

sloop.cs.ship.edu- PuTTY double calc h (double k, double a, double t2, double tl, double x, double h) double calc k (double h, double a, double t2, double tl, double x, double k) double calc a (doubie h, double k, double t2, double ti, double x, double *a): double calc t2 (double h, double k, double a, double ti, double x, double t2); double calcti (double h, double k, double a, double t2, double x, double ti) double calcx (double h, double k, double a, double t2, double tl, double "x) double print_results (double h, double k, double a, double t2, double ti, double x) int main (void) double h, k, a, tl, t2, x printf( Respond to the pzompes, enter? for unknown: AnRace of heat cransfer (watES)> scanf(, &h) printf ("Coetricient of thermal conductivity W-K) scanf ("1E&k) printf(Cross-sectional area of conductor: (W 2) >) scanf("f", &a); printf ("Temperature on one side K) ) scant (s1,&t2) printf ("Temperature on the other aide (K) scanf ("%lf", &t1); printf ("Thickness of conductor (m) scanf ("51C", &x); if (h=: ) { calc h(, a, t2,ti,x, &h) print_results (h, k, a, t2, ti, x) else if (k--) calc k(h, a, t2, ti, x, &k) print results (h, x, a, t2, ti, x); else if () calc a (h, k, t2, ti, x, &a) print results(h, k, a, t2, t1, x) else if(t2=:) { calc_t2 (h, k, a, ti, x, t2) print_results (h, k, a, t2, ti, x) else iI (t-o) calc ti(h, , a, t2, &tl) print results (h, k, a, t2, ti, x); else if(x--){ calc x(h, k, a, t2, ti, &x) print resulta (h, k, a, t2, ti, x) else( printf ("You didn' enter a question mark")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

=+Are you interested in working on global teams?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago