Question
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.
- 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.
- 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.
- 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:
- Science Fiction
- Computers and Technology
- Cooking
- Business
- Comics
- 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.
- Please write the program in Java that uses the above requirements.
- Please write the program in Python that uses the above requirements.
- Please write the program in R that uses the above requirements.
- 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.
- 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.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started