subject

Use tool 'MARS' to Solve the problem:Download printf_extension. asm in a directory. Default run of this will have error. Copy your cs47_macro. asm in the same directory. Enhance procedure 'printf' to handle escape character '\'. Anything after escape character losses its special meaning if any. For example "\\%s" should print '%s' on terminal instead of refereeing to corresponding string and print the string. Assemble and execute printf_extension. asm. After the above enhancement, the program should run ok. This should create following sample outputMy string is 'test printf' and integer is 16My name is John AdamsI am 26 year oldI love to eat pizzaI will graduate in 2015My name is %sI am %d year oldI love to eat %sI will graduate in %dNotes:1. If you run initial program without any modification, there will and exception error. Once you handle escape character this error should be gone.2. Make sure to to turn on 'Initialize Program Counter to global main if define' in the MARS editor's 'setting' pull down menu.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Your boss wants you to configure his laptop so that he can access the company network when he is on the road. you suggest a vpn connection to him. he is very concerned about security and asks you how secure vpn is. what do you tell him?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
You know the right answer?
Use tool 'MARS' to Solve the problem:Download printf_extension. asm in a directory. Default run of t...
Questions
question
Social Studies, 01.03.2021 22:50
question
Mathematics, 01.03.2021 22:50
question
Mathematics, 01.03.2021 22:50
Questions on the website: 13722363