Completado

small c++ programs

Este proyecto fue completado exitosamente por morisoo por $2 USD / hour en 2 días.

Obtén cotizaciones gratis para un proyecto como este
Empleador trabajando
Presupuesto de Proyecto
$2 - $8 USD / hour
Completado En
2 días
Ofertas Totales
12
Descripción del Proyecto

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]

Completado por:
Habilidades Requeridas

Buscando hacer algo de dinero?

  • Establece tu presupuesto y período de tiempo
  • Describe tu propuesta
  • Consigue pago por tu trabajo

Contrata Freelancers que también oferten en este proyecto

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