Question 1: Count the number of spaces and stars on each line for the above exam

Question 1: Count the number of spaces and stars on each line for the above example and come
up with a sequence of operations that will construct the figure. Repeat this process for a figure
with a height of 9 and line thickness of 7.
Question 2: Looking at the above examples and the numbers in the function calls for drawing
these, identify the pattern(s) in the sequence(s) of dashes and gaps. What would be the sequence
for a height ’h’ and thickness ’t’?
Question 3: Construct the loop for this process using psuedocode ( not on Raptor). Pseudocode
is an artificial and informal language that helps programmers develop algorithms. This video is a
helpful introduction.
Question 4: Write a C++ program that implements the flowchart using a for loop. Use the
printchars function described above. In a script session, display (“cat”) the code, compile, and
test it. Upload the answers to questions 1, 2 and 3, the .cpp file and the script file into a folder
named Lab5

Posted in C++

The aim of this lab is to familiarize student with the programming environment a

The aim of this lab is to familiarize student with the programming environment and cover someother basics of C++ programming. Our aims today are:
1. To learn▪ C++ Programming Environment▪ Variable Types
2. To learn output in C++▪ count
3. To learn C++’s Comments
4. To learn about Arithmetic Operators
5. Stream Operators
6. Use of Escape Sequences

Posted in C++

Programming is a complex activity that involves understanding logic and applying

Programming is a complex activity that involves understanding logic and applying appropriate syntax to accomplish a task or solve a problem. This can be particularly daunting for beginners. It is a good idea to take some time to plan and prepare for this learning experience. There are many who have gone through this learning process and can offer helpful tips and recommendations for a successful learning experience. Although the advice in the posted videos is targeted toward those who are seeking a career in application development, the principles readily apply to those who are learning a programming language for a class. For those of you whose career pursuit is in another area, much of the advice can still apply to learning technical skills in general.
The recommendations in the following video provide a solid base for developing learning strategies in this class and much of the advice readily applies to other topics as well. The key is to develop some learning strategies that help you make the most out of the time you spend learning.
The video below is from a career perspective of an iOS developer, but much of the advice is important for learning any type of programming language. For this class, you may focus on just the following sections of the following video.
:10 – 1:23 – Tutorial Trap
1:23 – 2:09 – Don’t Skip the Fundamentals
2:09 – 3:10 – Don’t Memorize
6:23 – 7:42 – It Gets Easier
7:42 – 8:40 – Patience
For your discussion post include the following:
Post your initial post, this allows time for your classmates to read and respond.
Comment on one or more points from the posted videos that you found to be particularly helpful to you personally as you begin to prepare for learning C# in this class (and potentially in other classes as well).
Do your own Google search on advice and recommendations for learning a new programming language. You may search for advice on learning C# specifically or on learning programming / software development in general. Your resource may include techniques, strategies, and/or study habits recommended for learning how to code. It could also be another resource about things that are important to know before beginning one’s journey of learning to program. Share a link to the resource you found (whether a website, video, blog, article, etc..) and briefly share the key points / recommendations from the resource.
Which strategy or strategies do you plan to apply for learning in this class?

Posted in C++

Write a program that works with client files. Request ADT, input from files, and

Write a program that works with client files. Request ADT, input from files, and output files.
Our goal in this project is to build an Integer List ADT in C and use it to indirectly alphabetize the lines in a
file. This ADT module will also be used (with some modifications) in future programming assignments, so you
should test it thoroughly, even though not all of its features will be used here. Begin by reading the handout
ADT.pdf posted on the class webpage for a thorough explanation of the programming practices and conventions
required for implementing ADTs in C in this class.

Posted in C++

Go to https://replit.com/@rammonsnova/SimpleCombatstructuredstarter#main.cppLink

Go to https://replit.com/@rammonsnova/SimpleCombatstructuredstarter#main.cppLinks to an external site.
Fork a copy to your account.
Rewrite/modify the game to use player objects instead of the “structured” programming approach currently used.That is, implement the Player class. (40pts)
Use two objects of type Player throughout the program. (20pts)
Minimum requirements:Player class must have at least three (3) public methods. (10pts)
Player class fields/variables must be all (or almost all) private. (10pts)
Program must use random numbers in a reasonable range (e.g., 1-3) for attack values that change each turn. (10pts)
Either: (10pts)create a Game class that implements the game logic, or
create a function that outputs the players’ HP as well as the prompt to attack or use potion (defend) — basically a display function

Posted in C++

Inputs: q: 6 x 1 joint space variable vector 101,02,03,04,05,067 where 8, is the

Inputs: q: 6 x 1 joint space variable vector 101,02,03,04,05,067 where 8, is the angle of joint n forn 1,6. Be careful of sign convention!
Output: gat: end effector pose, gst (4 x 4 matrix)
⚫uraBody.Jacobian.m
Purpose: Compute the Jacobian matrix for the UR5. All necessary parameters are to be defined inside the function. Again, parameters such as twists and gat (0) (if needed) should be defined in the function.
q: 6 x 1 joint space variables vector (see above)
Output: J: Body Jacobian, J (6 x 6 matrix)
uraBody Jacobian.m
Purpose: Compute the Jacobian matrix for the UR5. All necessary parameters are to be defined inside the function. Again, parameters such as twists and got (0) (if needed) should be defined in the function.
q: 6 x 1 joint space variables vector (see above)
Output: J: Body Jacobian, J (6 x 6 matrix)) To test ur5Body Jacobian, simply calculate the Jacobian matrix using your function for some joint vector q. Then, compute a central-difference approximation to the Jacobian as follows. Compute the forward kinematics at slight offsets from q, i.e. q re, where e₁= (1,0,0,0,0,0), es (0,1,0,0,0,0), etc. You will then have gat (q+ce) and gat(qce), and note that, approximately, we have
1 39(9a(9+ te)-9a( – ))
To a decent approximation, for a small enough e, you should have that the ith column of the Jacobian is equal to
g
(1)
Note that the term on the right will NOT be exactly a twist! So you’ll want to “twist-ify” it first, i.e. take the skew-symmetric part of the upper left 3 x 3 matrix before finding the twist coordinate. So, your test function should, for each column, compute the approximate twist in Eq.. You will then be able to construct an approximate Jacobian, Japprox and compute the matrix norm of the error between Japprox and the actual Jacobian. E.g. in MATLAB something like norm(Japprox J). Print this on the command line in MATLAB.

Posted in C++