TITLE: Repetition structure: for loop, while loop, do..while loop Handle Menu

TITLE:
Repetition structure: for loop, while loop, do..while loop Handle Menu to re-display – Distance Converter with user-defined functions
TIME TO COMPLETE
2 Weeks for 16 weeks class – 1 week for 8 weeks class
HOW TO DO THE LAB
Remember to do the lab with the following:
*If you need help about the C++ syntax to write the code, read the instruction in the folder “Skills Required”
*From now and on yourLastName will be changed to your last name
*Your program should change Martinez to your last name
*Change Luis Martinez to your full name
*write the file name as the first comment line at the top of program
*After running your program, take the picture of the output window as below from your program with your name on and paste the picture at the bottom of the document having pseudo-code to turn in
Part 1: Use word document named SP2024_LAB5PART1_yourLastName to answer questions
Part 2:
Step1:
Read the requirement; write in English the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab5_pseudoCode_yourLastName
Step2:
Start Virtual Studio C++, create the project àwrite the project name For Part 2: SP2024_LAB5PART2_yourLastName Add .cpp file For Part 2: SP2024_DistanceConverter_yourLastName.cpp After adding the cpp file, you have an empty window coming up, type the following template of a C++ program in:
//File name should be written here as comment line
#include using namespace std;
int main() {
//add the code here below this line
…..
system(“pause”); //This will pause the output to read
return 0;
}
Step3:
Then follow the step by step in the pseudo-code, type the C++ code in after the line “//add the code here below this line”
Step4:
Compile and run the program
Step5:
Debug if there are any errors until compile successfully
LAB5 – PART1 REQUIREMENT
Use the word document to write the answers to the following questions:
QUESTION 1 – for loop
DO NOT USE ARRAYS FOR THIS QUESTION
Provide a C++ for loop that initialize sum to 0 then run 10 times. Each time generate and display one number as below that separates to other number by a comma; then add the number to sum.
After running the loop 10 times, we have the output as below:
3, 4, 6, 9, 13, 18, 24, 31, 39, 48
Sum of these numbers is: 195
QUESTION 2 – while loop
2A
Suppose we declare the following variables:
int count = 0;
int iNumber = 1, previous = 1, product = 1;
Write the while loop that do the following if product is still less than or equal to 2024
-increase count by 1
-set previous equal to product
-lets the user enter a number for intNumber, intNumber can be 1 or any number, each time enter different the previous values.
-multiply iNumber with product and the result is stored back to the variable product. After the loop stop, display the output in the following format (for example)
At count =4
Previous product = 945
Input number= 32
Product =30240
2B
If product = 2024 instead of product = 1 at the beginning. How many times does the while loop iterate such that the product <= 2024? QUESTION 3 – do while loop 3A Suppose we define the following variables: int count = 0; int iNumber = 1, previous = 1, product = 1; Write the do..while loop that do the following when the product is less than or equal to 2024 -increase count by 1 -set previous equal to product -lets the user enter a number for intNumber, intNumber can be 1 or any number, each time enter different the previous values. -multiply iNumber with product and the result is stored back to the variable product. After the loop stop, display the output in the following format (for example) At count =4 Previous product = 945 Input number=32 Product =30240 3B If product = 3000 instead of product = 1 at the beginning. How many times does the do..while loop iterate such that the product < 2022 QUESTION 4: Write/Read the file 4A.Write to file Write the code to do the following: -Display message to ask then read input from the keyboard about the following information: * accountNumber (string) * customerName (string) * balance (float) -open output file customer.txt to write: -Write to the output file customer.txt the following information that have read input from the keyboard in the following format: accountNumber – customerName – balance For example: 1561163623- Luis Martinez – 2845.25 -close file 4B – Read from the file Open notepad, type the following lines with the file name as data.txt 1112243433 - Mary Lane – 1250.366 2123312344 – John Smith – 2134.25 1561175753 - James Smith – 1255.25 -provide the C++ code to open file data.txt to read -Use the loop to read file -Read each line of the file then display on screen -continue reading and displaying on the screen all the lines until end of the file -Write: “End of the file data.txt” on the screen -close data.txt file QUESTION 5 – Use do..while loop to redisplay the menu Provide the do..while loop to display the following menu on the screen. After users select a process; the loop must loop back to display the menu until users select 0 to exit MENU 1. Process 1 2. Process 2 3. Process 3 0. Exit Type a number 1, 2, 3 to select the Process: Read the number. Write the switch statement based on the selected number: If selected number = 1: Display “You select Process 1” If selected number = 2: Display “You select Process 2” If selected number = 3: Display “You select Process 3” If selected number = 0: Display “You select Exit” For other number: Display “Invalid Process.” LAB 5 - PART2 REQUIREMENT SP2024_DistanceConverter_yourLastname.cpp Use C++ to create an application that provides the following menu with 4 user-defined functions to convert the distance between miles and kilometers; then allow users to enter a number from 0, 1, 2, 3, 4 to select a function: SP2024_DistanceConverterApplication_Martinez.cpp MENU DISTANCE CONVERTER – LUIS MARTINEZ --------------------------------------------------- Formula: Miles to Kilometers Formula: Kilometers to Miles Estimate: Miles to Kilometers Estimate: Kilometers to Miles Exit Type a number from 1 to 4 to select the method to convert or 0 to exit: For each selected number, you should access one user-defined functions 4 USER-DEFINED FUNCTIONS are: -function converts miles to kilometers: this function reads a mile’s value from the keyboard, then apply the following formula to convert it to kilometers and display the output Distance in km= Distance in miles * 1.60935 -function converts kilometers to miles: this function reads a kilometer value from keyboard, then apply the following formula to convert kilometer value to mile and display the output Distance in miles = Distance in km* 0.62137 -function converts miles to kilometers: this function reads a mile’s value from the keyboard, then apply the following estimate to convert it to kilometers and display the output Distance in km= Distance in miles * 8/5 -function converts kilometers to miles: this function reads a kilometer value from keyboard, then apply the following estimate to convert it to mile and display the output Distance in miles = Distance in km* 5/8 HOW TO TURN IN THE LAB ATTENTION: Compress each project folder into a file .zip or a file .rar. that includes source files and execute files. -If you do not have the source file and execute file, your lab gets 0 points -If you do not provide file .exe of the part, you only have half of the max score of the part You should turn in the following files: 1.LAB4PART1_Answers_yourLastName.docx 2.Lab5_pseudoCode_yourLastName.docx (including Pseudo-code and the output pictures part2) 3.SP2024_LAB5PART2_yourLastName.zip (including file SP2024_DistanceConverterApplication-YourLastName.cpp and file SP2024_LAB5PART2_yourLastName.exe)

Posted in C++

Everything you need to know is on the files, make sure you read them. Required

Everything you need to know is on the files, make sure you read them.
Required 1. Create a wireless network using at least six Light-weight Access Points (LAPs) and a Wireless LAN Controller (WLC).
2. Set up a DHCP server and link it with WLC for dynamic IP allocation
3. Create at least three WLANs.
4. Create at least three AP Groups (at least two Groups must have two LAPs in each one).
5. Each AP group should be connected to a different WLAN.
6. Configure two different clients/end devices for each of LAPs. (For example, an AP group with two APs should have 4 clients)
7. Configure a RADIUS Server and link it to the WLC to authenticate all end users, along with WPA2 security.
8. Configure DNS service to access the WLC from a PC browser using its name.
9. Configure all devices appropriately.
10. Test your system and make sure that all devices are connected to the network with correct configurations. Troubleshoot any errors. Please note that testing and troubleshooting/corrections is part of the assignment.
on word file you are required to explain how you configured each

Posted in C++

Write a program that declares a struct to store the data of a football player (p

Write a program that declares a struct to store the data of a football player (player’s name, player’s position, number of touchdowns, number of catches, number of passing yards, number of receiving yards, and the number of rushing yards).
Declare an array of 10 components to store the data of 10 football players.
Your program must contain a function to input data and a function to output data. Add functions to search the array to find the index of a specific player, and up-date the data of a player. (You may assume that the input data is stored in a file.) Before the program terminates, give the user the option to save data in a file. Your program should be menu driven, giving the user various choices.
An example of the program is shown below:
Select one of the following options: 1: To print a player’s data 2: To print the entire data 3: To update a player’s touch downs 4: To update a player’s number of catches 5: To update a player’s passing yards 6: To update a player’s receiving yards 7: To update a player’s rushing yards 99: To quit the program 1 Enter player’s name: Bill Name: BillPosition: Quarter_Back; Touch Downs: 70; Number of Catche
s: 0; Passing Yards: 8754; Receiving Yards: 0; Rushing Yards: 573 Select one of the following options: 1: To print a player’s data 2: To print the entire data 3: To update a player’s touch downs 4: To update a player’s number of catches 5: To update a player’s passing yards 6: To update a player’s receiving yards 7: To update a player’s rushing yards 99: To quit the program 99 Would you like to save data: (y,Y/n,N) N

Posted in C++

Assessment Type: Assignments 1 Semester: 452 Assignment 1 Instructions: • Stude

Assessment Type: Assignments 1 Semester: 452
Assignment 1 Instructions:
• Students are requested to comply with all JUC examination rules and regulations strictly.
• You must work individually.
• Write the title of the Assignment number and your ID as the name of the file.
• The Assignment should have a cover page with the student’s name and ID. Reports submitted without this information will simply be discarded.
• You can refer to the textbook of this cource and it is highly recommended to refer to other academic and credible references.
• All sources of information (references) needs to be cited properly within the report (in-text) as well as be listed at the end of the report correctly.
• The work should be your own, copying from students or other resources will result in ZERO marks. Check its percentage at SafeAssign while submission (maximum of 20% is tolerated).
• This Assignment must be submitted ONLY on Blackboard.
• Email submission will not be accepted.
• Answer ALL Questions to the best comprehensive responses. Each answer is expected not less than 1 single-space page.
• You are advised to make your work clear and well-presented, marks may be reduced for poor presentation.
• Late submission will result in LOSING marks.
• Use Times New Roman font and 12 size for all your answers.
Assignment 1 Questions: (5 marks)
Question One:
Why is it important to understand tradeoffs between usability measures for various kinds of systems? Explain by describing usability motivations for Industrial systems and Life Critical systems.
Question Two:
Usability testing is a significant aspect for effective interface development. List and briefly describe any four methods of usability testing.
N.B. The question asks about methods of usability testing not tools used in usability testing (surveys are an example of tools).
Question Three:
Let’s suppose that you have in charge the task of developing interfaces for an interactive system (website, mobile application, etc.).
Sketch out the main steps that you would ultimately include in your design process.

Posted in C++

Final Project No unread replies.No replies. In the final weeks of the quarter yo

Final Project
No unread replies.No replies.
In the final weeks of the quarter you will be asked to showcase what you have learned by asking and answering a geographic question using the GIS skills you have developed throughout the quarter. In comparison with the labs, on the final project you will be expected to demonstrate a greater degree of autonomy so step-by-step instructions will not be provided. Instead you will be given a choice of four project options, each with broad instructions/guidance.
Regardless of the topic you choose, each student is expected to use at least two spatial analysis tools in QGIS and to write up a report between 500 and 1000 words explaining the specific question you asked and the context around it (introduction including research question), how you went about answering it (methodology), and what you found (results). Your report must include at least one map you made to illustrate your findings. Option 1: Gentrification in SeattleSeattle is one of the fastest gentrifying cities in the US. As of 2020, it was the third fastest gentrifying city behind Washington D.C. and Portland, OR. You can read more about gentrification in Seattle in this article from Urban@UWLinks to an external site.. In this option you are asked to use Census data to examine patterns of gentrification in Seattle. You learned how to access and clean up Census data in Lab 6. Explore the data available there and decide on a more specific research question (Ex. Which neighborhoods are gentrifying the most? Is gentrification slowing down or speeding up? How has the demographic composition of the city changed between 2010 and 2020? How does gentrification in Capital Hill differ from gentrification in Ballard? etc.) and devise a plan for how to analyze Census data to answer your question using the GIS skills you have developed over the course of the quarter. As with each option, you’ll produce a report and a map to illustrate your findings.
Option 2: Social Determinants of Health in Washington StateSocial determinants of health are the physical, economic, and social conditions of the environments in which people live that affect the overall health of a community. They include things like access to education, economic stability, access to transportation, insurance rates, the built environment, etc.
In this option, you are asked to use Washington State Department of Health data to examine the social determinants of health affecting people in Washington State. The Washington State Department of Health provides a wide variety of data on social determinants of health and health disparities, organized into an online map interfaceLinks to an external site.. Explore the data available there (note that you can download any dataset there by clicking on the bar graph to the right of the data layer in the topics table of contents) and decide on a more specific research question (Ex. How does the distribution of poverty compare with the geography of superfund sites? What is the spatial relationship between lead exposure risk and poor health outcomes? Is there a correlation between food deserts and high Body Mass Index? etc.). Devise a plan for how to analyze the data to answer your question using the GIS skills you have developed over the course of the quarter. As with each option, you’ll produce a report and a map to illustrate your findings.
Option 3: Ecological Change in Washington StateEcological change and disturbances to the environment can happen very quickly or over extended periods of time. In recent years, Washington State has faced changing patterns of precipitation, wildfires, heatwaves, and other environmental phenomena, each with their own ecological effects. In this option, you are asked to use Washington State Department of Natural Resources data to examine the spatial patterns of environmental and/or ecological change in Washington State. The Washington State Department of Natural Resources has a collection of data available to the public hereLinks to an external site.. Explore the data available there and decide on a more specific research question (Ex. How has the geography and scale of wildfires changed in recent decades? How are conservation areas distributed in the state? How are natural hazards (volcanoes, earthquakes, landslides) distributed in the state? etc.). Devise a plan for how to analyze the data to answer your question using the GIS skills you have developed over the course of the quarter. As with each option, you’ll produce a report and a map to illustrate your findings.
Option 4: Cartographer’s ChoiceDo you have your own idea of a geographic question you want to ask and answer? If so, you are welcome to do a project outside of the bounds of the three options above. If you choose this option, please first verify that you can find the data you’ll need and then share your proposed research question/data with the teaching team to verify that it is appropriate for this project.
Project Instructions
Regardless of which option you choose above, each student should:
Identify a specific research question (using the options above for guidance)
Collect secondary data and bring it into QGIS
Perform at least two spatial analysis operations (ex. spatial query, overlay (union, intersection, difference), non-overlay (buffer, dissolve, clip), raster calculation, etc.) Please note that table join and table query are not spatial queries.
Produce a map that demonstrates the results. Your map should include all map elements. Write a 500-1,000 report explaining the specific question you asked and the context around it (introduction including research question), how you went about answering it (methodology), and what you found (results)
Projects should be submitted on Canvas by Tuesday, Mar 5, at 11:59 pm.
Peer Review (15pts, Mar 6, in class)
After submitting your final project, you’ll be able to see the submissions of the other students. Offer peer feedback and/or reflections on any of your peers’ project submissions. One constructive and encouraging peer review is worth 5 points and you can earn up to 15 points for peer review. Timeline: Week 8:
Read the final project instructions.
Set your research question / acquire data/load data onto QGIS
Open a Word document, add a screenshot of QGIS map view displaying your data (layers), and write your research question, data source, and methodology with two spatial queries.
Submit the Word document by Feb. 23, 11:59 PM at (20 points )
Week 9:
Perform analysis produce a map Write a report
Week 10:
Mar. 4: Final Project Work Day, No In-Person class, ZOOM Q & A Session Submit your project by Mar. 5, 11:59 PM
Give feedback/reflection on Mar. 6, in class (up to 15 points, 5 points per one peer review)

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++

The instructions are in the README.md file attached. To configure the file in yo

The instructions are in the README.md file attached. To configure the file in your IDE, please use the CMakeLists.txt file to configure it. There are test cases based on arguments which could be found in main.cpp within the int runTest() function. Also, you need to set the working directory of the project in your IDE to the path of the project that is located on your computer. Otherwise. the test cases used to test the project are not going to work. Please note that the project contains multiple folders with different files. Be sure to open the project in your IDE with all the different folders at one place. Some of them include a JSON file and others include C++ code.

Posted in C++

Write 2 programs, one in C and one in MIPS assembly language that: prints your n

Write 2 programs, one in C and one in MIPS assembly language that:
prints your name which is (AAA )and Red ID which is (1290341)
inputs an integer number from the keyboard
shifts the input number equivalent to multiplying it by 8Shifting a binary number left or right is the same as multiplying or dividing by a power of 2. Similarly in decimal numbers moving the decimal point right or left is the same as multiplying or dividing by a power of 10. The point is to use a shift operation, not a multiply instruction.
prints the result
You must submit THREE files:
1) Your .asm MIPS assembly file named as: HW2-YourName.asm
2) Your main.c source file
3) A brief report document file in .pdf .doc or .docx including:
a description of the program
a screen shot showing both C and MIPS programs working
the .c and .asm source code MUST be pasted into the doc file

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++

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++