Order from us for quality, customized work in due time of your choice.
To receive credit, you must complete the competency assessment. PLEASE read the
To receive credit, you must complete the competency assessment. PLEASE read the assessment rubric carefully to ensure that you have completed all competency criteria. If you wish to receive an A, you must carefully review the rubric and complete the required number of mastery criteria. PLEASE NOTE: If you receive a passing (B) grade on a competency assessment, you will not be allowed to resubmit your assessment to improve your grade.
This competency assessment (CA) assesses your level of performance on the specific Outcome(s) that are the focus of this module. The CA requires you to demonstrate your knowledge, understanding, and proficiency of the Outcome(s). Be sure to use the other activities in this module prior to attempting the CA. You can attempt the CA multiple times within the term; however, the CA must be completed successfully by the end of the term to earn credit. Refer to your Syllabus for additional information regarding the number of attempts permitted.
Be sure to review the Competency Assessment Rubric to understand the criteria on which you will be evaluated.
Instructors will provide feedback on the CA after each submission. If you expect to receive feedback, revise, and resubmit this CA near the end of the term, follow the guidelines and deadlines for submission in your Syllabus.
Please refer to your Syllabus for additional competency assessment requirements.
You may contact your instructor if you have any questions.This competency assessment assesses the following Outcome(s):
IN300M1-1: Implement expressions, decisions, and iteration in each language.
Purpose
Part 1 will provide the setup and use of development environments in Java, Python, and R. In those environments, you will write a program for each language showing the use of data types, operators, and expressions. This foundation will be built upon in future activities and serves as the core for each language.
Part 2 covers writing programs in Java, Python, and R that make decisions and iterates as required by the specifications. You will use the IF/ELSE IF/ELSE syntax as well as FOR and WHILE syntax.
Instructions
Part 1: Data Types and Operators
You must have Java, Eclipse, Python, PyCharm, R, and RStudio installed to perform this activity. You should use the free editions for each.
If you do not have the above software installed, please perform the required installations. The following documents will assist you with installation of the software:
Java
Eclipse
Python
PyCharm
R
RStudio
Complete the following:
For each of the following actions, use each language to complete a programming solution.
Please copy the numbered action into your Microsoft® Word® document.
For items 1–3 below, provide the actual code files and a screenshot of the execution of
each. Make sure to also respond to items 4 and 5.
Start a next action on a new page.
Getting user input examples in each language:
Java:
import java.util.Scanner;
public class IN300_Unit1_A1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(“Enter your name”);
String employee = sc.nextLine();
Python:
employee = input(“Enter your name: “)
R:
employee <- readline(prompt="Enter your name: ")
Write a program in Java that prompts the user for three numbers. Store each input value in its own number data type, such as firstNumber, secondNumber, and thirdNumber. Perform arithmetic operations that sums the numbers, and determines the average. Be sure to show code and result.
Write a program in Python that prompts the user for three numbers. Store each input value in its own number data type, such as firstNumber, secondNumber, and thirdNumber. Perform arithmetic operations that sums the numbers and determines the average. Be sure to show code and result.
Write a program in R that prompts the user for three numbers. Store each input value in its own number data type such as firstNumber, secondNumber, and thirdNumber. Perform arithmetic operations that sums the numbers and determines the average. Be sure to show code and result.
After completing the above, discuss which language you liked the best or had the least amount of difficulty with. Also discuss which language you had the most difficult time with and why. Provide examples if you can.
Research and explain the meaning of the “==” and equals() operators in Java. Include, how each works and when to use them.
Your submission for this part should meet any stated specifications listed above.
Place your screenshots and responses in a Microsoft Word document. Be sure to include the .java files with your code for the Java portions.
Part 2: Decisions and Iterations
You must have Java, Eclipse, Python, PyCharm, R, and RStudio installed and running.
Complete the following:
For each of the following actions, use each language to complete a programming solution.
Please copy the numbered action into your Microsoft Word document.
For items 1–9 below, provide the actual code files and a screenshot of the execution of
each.
Start a 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.
Write a 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 code and result.
Write a 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 code and result.
Write a 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 code and result.
As part of the mastery requirements for this Competency Assessment, complete the following boldfaced item:
Using the requirements for Steps 1–3 above, write code, in all three languages, to print a greeting message and values entered by the user prior to printing the resulting grade.
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.
Write a program in Java that uses the above requirements.
Write a program in Python that uses the above requirements.
Write a program in R that uses the above requirements.
As part of the mastery requirements for this Competency Assessment, complete the following boldfaced item:
Using the requirements for Steps 4–6 above, write code, in all three languages, adding another book category and complimentary message.
Write a Java program that 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.
Write a Python program that 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.
Write an R program that 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.
Your submission for this part should meet any stated specifications listed above.
Place your screenshots and responses in a Microsoft® Word® document. Be sure to include the .py files with your code for the Python portions.
Order from us for quality, customized work in due time of your choice.