This document outlines exercises in R programming fundamentals including logical operators, selection operators, and loops. It provides examples of creating functions that take scalar, vector, and matrix arguments and multiplying them accordingly. It also provides prompts to create if, if/else, if/elseif/else statements and switch conditions with flowcharts, a for loop to increment by 1 and another using next to show odd numbers, and a for loop script to model a mortgage over 30 years with monthly payments. The goal is to practice R programming tools for statistical analysis and evaluate their use in data science.
ICT role in 21st century education and it's challenges.
# print the total payments at the end Functions Create functions that.docx
1. # print the total payments at the end
Functions
Create functions that take five arguments and multiplies them according to the type of object
they are: Scalar, Vector, Matrix, Plot each of the functions that you have constructed.
Deliverables
Markdown Documents to include appropriate screenshots (with descriptions).
Then, in 250-500 words, explain each control statement and function in your own words. Make
sure to address when and why each would be used in data science practices as well as justify
your rationale using sound statistical arguments and associated formulas.
APA style is not required, but solid academic writing is expected
Assessment Description It is essential in data science and related disciplines to understand the
most basic decision-making processes in computing as well as to distinguish when, why and how
these specific practicesitools should be employed. For example, consider the following scenario
of a real-werid case study. Immigration is a controversial topic. Policies are made, enacted, and
entorced based upon what the voters want and civil rights. To figure out if a policy is effective
such as the Dreamers Act, a firm is hired to conduct a statistical analysis on how well
participants are faring in comparison to those not in the program. By using the R programming
fundamentals to create an R program, the firm can evaluate the effectiveness of potential
policy(s) Practice The exercises below include various aspects of R programing that allow one to
perform statistical operations in various applications. Arhough they are unrelated to any one
scenario, they are practice examples you can use in your toolbox to evaluate data in a statistical
analysis. Read Chapters 5 and 6 in "An Introduction to Statistical Programming Methods with
R," located in the topic Resources. Access R Studio. Then, demonstrate how to work with each
control statement and function as outlined below. Take appropriate screenshots (with
descriptions) as needed. All documentation should be completed with the necessary markdown
documents. Lotical Oneraters Choose five logical operators. In a table, write up the following
and then execute your example. The Command, The Description, Your Own Example, The
Result Selection Operaters Create your own if statement where there are five Code Blocks (e.g.,
Code block A, Code block B, etc.). Construct a diagram of the if statement that you created (use
correct flowchart symbols). Create your own itlelse statement where there are five Code Blocks
(e.g. Code block A, Code block B, etc.) Construct a diagram of the iflelse statement that you
created (use correct flowchart symbols). Create your own iflelseifielse statement where there are
five Code Blocks (e.g., Code block A, Code block B, etc.). Construct a diagram of the
iffelseitfelse statement that you created (use correct flowchart symbols). Create your own switch
condition where there are five statements (e.g. create a story of wearing clothes based upon the
weather]. Construct a diagram of the switch condition that you created (use correct flowchart
symbols)- Loops Create a for loop where the output increments by a single digit 20 times. Create
a for loop that utilizes the next command where the output increments to 35 with only the odd
numbers showing in the output. Ubizize the following scenario and pseudocode to construct an R
script, then run the script and display the results: There is a nice young couple who needs to
borrow $500 , 000 from their local bank to purchase a home. The annual interest rate is 4.75%
annually. The lifetime of the mortgage is a 30-year loan, so they need to pay it off within 360
months. The couple decides that paying $1 , 750 per month would be best tor them as their
monthly mortgage payment. Will they pay the loan off in time with those numbers? Pseudocode
example (the pseudocode below are some basic components you should consider...you can
construct as you see fili): # setup H convert annual interest to a monthly multiplier # keep
looping until the loan is paid off.. It print the results on screen I. end of loop