small c++ programs

  • 状态 完成的
  • 预算 $2 - $8 USD / hour
  • 总竞标 12

项目描述

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]

获得类似项目的报价
完成的:
要求的技能

想赚钱吗?

  • 设置你的预算和期限
  • 列出你的提案
  • 获得工资

雇用同样在该项目上竞标的威客

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