evaluation of the published study you selected
evaluation of the published study you selected
RESEARCH: FINAL PAPER ASSIGNMENT INSTRUCTIONS
RESEARCH: FINAL PAPER ASSIGNMENT INSTRUCTIONS
[Solved] This program shows how the toupper and tolower functions can be // applied in a C++ program
This program shows how the toupper and tolower functions can be
// applied in a C++ program
// PLACE YOUR NAME HERE
#include <iostream>
#include <cctype>
#include <iomanip>
using namespace std;
int main()
{
int week, total, dollars;
float average;
char choice;
Lesson 10A 191
cout << showpoint << fixed << setprecision(2);
do
{
total = 0;
for(week = 1; week <= 4; week++)
{
cout << “How much (to the nearest dollar) did you”
<< ” spend on food during week ” << week
<< ” ?:” << endl;
cin >> dollars;
total = total + dollars;
}
average = total / 4.0;
cout << “Your weekly food bill over the chosen month is $”
<< average << endl << endl;
do
{
cout << “Would you like to find the average for ”
<< “another month?”;
cout << endl << “Enter Y or N” << endl;
cin >> choice;
} while(toupper(choice) != ‘Y’ && toupper(choice) != ‘N’);
} while (toupper(choice) == ‘Y’);
return 0;
}
Exercise 1: Run the program several times with various inputs.
Exercise 2: Notice the following do-while loop which appears near the end of the program:
do
{
cout << “Would you like to find the average for another month?”;
cout << endl << “Enter Y or N” << endl;
cin >> choice;
} while(toupper(choice) != ‘Y’ && toupper(choice) != ‘N’);
How would the execution of the program be different if we removed this loop? Try removing the loop but leave the following lines in the program:
cout << “Would you like to find the average for another month?”;
cout << endl << “Enter Y or N” << endl;
cin >> choice;
Record what happens when you run the new version of the program.
Exercise 3: Alter program case_convert.cpp so that it performs the same task but uses tolower rather than toupper.
Expert Answer
Answer to This program shows how the toupper and tolower functions can be
// applied in a C++ program….
[Solved] A 10.0 mL of 0.20 M polyprotic acid (HnA) is titrated with a standard solution of 0.200 M NaOH
A 10.0 mL of 0.20 M polyprotic acid (HnA) is titrated with a standard solution of 0.200 M NaOH. The fractional distribution is shown below.
(a) Calculate the pH of the solution when 0.0, 5.0, 10.0, 15.0, 20.0, and 30.0 ml of NaOH are
(b) Draw a titration curve by using the calculated pH values. (c) Calculate the concentration of all the species in solution when the solution pH is 6.0 added. 1.2 c 08 06 04 02 0 2346 8 10 14 12 10 2 10 15 20 25 30 35 V, mL NaOH added
Expert Answer
Answer to A 10.0 mL of 0.20 M polyprotic acid (HnA) is titrated with a standard solution of 0.200 M NaOH….
[Solved]Iron is one of the most abundant minerals on earth. It is mostly found naturally as magnetite, Fe3O4
Iron is one of the most abundant minerals on earth. It is mostly found naturally as magnetite, Fe3O4, and is used to make a wide range of ferrous alloys with a wide spectrum of applications. The table below gives the chemical composition of some ferrous alloys. Study the table and answer the questions that follow.
Expert Answer
Answer to Iron is one of the most abundant minerals on earth. It is mostly found naturally as magnetite, Fe3O4….
[Solved] Your nursing supervisor likes the topic (DEMENTIA) you chose for the in-service presentation and wants you to start researching
Your nursing supervisor likes the topic (DEMENTIA) you chose for the in-service presentation and wants you to start researching! To make sure you get the project on the right track, your supervisor has asked you to do the following:
1. Using the Rasmussen Library, identify at least 2 resources pertaining to your topic.
2. Prepare an annotated bibliography for the resources you identified. Each entry will include:
a. the full APA formatted reference
b. an annotation consisting of the following elements:
– 2 to 4 sentences to summarize the main idea(s) of the source
– 1 or 2 sentences to assess and evaluate the source
– 1 or 2 sentences to reflect on the source.
Expert Answer
Answer to Your nursing supervisor likes the topic (DEMENTIA) you chose for the in-service presentation and wants you to start researching….
[Solved]Write a program that first prompts the user to enter the path and name of an input file, followed by a search string
Write a program that first prompts the user to enter the path and name of an input file, followed by a search string. The file should be read using the file.readlines() method. The input file contains a list of strings, each on a separate line. Your program should output all strings from the list that contain the search string. If no matches are found, display the following message: No matches were found. The search should be case insensitive.”
Note – input1.txt is
Wilderness
Aspiration
Transcript
Philosophy
Classified
Federation
Graduation
Zoologists
Millennium
Quadratics
Example Runs
Expert Answer
Answer to Write a program that first prompts the user to enter the path and name of an input file, followed by a search string…..
[Solved] Write a program that prompts the user to enter two integers user_num (dividend) and div_num (divisor) as input
Write a program that prompts the user to enter two integers user_num (dividend) and div_num (divisor) as input, and outputs the quotient (user_num divided by div_num – use the integer division operator). Use a try block to perform all the statements. Use an except block to catch any ZeroDivisionError and output an exception message. Use another except block to catch any ValueError caused by invalid input and output an exception message.
Note: ZeroDivisionError is thrown when a division by zero happens. ValueError is thrown when a user enters a value of different data type than what is defined in the program.”
Example program runs:
Expert Answer
Answer to Write a program that prompts the user to enter two integers user_num (dividend) and div_num (divisor) as input…..