1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marishachu [46]
3 years ago
9

Write a program named TypingGrades that allows a user to enter a student’s number of words typed. The output is the letter grade

. For example, if 8 words typed is input, the output should be Typing 8 words per minute: Grade F.
Computers and Technology
1 answer:
Vadim26 [7]3 years ago
6 0

complete question:

Write a program named TypingGrades that allows a user to enter a student’s number of words typed. The output is the letter grade. For example, if 8 words typed is input, the output should be Typing 8 words per minute: Grade F.

Words typed  Grade

0–15            F

16–30            D

31–50            C

51–75            B

76 and over    A

Answer:

import java.util.Scanner;

public class TypingGrade {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter number of words typed");

       int numWords = in.nextInt();

       if(numWords<=15){

           System.out.println("Grade F");

       }

       else if(numWords>=16 && numWords<=30){

           System.out.println("Grade D");

       }

       else if(numWords>=31&&numWords<=50){

           System.out.println("Grade C");

       }

       else if(numWords>=51 && numWords<=75){

           System.out.println("Grade B");

       }

       else{

           System.out.println("Grade A");

       }

   }

}

Explanation:

  • Using Java programming Language
  • Import Scanner Class to prompt and receive user input of number of words typed
  • Use if..elseif...else statements to test each condition (the range of words) given in the question to print the expected output.

You might be interested in
Business application software programs make it possible to
Daniel [21]
Business application software programs make it possible to: increase productivity in the office setting.
Please give me Brainless if this help!!
6 0
3 years ago
What is wrong with this case statement -&gt; case 2:
PtichkaEL [24]

Answer:

C: Nothing

Explanation:

Assuming this case is acting upon a switch on an integral value, there is nothing wrong with this case header.

var x = 10;

switch (x)

{

case 2:

     Console.WriteLine("The value of 'x' is 2!");

}

4 0
2 years ago
Subtraction of matrix​
Flura [38]

Answer:

A matrix can only be added to (or subtracted from) another matrix if the two matrices have the same dimensions.

Explanation:

Subtracting matrices Similarly, to subtract matrices, we subtract the corresponding entries. For example, let's consider C = [ 2 8 0 9 ] C=\left[\begin{array}{rr}{2} &8 \\ 0 & 9 \end{array}\right] C=[2089] and D = [ 5 6 11 3 ] D=\left[\begin{array}{rr}{5} &6 \\ 11 & 3 \end{array}\right] D=[51163].

8 0
3 years ago
Write a program that produces a bar chart showing the population growth of Prairieville, a small town in the Midwest, at 20-year
Sunny_sXe [5.5K]

Answer:

#include <iostream>

#include <fstream>

using namespace std;

int main()

{

ifstream Inputfile;

Inputfile.open("People.txt"); // Open file

if (!Inputfile) // Test for open errors

{

cout << "Error opening file.\n";

return 0;

}

int Pop; // Population

// Display Population Bar Chart Header

cout << "PRAIRIEVILLE POPULATION GROWTH\n"

<< "(each * represents 1000 people)\n";

for (int Year = 1; Year <= 6; Year++)

{ // One iteration per year

switch (Year)

{

case 1 : cout << "1900 ";

break;

case 2 : cout << "1920 ";

break;

case 3 : cout << "1940 ";

break;

case 4 : cout << "1960 ";

break;

case 5 : cout << "1980 ";

break;

case 6 : cout << "2000 ";

break;

}

Inputfile >> Pop; // Read from file

// calculate one per 1000 people

//cout<<"**"<<Pop<<endl;

while(Pop > 0)

{ // Display one asterisk per iteration

// One iteration per 1000 people

cout << "*";

Pop -= 1000;

}

cout << endl;

}

Inputfile.close(); // To close file

return 0;

}

Explanation:

5 0
3 years ago
HELP ASAP!!!
stiks02 [169]
Comparison would be most suitable. I hope I could be a help


7 0
4 years ago
Read 2 more answers
Other questions:
  • python Write a class named Taxicab that has three **private** data members: one that holds the current x-coordinate, one that ho
    10·1 answer
  • A software programâs _________ indicates what can legally be done with that program.]
    5·1 answer
  • PLEASEEEEEEEEEEEEEEEEE HELPPPPPPPP
    15·1 answer
  • For which product would the producer keep a high profit margin and offer after-sales service?
    6·1 answer
  • You find a list of numbers on the kitchen counter, but you aren’t sure what the numbers represent. This is an example of:
    11·2 answers
  • Why does my hp computer keep freezing when i move it?
    10·1 answer
  • A ___________ assigns levels of risk to various threats to network security by comparing the nature of the threats to the contro
    9·1 answer
  • How many sections of a job description are there
    5·1 answer
  • Which is an example of emoticon use?
    11·1 answer
  • Many Java programs that you create will receive and process user input. In order to ensure that user input is accurate, you will
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!