已完成

small c++ programs

该项目成功由morisoo ,以$2 USD / hour的价钱在2 天内完成。

为像这样的项目获取免费报价
雇主工作
项目预算
$2 - $8 USD / hour
完成于
2 天
全部竞标
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