Answered step by step
Verified Expert Solution
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 "?".
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started