Question

Create a flowchart and a program; test the program. Program Requirements. There are 10 members of...

Create a flowchart and a program; test the program. Program Requirements. There are 10 members of the team. The program asks each member to enter their tennis rank. It only accepts an integer between 1 and 5 inclusive.. If the number entered is not valid, the program keeps prompting until a valid number is entered. The program calculates and prints the average rank. Submit a photo of your flowchart and a screen shot of your program.

Test the Program: Check the logic of your code by seeing what happens when you enter an invalid rank and when you enter a valid rank. Submit a screen shot of the test results.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question :

Create a flowchart and a program; test the program. Program Requirements. There are 10 members of the team. The program asks each member to enter their tennis rank. It only accepts an integer between 1 and 5 inclusive.. If the number entered is not valid, the program keeps prompting until a valid number is entered. The program calculates and prints the average rank. Submit a photo of your flowchart and a screen shot of your program.Test the Program: Check the logic of your code by seeing what happens when you enter an invalid rank and when you enter a valid rank. Submit a screen shot of the test results.

Flowchart :

Program :

#include<iostream>
using namespace std;
int main()
{
   int rank[10];
   int avgrank,sum=0;
   for(int i=0;i<10;i++)       //For 10 members
   {
       cout<<"\nPlayer - "<<i+1<<" ,Enter Your Tennis Rank : ";
       cin>>rank[i];
       if(rank[i] < 1 || rank[i] > 5)       //To check if rank=(1 to 5) . If not enter again
       {
           cout<<"\nRank Inclusive (1-5)\n";
           cout<<"\nEnter Again\n";
           i=i-1;       //Decrement 1 to input rank of same tennis player
           continue;
       }
       sum+=rank[i];
   }
   avgrank=sum/10; //Taken as Integer as Rank can't be in floating point number
   cout<<"\nAverage Rank : "<<avgrank<<endl;
}

Output :

Thank You. Please Up-Vote.

Add a comment
Know the answer?
Add Answer to:
Create a flowchart and a program; test the program. Program Requirements. There are 10 members of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a flowchart and a program; test the program. Program Requirements. - There are 10 members...

    Create a flowchart and a program; test the program. Program Requirements. - There are 10 members of the team. The program asks each member to enter their tennis rank.It only accepts an integer between 1 and 5 inclusive.. If the number entered is not valid, the program keeps prompting until a valid number is entered. The program calculates and prints the average rank. -Submit a photo of your flowchart and a screen shot of your python program.Test the Program: Check...

  • 4. For the following problem submit a photo of the flowchart and shots of your Python...

    4. For the following problem submit a photo of the flowchart and shots of your Python screens showing the program code and the output. Your task is to input from the teacher the test score of each student and to output the highest score. You need to check each score to make sure it is valid (at least 0 and at most 100). If it is not valid, keep prompting for a valid score until you get one. After a...

  •     FLOWCHART Draw the hierarchy chart and design the logic for a program that calculates the...

        FLOWCHART Draw the hierarchy chart and design the logic for a program that calculates the projected cost of a remodeling project. Assume that the labor cost is $30 per hour. Design a program that prompts the user for a number hours projected for the job and the wholesale cost of materials. The program computes and displays the cost of the job, which is the number of hours times the hourly rate plus the 120% of the wholesale cost of...

  • Flowchart for Python program: Design and create a program for the ULM Coffee Shop to provide...

    Flowchart for Python program: Design and create a program for the ULM Coffee Shop to provide some customer market research data. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more...

  • Using LC3 Editor. This program accepts an integer typed in by the user, verifies that the...

    Using LC3 Editor. This program accepts an integer typed in by the user, verifies that the number is valid, and if it is valid prints the binary version of the number to the display as on the following page. Call the program part2.asm. As you can see the program rejects any input which doesn't start with a + or - sign and prints "The input is invalid." to the display. Also any integer values less than -511 or greater than...

  • This is a C program. please help me to write a pseudocode of the program ....

    This is a C program. please help me to write a pseudocode of the program . also, I want the program In a do...while loop and the screen output should look like in the picture. please help me. 3.1. Write a program that asks the user to continue to enter two numbers (at a time). For each pair of numbers entered, the program calculates the product of those two numbers, and then accumulate that product. For each pair of numbers...

  • Wrote a program called ExceptionalDivide that asks the user for 2 integer values and displays the...

    Wrote a program called ExceptionalDivide that asks the user for 2 integer values and displays the quotient of the first value divided by the second value. Make sure the your program reads in the two input values as ints. Your program must catch either of two exceptions that might arise and crash your program java.util.InputMismatchException //wrong data type inputted java.lang.ArithmeticException //divide by zero error Once you catch these exceptions, your program must print out a message explaining what happened and...

  • Write a Java program that: • Asks the user to enter the number of integers that...

    Write a Java program that: • Asks the user to enter the number of integers that he need to enter; • Asked him to enter integer by integer; • Print The number of Odd numbers entered and the number of Even numbers entered. Important notes: 1. You should have to copy and paste the Java as your answer for this question. DON’T take screen shot for your Java Code. It must be editable. 2. Take a screen shot for your...

  • The Assignment Design a Visual Logic flowchart for a program that prompts the user to enter...

    The Assignment Design a Visual Logic flowchart for a program that prompts the user to enter ten numbers one at a time. Use Console I/O (not the GUI interface). After the user has entered all ten number the program will then print out the total of those ten number and quit. Here is one example of what the program might look like when run: Please enter a number: 5 Please enter a number: 10 Please enter a number: 2 Please...

  • In C++, Please help me compute the following flowchart exactly like this requirement: Use while loops...

    In C++, Please help me compute the following flowchart exactly like this requirement: Use while loops for the input validations required: number of employees(cannot be less than 1) and number of days any employee missed(cannot be a negative number, 0 is valid.) Each function needs a separate flowchart. The function charts are not connected to main with flowlines. main will have the usual start and end symbols. The other three functions should indicate the parameters, if any, in start; and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT