程序代写代做代考 Programming Assignment #5: Strings

Programming Assignment #5: Strings
Due on July 15th, 11:59pm
Write one project for each of the three problems below in a Visual Studio solution and submit using OSBLE+ plugin. Don¡¯t forget to use a comment box to write your name, date and assignment number. Use comments freely to explain what your code does. Follow the programming style guidelines discussed in class and the pdf posted on OBSLE+. The style will be graded based on the guidelines.
Problem 1: Reversing a sentence
This is the first interview question I have had.
Solve question 7 from chapter 8 of your textbook. The question is shown below:
Problem 2: What is the plural form of …
Solve question 5 from chapter 8 of your textbook. The question is shown below:
You are asked to use the concatenation functions from string.h library for parts (a) and (b) of this question.

Problem 3: Drug Catalog
Solve problem 10 from chapter 8 of your textbook. The problem is shown below:
data file:
amibodarone Dose 1: 300 mg IV push;Dose 2: 150 mg IV push;Infusion 1: 1 mg/min for 6 hrs;Infusion 2: 0.5 mg/min for 18 hrs;
adenosine Dose 1: 6 mg rapid IV push;Dose 2: 12 mg rapid IV push; atropine 0.5 mg IV push every 3-5 min;max 3 mg;
dopamine Infusion 2-10 mcg/kg/min;
epinephrine 1 mg IV push every 3-5 min;Infusion: 2-10 mcg/min magnesium Infustion: 1-2g over 5 to 20 min;
vasopressin 40 units IV push;

Problem 4: Capacity of a resistor
Solve question 2 from chapter 8 of your textbook. The question reads:

Grading
Problem 1 is worth 20 points. 5 points for reading the line, 5 points for printing and 10 points for reversing the line.
Problem 2 is worth 20 points. 5 points for correct detection of each case (a), (b) or (c), 5 points for each case for correct manipulation of the string. (cases (a) and (b) must be solved using functions from string.h library).
Problem 3 is worth 25 points. 5 points for reading the file, 5 points for separating the drug name from its instruction, 10 points for correctly manipulating the instructions (replacing ; with \n) and 5 points for reading the query, matching with the drug names and printing the instructions.
Problem 4 is worth 25 points. 5 points for correctly prompting and scanning the three input band colors, 10 points for the helper search function, 5 points for correct calculation of the resistor¡¯s capacity based on the returned values from the search function, and 5 points for the loop for repeated execution.
Following a proper programming style is worth 10 points.