subject

Assume that month is an int variable whose value is 1 or 2 or 3 or 5 or 11 or 12. write an expression whose value is "jan" or "feb or "mar" or "apr" or "may" or "jun" or "jul" or "aug" or "sep" or "oct" or "nov" or "dec" based on the value of month. (so, if the value of month were 4 then the value of the expression would be "apr", conditional operator so i need to : and ? .(month==1)? "jan": (month==2)? "feb": (month==3)? "mar": (month==4)? "apr": (month==5)? "may": (month==6)? "jun": (month==7)? "jul": (month==8)? "aug": (month==9)? "sep": (month==10)? "oct": (month==11)? "nov": (month==12)? "dec": isn't quite right for the compiler i am currently using.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
You know the right answer?
Assume that month is an int variable whose value is 1 or 2 or 3 or 5 or 11 or 12. write an expressi...
Questions
question
Mathematics, 05.11.2020 19:30
question
Mathematics, 05.11.2020 19:30
question
Mathematics, 05.11.2020 19:30
question
Social Studies, 05.11.2020 19:30
question
Computers and Technology, 05.11.2020 19:30
question
Mathematics, 05.11.2020 19:40
Questions on the website: 13722359