Completed

small c++ programs

This project was successfully completed by morisoo for $2 USD / hour in 2 days.

Get free quotes for a project like this
Employer working
Project Budget
$2 - $8 USD / hour
Completed In
2 days
Total Bids
12
Project Description

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]

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

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