edgartorres5123
16.03.2020 •
Business
Set nummatches to the number of elements in uservalues (having num_vals elements) that equal matchvalue. ex: if matchvalue = 2 and uservals = {2, 2, 1, 2}, then nummatches = 3.#include int main(void) {const int num_vals = 4; int uservalues[num_vals]; int i = 0; int matchvalue = 0; int nummatches = -99; // set nummatches to 0 before your for loopuservalues[0] = 2; uservalues[1] = 2; uservalues[2] = 1; uservalues[3] = 2; matchvalue = 2; /* your solution goes here */printf("matchvalue: %d, nummatches: %d\n", matchvalue, nummatches); return 0; }2)write a for loop to populate array userguesses with num_guesses integers. read integers using scanf. ex: if num_guesses is 3 and user enters 9 5 2, then userguesses is {9, 5, 2}.#include int main(void) {const int num_guesses = 3; int userguesses[num_guesses]; int i = 0; /* your solution goes here */return 0; }3)array testgrades contains num_vals test scores. write a for loop that sets sumextra to the total extra credit received. full credit is 100, so anything over 100 is extra credit. ex: if testgrades = {101, 83, 107, 90}, then sumextra = 8, because 1 + 0 + 7 + 0 is 8.#include int main(void) {const int num_vals = 4; int testgrades[num_vals]; int i = 0; int sumextra = -; // initialize to 0 before your for looptestgrades[0] = 101; testgrades[1] = 83; testgrades[2] = 107; testgrades[3] = 90; /* your solution goes here */printf("sumextra: %d\n", sumextra); return 0; }4)write a for loop to print all num_vals elements of array hourlytemp. separate elements with a comma and space. ex: if hourlytemp = {90, 92, 94, 95}, print: 90, 92, 94, 95note that the last element is not followed by a comma, space, or newline.#include int main(void) {const int num_vals = 4; int hourlytemp[num_vals]; int i = 0; hourlytemp[0] = 90; hourlytemp[1] = 92; hourlytemp[2] = 94; hourlytemp[3] = 95; /* your solution goes here */printf("\n"); return 0; }
Solved
Show answers
More tips
- G Goods and services How to Choose the Best Publishing House for Your Children s Book: Tips and Recommendations...
- S Science and Technology When do we change our clocks?...
- A Animals and plants How to Teach Your Parrot to Talk?...
- F Family and Home How to Remove Fading from Clothes: Tips and Tricks...
- F Food and Cooking How to Make Polendwitsa at Home?...
- F Family and Home Parents or Environment: Who Has the Most Influence on a Child s Upbringing?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
Answers on questions: Business
- B Business What are the two methods used to translate financial statements and how does the functional currency play a role in determining which method is used? Provide academic support...
- B Business Products is a manufacturer of large flower pots for urban settings. The company has these standards: LOADING...(Click the icon to view the standards.) Requirements 1. Compute...
- B Business Read the Suburban Homes Construction Project case study found at the end of chapters 1 through 4, CPM 4e and answer the following questions in a paper formatted using a...
- B Business The Recovery Continuum A. is a Shared Situational Picture (SitPic) of the recovery operations. B. is the model that is used to determine when recovery efforts should end....
- B Business What can you do if you aren’t sure how to create good content for your website? a) hire a copywriter. b) stick with headings and captions. c) write anything to fill the...
- B Business Fong corporation sold $2,000,000, 7%, 5-year bonds on january 1, 2017. the bonds were dated january 1, 2017, and pay interest on january 1. fong corporation uses the straight-line...
- B Business All funds entrusted to a licensee on behalf of another party in the practice of real estate are by definition ....
- C Computers and Technology Athesaurus can be used to look up a (n) or word similar in meaning to a given word...
- C Computers and Technology How is a technical certificate like a computer-related associate degree?...
- E English Ais a graphical representation of association between variables. a. scatterplot b. regression plot c. graphical plot d. variable plot user: standard deviation refers to...
Ответ:
No, the project will not bring in enough benefit to cover the costs.
Explanation:
In a project or business enterprise there is a need to do a cost-revenue analysis with the aim of maximising profit.
If the revenue generated by a project is more than the cost, then it is viable and profitable.
However if the revenue is less than cost then the project will not be sustainable.
In the given scenario the clean up project is estimated to cost the tax payers an additional $15,000.
The city will have an estimated revenue of $12,000 from the highway being cleaned.
As the revenue is less than the cost it is better to discontinue the project.