ComputerScienceExpert

(7)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 1 Day Ago
Questions Answered: 4836
Tutorials Posted: 4834

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 23 May 2017 My Price 9.00

#include

I need help with this code I wrote, it is giving me build errors and I dont understand how to fix it.

 

#include <windows.h>
#include <tchar.h>
#include <iostream>
#include <string>
using namespace std;

int main()
{
// Declare variables
char continueLoop = 'Y';
string diverName, diverCity;
double highestScore = 0;
double lowestScore = 0;
double totalScore =0;
double overallScore = 0;
double diveDifficulty = 0;
double diverTotal = 0;
double avgScore = 0;
double score1, score2, score3, score4, score5 = 0;
int numberDivers = 0;

cout cout 
while (continueLoop == 'Y' || continueLoop == 'y')
{
cout getline(cin, diverName);
cout getline(cin, diverCity);
do
{
int count = 0;
cout cin >> score1;
while (score1 10)
{
cout cout cin >> score1;
}
count++;
} while (count do
{
int count = 0;
cout cin >> score2;
while (score2 10)
{
cout cout cin >> score2;
}
count++;
} while (count if (score2 score2 = lowestScore;
if (score2 > score1)
score2 = highestScore;
do
{
int count = 0;
cout cin >> score3;
while (score3 10)
{
cout cout cin >> score3;
}
count++;
} while (count if (score3 score3 = lowestScore;
if (score3 > highestScore)
score3 = highestScore;

do
{
int count = 0;
cout cin >> score4;
while (score4 10)
{
cout cout cin >> score4;
}
count++;
} while (count if (score4 score4 = lowestScore;
if (score4 > highestScore)
score4 = highestScore;

do
{
int count = 0;
cout cin >> score5;
while (score5 10)
{
cout cout cin >> score5;
}
count++;
} while (count 
if (score5 score5 = lowestScore;

if (score5 > highestScore)
score5 = highestScore;

diverTotal = (score1 + score2 + score3 + score4 + score5) - highestScore - lowestScore;

cout cin >> diveDifficulty;
while (1 > diveDifficulty && diveDifficulty > 1.67)
{
cout cout cin >> diveDifficulty;
}
overallScore = (diverTotal / 3) * diveDifficulty;

numberDivers++;
overallScore += totalScore;
cout cout cout 
cout cin >> continueLoop;
}

avgScore = totalScore / numberDivers;

cout cout cout 
return 0;
}

Answers

(7)
Status NEW Posted 23 May 2017 08:05 AM My Price 9.00

-----------

Attachments

file 1495527726-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)