//Q18: What does the "%[^\n]s" in scanf_s do? scanf_s("%[^\n]s", provider.name, MAX_STR); provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "\0", 0); determine WeightCategory(&provider.patient[0]); calculateBMI(&provider.patient[0]); provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1}; calculateBMI(&provider.patient[1]); determineWeightCategory(&provider.patient[1]);
//Q18: What does the "%[^\n]s" in scanf_s do? scanf_s("%[^\n]s", provider.name, MAX_STR); provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "\0", 0); determine WeightCategory(&provider.patient[0]); calculateBMI(&provider.patient[0]); provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1}; calculateBMI(&provider.patient[1]); determineWeightCategory(&provider.patient[1]);
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 3.10CP
Related questions
Question
![printf("Enter the name of the health care provider: ");
//Q18: What does the "%[^\n]s" in scanf_s do?
scanf_s("%[^\n]s", provider.name, MAX_STR);
provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "10", 0);
determineWeightCategory(&provider.patient[0]);
calculateBMI(&provider.patient[0]);
provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1};
calculateBMI(&provider.patient[1]);
determineWeightCategory(&provider.patient[1]);](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd85fd121-1941-4b53-909f-1e282d25187d%2F018d1ce9-e99b-4234-89f7-b054773c00b7%2F3jk76j9_processed.jpeg&w=3840&q=75)
Transcribed Image Text:printf("Enter the name of the health care provider: ");
//Q18: What does the "%[^\n]s" in scanf_s do?
scanf_s("%[^\n]s", provider.name, MAX_STR);
provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "10", 0);
determineWeightCategory(&provider.patient[0]);
calculateBMI(&provider.patient[0]);
provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1};
calculateBMI(&provider.patient[1]);
determineWeightCategory(&provider.patient[1]);
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage