subject
Computers and Technology, 03.04.2020 22:14 AM28

Call a subroutine to prompt the user for a path/filename for an existing mono WAV file (you will use ts9_mono. wav to debug your program). Read this path/filename from the keyboard as a string, and store it in a 1-D 200 char array. Step 2) Check that the file extension (the 3-4 letters past the last period in the path/filename) is WAV or wav. If not, notify the user of his/her error, and re-prompt the user for a path/filename (i. e. call the subroutine in 1.) Here, you can see that you should be doing steps 1,2 (and 3) inside a loop that is exited when the conditions are met. Step 3) When the user has entered a WAV path/filename, open the file as "r+b" (read and write binary – this doesn’t create a file if it doesn’t exist; it doesn’t destroy the contents of the file upon opening if the file does exist). Check the file pointer to see if it is NULL. If so, notify the user, and re-prompt (i. e. call the subroutine in 1.) starting the process over. Step 4) If the WAV file is successfully opened, use fseek( ) to go to the correct location in the file and use fread( ) to read the following from the header: Audioformat, NumChannels BitsPerSample Subchunk2Size For example, NumChannels

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 22.06.2019 05:10
Suppose we have a byte addressable computer that has a 32-byte cache with 8 bytes per block. the memory address is 8 bits long. the system accesses memory addresses (in hex) in this exact order: 6e, b9, 17, e0, 4e, 4f, 50, 91, a8, ab, ad, 93, and 94. (a) assuming the cache is direct mapped, what memory addresses will be in cache block 2 after the last address has been accessed? (b) assuming the cache is direct mapped, what is the hit ratio for the entire memory reference sequence given, assuming the cache is initially empty? (c) assuming the cache is 2-way set associative with a lru replacement policy, what is the hit ratio?
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
You know the right answer?
Call a subroutine to prompt the user for a path/filename for an existing mono WAV file (you will use...
Questions
question
Mathematics, 07.12.2021 22:40
question
English, 07.12.2021 22:40
question
Computers and Technology, 07.12.2021 22:40
question
History, 07.12.2021 22:40
question
Mathematics, 07.12.2021 22:40
Questions on the website: 13722367