subject

Level 1 programming task write the function getpop(char mycode[3]), which takes in a two-digit string representing the state or territory code and returns the associated state or territory population. the function should open and scan the file uspops. txt for the input two-digit code, mycode. if mycode is not found in the file, the function should return -1. make sure to close the file once the file reading is complete. level 2 programming task write the function getrank(int mypop), which takes in an integer representing a state or territory population and returns its rank. the function should open the file uspops. txt and compare mypop to the populations for all states and territories. example: california is the most populous state with 39536653 people, so when getrank(39536653) is called, the function should return 1 (because there are 0 states with a greater population than 39536653). make sure to close the file once the file reading is complete. level 3 programming task write the function state_totalpop(state* headstate), which takes in a pointer to the head element of a linked list and returns the total population sum for all elements in the list.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
You know the right answer?
Level 1 programming task write the function getpop(char mycode[3]), which takes in a two-digit strin...
Questions
question
Computers and Technology, 01.07.2019 14:30
Questions on the website: 13722367