Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You must have Java, Eclipse, Python, PyCharm, R, and RStudio installed to perform this assignment. Please accomplish the following: Use each language to write the

You must have Java, Eclipse, Python, PyCharm, R, and RStudio installed to perform this assignment.

Please accomplish the following:

Use each language to write the programming solution for each of the following actions.

Please copy the numbered action into your response.

Please post your .py Python files for items 2, 5, and 8 in your response.

For items 1, 3, 4, 6, 7, and 9 below, provide a screenshot of the execution, in Java and R, showing the code and the result set.

Start the next action on a new page.

For items 1-3, use these grade ranges:

An A grade is between 90 and 100.

A B grade is between 80 and 89.

A C grade is between 70 and 79.

A D grade is between 60 and 69.

All other scores are an F grade.

  1. Please write the program in Java that prompts the user for a score between 0 and 100. Test the entered value using IF/ELSE IF/ELSE statements using the scoring range given below. Print the grade based on input. Be sure to show the code and result.
  2. Please write the program in Python that prompts the user for a score between 0 and 100. Test the entered value using IF/ELSE IF/ELSE statements using the scoring range given below. Print the grade based on input. Be sure to show the code and result.
  3. Please write the program in R that prompts the user for a score between 0 and 100. Test the entered value using IF/ELSE IF/ELSE statements using the scoring range given below. Print the grade based on input. Be sure to show the code and result.

For items 4-6, use the data below:

Practice iteration (the loop). In a WHILE loop, print out this menu of Book Categories:

  1. Science Fiction
  2. Computers and Technology
  3. Cooking
  4. Business
  5. Comics
  6. Exit

Then, ask the user to select one of the items in the menu (The user should enter an integer between 1 and 6. Any other input should print an error message and return to the user input). Based on the user's choice, the output should be the book category related to the numerical choice, and maybe a complimentary message (e.g., "You selected Cooking. Cooking is a yummy choice"). After the category and message are displayed, the program should return the user to another opportunity to select from the menu. The loop should end only when the user selects number 6.

  1. Please write the program in Java that uses the above requirements.
  2. Please write the program in Python that uses the above requirements.
  3. Please write the program in R that uses the above requirements.
  4. Please write the program in Java program, so it uses two nested FOR loops. The values used in the outer loop will be a user input value. The inner loop will use the input value divided by 2. Print a simple statement showing the values using the range of 1 to the user input number in the outer loop. The inner loop will print 1 to the divided result.
  5. Please write the program in Python program, so that it uses two nested FOR loops. The values used in the outer loop will be a user input value. The inner loop will use the input value divided by 2. Print a simple statement showing the values using the range of 1 to the user input number in the outer loop. The inner loop will print 1 to the divided result.
  6. Please write the program in R program, so that it uses two nested FOR loops. The values used in the outer loop will be a user input value. The inner loop will use the input value divided by 2. Print a simple statement showing the values using the range of 1 to the user input number in the outer loop. The inner loop will print 1 to the divided result.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Modeling and Database Design

Authors: Narayan S. Umanath, Richard W. Scammel

2nd edition

1285085256, 978-1285085258

More Books

Students also viewed these Programming questions

Question

What is a deletion constraint?

Answered: 1 week ago

Question

Describe what constitutes an ER Model.

Answered: 1 week ago