The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hello, I have been trying to code this program and i can't find the proper answer. The assignment is due in an hour and i cannot turn it in late. Please help me. Thank you very much!!
CIS 1111 Programming Topic 6 – Calculating Shipping Charges
(20 Points) Assignment Description:
In this assignment, you will develop both a C++ program and a Raptor program that calculates shipping charges
for a freight shipping company. Write a program that asks the user to enter the weight of the package and the
distance it is to be shipped, and then displays the shipping charges. Do not accept any packages that are over
50 pounds. Also, do not accept any packages that are to be shipped a distance of less than 10 miles and over
3,000 miles.
Below is the chart to use to calculate the shipping charges. Freight Shipping Company Rates
______________________________________________________________
Weight of Package (pounds)
Rate per 500 miles shipped
_______________________________________________________________
5 pounds or less
$1.10
Over 5 pounds but not more than 15 $2.20
Over 15 pounds but not more than 30 $3.70
Over 30 pounds but not more than 50 $4.80
_______________________________________________________________
NOTICE: We do not ship packages over 50 pounds
We do not ship less than 10 miles or more than 3,000 miles Requirements for your program:
1. The output must be labeled and easy to read as shown in the sample output screens included in this document.
2. When the packages are over 50 pounds or the distance is less than 10 miles and more than 3,000 then flag the
input and display a description error message.
3. Use a logical operator when testing the distance to be shipped.
4. Use an if-else statement when determining the rate per 500 miles to be shipped given the weight.
5. Calculate the number of segments. Round the segments up to next whole number. Hint user modulus.
6. Multiply the number of segments * the shipping rate.
7. Your program must be documented with the following:
a. // Name
b. // Date
c. // Program Name
d. // Description
8. Code and execute the Raptor program 1 Sample outputs: Submit:
Zipped folder named LastNameFirstNameCIS1111NameOfAssignment which contains:
1. Your .cpp file
2. Screen shots of your code and output
3. Your Raptor program and screen shots Grading Guidelines for This Assignment
Range – Low End
(Did not do or did
very little effort) Range – High End
(Used correctly and spent
time/effort on programming) Names of variables are meaningful and the
program comments self-document the program 0 2 Met all stated requirements including developing
the Raptor program 0 10 Output is correct given the input, and the output
is correctly formatted 0 4 Program compiles and executes without any
runtime, syntax, or logic errors 0 3 The zipped project folder that includes the C++
.cpp source files and screens shots of the code
and console, and Raptor program and screen
shots is uploaded to drop box. 0 1 Total Points Possible 0 20 2
The Doctor-Go-Round
JAN. 24, 2014
Diagnosis By LISA SANDERS, M.D.
PUZZLING TEST RESULTS Illustration by Monsieur Cabinet
“Are you sure you took the pill I gave you last night?” The endocrinologist’s voice through the phone
sounded a little sharp to the young woman, tinged with a hint of accusation. “Of course I took it,”
she said, trying to keep her response clear of irritation. “Well, the results are crazy,” he told her.
We need to do more testing to really understand what you have. Whatever it took, she told him, to
find out what was wrong with her. She was only 29 — too young, really, to have seen so many
doctors and had so many tests.
IT STARTED WITH A PULLED MUSCLE Seven months earlier, the woman injured her left leg after starting a Pilates class. She’d been an
athlete in high school and a traveling-club volleyball player, so she knew the ache of a pulled groin.
But this felt worse — a lot worse. She went to see an orthopedic surgeon in her Los Angeles
neighborhood. He told her she had a Grade 2 sprain in her groin muscles and sent her for physical
therapy. Several weeks later, her leg still hurt. Then her left foot and ankle swelled. After that she
would see a carousel of doctors who never seemed to find any answers, just more problems.
BLOOD PRESSURE RISING She went to her primary-care doctor. He wasn’t concerned about her swollen foot and told her to
take it easy and use compression stockings. He was more focused on her blood pressure, which was
high. Let’s keep an eye on that, he told her.
Still searching for a cause of her swollen foot and ankle, the patient returned to an endocrinologist
she saw a couple of years earlier for irregular periods. He ordered an ultrasound to look for a clot in
her leg. When that test was negative, he ordered a CT scan of her abdomen and pelvis to look for
anything obstructing the blood flow back to her heart. There was no obstruction, but the scan did
reveal a large spleen.
The endocrinologist referred her to a gastrointestinal specialist. He looked into her stomach with a
scope, searching for something that could have caused the enlarged spleen. The scope didn’t reveal
much, but a blood test suggested that she had too many red blood cells. So the gastroenterologist
sent her to Dr. Becky Miller, a hematologist in Los Angeles.
Miller ordered a number of tests looking for reasons for her elevated red-cell count. When they were
unrevealing, she ordered a bone-marrow biopsy to make certain there was no leukemia. Reassured
by the results of this testing, she turned her attention to yet another problem — her patient’s
persistently high blood pressure, which had been noted by each of the doctors she’d seen. One in
three Americans have high blood pressure. Most have what is called essential hypertension,high blood pressure without an obvious cause, that will need lifelong drug treatment and, ideally, a lowsalt diet and regular exercise to reduce complications from the disease.
For 5 percent to 10 percent of those with hypertension, however, there’s a treatable underlying
problem. Address that, and the blood pressure will usually come down. The trick is to find those few
who have what’s known as secondary hypertension.
Many over-the-counter drugs, including painkillers like ibuprofen and decongestants like Sudafed,
can raise blood pressure. So can alcohol and stimulants like caffeine or cocaine. Ordinary
prescription drugs like antidepressants, Ritalin or birth-control pills can too. But this patient took
none of those drugs and rarely drank alcohol.
A narrowing of the blood vessels leading to the kidneys can also cause blood pressure to rise. The
CT scan of the patient’s abdomen, however, showed that this wasn’t the case. Finally, there are
diseases that can cause the body to secrete high levels of a variety of hormones like thyroid
hormone, adrenaline and cortisol, all of which will raise blood pressure. The hematologist ordered
tests looking for any of these diseases, and when several of them were in the abnormal range, she
sent the patient back to her endocrinologist. The answer
After the patient got her lab results from Dr. Miller, she started reading up on one of the
abnormalities: a high level of cortisol. “I think I have Cushing’s disease,” she told the
endocrinologist when she saw him again a few weeks later. The patient laid out her argument. With
Cushing’s, the body produces too much cortisol, one of the fight-or-flight hormones. This could
explain her high blood pressure. She had other symptoms of Cushing’s too: She bruised easily, and
for the past year or so she would wake up early in the morning, around 4:30, and couldn’t go back to
sleep. She was losing muscle mass — she used to have well-defined muscles in her thighs and calves
— and her belly had grown bigger.
The doctor was skeptical. Cushing’s disease was first described just over 100 years ago by Dr.
Harvey Cushing, who saw a 23-year-old woman with sudden weight gain, mostly in the abdomen and
also in the face; stretch marks from skin that was too thin and delicate to accommodate the excess
girth; easy bruising; high blood pressure; and diabetes. That was the classic presentation of the
illness. While this patient was the right age for Cushing’s and had high blood pressure, none of the
rest fit. She wasn’t obese; she was tall (5 foot 10) and slim (150 pounds) and athletic. She didn’t
have stretch marks, and she didn’t have diabetes. She said she bruised easily, but the
endocrinologist saw no bruises during the exam. Her ankle was still swollen, and Cushing’s can do
that, but so can lots of other diseases.
Still, it was worth taking the next step: a dexamethasone suppression test. Dexamethasone is an
artificial form of cortisol. Giving it in high doses usually leads to a significant drop in a person’s
cortisol level. The young woman was told to take one pill of dexamethasone. But when her blood was
drawn the next morning, her cortisol levels were through the roof. That’s when the endocrinologist
called to ask if she forgot to take the pill the night before.
When she insisted that she had taken it, he proposed another test. Cortisol is eliminated through the
kidneys, and collecting a full day’s worth of urine would show how much cortisol her body was making. If it was high, it would confirm Cushing’s. The patient carefully collected 24 hours’ worth of
urine. Ten days later, the endocrinologist called again: The cortisol level was extremely elevated.
She was right, the doctor conceded; she really did have Cushing’s. She didn’t have the classic
features, perhaps because she hadn’t had the disease long enough for the rest of the symptoms to
manifest themselves.
An M.R.I. scan revealed a tiny tumor on her pituitary, which was causing the excess cortisol, the
defining feature of Cushing’s. By the time she had surgery to remove the tumor a couple of months
later, her face and abdomen were starting to look more like those of a typical Cushing’s patient.
After the surgery, the excess body fat melted away, her blood pressure and red-cell count returned
to normal and the swelling in her ankle finally disappeared.
-----------