Zakończony

small c++ programs

Ten projekt został pomyślnie zakończony przez morisoo za $2 USD / hour w 2 dni.

Otrzymaj darmowe wyceny do podobnego projektu
Pracodawca pracuje
Budżet Projektu
$2 - $8 USD / hour
Ukończony W
2 dni
Ofert Razem
12
Opis Projektu

Longer.cpp. Write a program that prompts the user to input three string statements and determine which string is the [url removed, login to view] program must contain two functions:

void getStrings(string *array, int size); // Asks for the input

string LonestString(string *array, int size); // Find the longest string

OUTPUT :

Please enter a string statement 1: The

Please enter a string statement 2: House

Please enter a string statement 3: 1

You entered the following string statements : "The" "House" and "1" // Need quotes around each string and tab between them

"House" is the longest string.

[url removed, login to view] Write a program that contains a function call Input. The Input function should accept at least 5 decimal test scores but no more than 10 test scores can be entered from the user and stores them in an array. Don’t store any number less than [url removed, login to view] the array and number of score entered to main. Inside main, the program should pass the array and the total number of scores to countPerfect. The countPerfect function should count how many perfect (100) scores were entered by the user and return the total to main.

void Input(figure this out);

int countPerfect(double array[], int size);

Once back inside main, the program should display how many scores were entered and how many perfect scores were entered (i.e., scores of 100).

OUTPUT:

Enter a score 0 - 100 (or -1 to quit): 87

Enter a score 0 - 100 (or -1 to quit): 80.5

Enter a score 0 - 100 (or -1 to quit): [url removed, login to view]

Enter a score 0 - 100 (or -1 to quit): -75

User entered a number less than 0!!!

Enter a score 0 - 100 (or -1 to quit): 100

Enter a score 0 - 100 (or -1 to quit): 100

Enter a score 0 - 100 (or -1 to quit): 75

Enter a score 0 - 100 (or -1 to quit): -1

There were 6 scores entered include 2 perfect scores.

Use Visual Studio to write your programs.

Make sure each c++ files :

[url removed, login to view]

[url removed, login to view]

Ukończony przez:
Wymagane Umiejętności

Chcesz zarobić trochę pieniędzy?

  • Napisz kwotę, za jaką jesteś w stanie podjąć się projektu i przedział czasowy, w którym będziesz w stanie go zrealizować
  • Opisz, w jaki sposób wykonasz projekt
  • Otrzymaj wynagrodzenie za pracę

Zatrudnij Freelancerów, którzy również składają oferty do tego projektu

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online