Question

In a group of N students (male and female), write pseudocode to compute the percentage of...

In a group of N students (male and female), write pseudocode to compute the percentage of female that pass or fail the course. The passing score is 60 or greater. Hint: a variable, say G (as in gender) should store one of two possibilities, ‘M’ (as in ‘male’) or ‘F’ (as in ‘female’), inputted by the user.

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

PSEUDO CODE:

we need to take 3 variables initially

1.Count: for running while loop

2.FemalePassCount: to store number of females passed in the course

3.FemaleFailCount: to store the number of females failed in the course

Now, we can calculate the Female Pass percentage and Fail percentage

FemalePassPercentage=(FemalePassCount/N)*100

FemaleFailPerecentage=(FemaleFailCount/N)*100

See the below image for detailed pseudo code.

Please do rate my answer if you liked it.

Add a comment
Know the answer?
Add Answer to:
In a group of N students (male and female), write pseudocode to compute the percentage 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
  • MATLAB CODE P#5. In a group of N students (male and female), write pseudocede to count...

    MATLAB CODE P#5. In a group of N students (male and female), write pseudocede to count the number of male that pass or fail the course. The passing score is 60 or greater. Hint: a variable, say G (as in gender) should store one of the two possibilities 'M' (as in 'male') or 'F' (as in 'female') inputted by an external file. The data will be stored in an external file provided by the instructor

  • Write a program (code) that performs the following: Height and Weight for Male and Female: Robinson...

    Write a program (code) that performs the following: Height and Weight for Male and Female: Robinson formula to calculate the body relative to the height in inches is as follow: Ideal weight in kilogram = 52 + 1.9 * (height - 60) for male Ideal weight in kilogram = 49 + 1.7 * (height - 60) for female Write a program that prompts the user to enter the gender ('M' or 'm' for male and 'F' or feet and inches,...

  • 43 college students 44% male, 56% female Students reported on the number of hours spent studying...

    43 college students 44% male, 56% female Students reported on the number of hours spent studying per week (0-40 hours), their life satisfaction (scale from 0-100), degree of stress they experienced over the last month (scale 0-5), and completed an IQ test (40-160). Students also reported their gender (1=male, 2=female) and cumulative GPA. For the statistical analysis performed, you need to provide responses to two questions: What type of statistical analysis was used to examine what kind of research question?...

  • 43 college students 44% male, 56% female Students reported on the number of hours spent studying...

    43 college students 44% male, 56% female Students reported on the number of hours spent studying per week (0-40 hours), their life satisfaction (scale from 0-100), degree of stress they experienced over the last month (scale 0-5), and completed an IQ test (40-160). Students also reported their gender (1=male, 2=female) and cumulative GPA. For the statistical analysis performed, you need to provide responses to two questions: What type of statistical analysis was used to examine what kind of research question?...

  • 9. A De Anza statistics instructor wonders about the performance of male and female college students...

    9. A De Anza statistics instructor wonders about the performance of male and female college students in her statistics class. She wants to know whether there is a difference between final exam scores of male and female students. From all of the statistics classes she has taught in the last two years, she randomly selected scores of 63 female students and 58 male students. The females had a sample mean score of 78 with a standard deviation of 6. The...

  • need to be solved including (using namespace std) and without using arrays Problem: Write a CH...

    need to be solved including (using namespace std) and without using arrays Problem: Write a CH program that considers many students (the number of students is given as an input to the program by the user). For each student the program allows the user to input the ID of the student (as integer number), the student gender (one character M for male and F for female), and grades of 2 tests (a Test grade is a value between 0 and...

  • Write a C++ program that computes student grades for an assignment as a percentage given each...

    Write a C++ program that computes student grades for an assignment as a percentage given each student's score and the total points. The final score must be rounded up to the nearest whole value using the ceil function in the <cmath header file and displayed as a percentage. You must also display the floating-point result up to 5 decimal places. You must use at least 2 functions: one to print the last name of the student and another function to...

  • Microsoft Visual Studios 2017 Write a C++ program that computes a student’s grade for an assignment...

    Microsoft Visual Studios 2017 Write a C++ program that computes a student’s grade for an assignment as a percentage given the student’s score and total points. The final score must be rounded up to the nearest whole value using the ceil function in the <cmath> header file. You must also display the floating-point result up to 5 decimal places. The input to the program must come from a file containing a single line with the score and total separated by...

  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

  • Write a Java program, including comments, to compute statistics for how students did on an exam....

    Write a Java program, including comments, to compute statistics for how students did on an exam. The program should compute various things about a student and print it all out. Then it repeats the process for each new student until the entire set of data has been completed. (a) The program reads in and prints the ID number of a student [see step (g) below] and then the number of right answers and the number of wrong answers. (The total...

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
ADVERTISEMENT