1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitry [639]
4 years ago
13

Assume that day is an int variable whose value is 1 or 2 or ... or 7. Write an expression whose value is "sun" or "mon" or ... o

r "sat" based on the value of day. (So, if the value of day were 4 then the value of the expression would be "wed".).
Computers and Technology
1 answer:
artcher [175]4 years ago
4 0

Answer:

((day==1)?"sun": ((day==2)?"mon": ((day==3)?"tue": ((day==4)?"wed": ((day==5)?"thu": ((day==6)?"fri": ((day==7)?"sat": "invalid")))))))

Explanation:

You might be interested in
Please help me with this question. I don’t get it
Lelechka [254]
A - they all use microprocessors to compute and store data.
3 0
3 years ago
Read 2 more answers
Hardware is defined as the physical parts of a computer
ddd [48]
Indeed, this is to be true as software is to programs and applications(apps) hardware is to physical computers such as hard drive, SSD, motherboard, ram, graphics card, ect...
8 0
3 years ago
A scientific question may lead to a(n) , which can be tested.
kari74 [83]
A hypothesis or educated guess
6 0
4 years ago
Read 2 more answers
3. A security system uses sensors at every door and window which will set off analarm if any one of them is opened. There is als
sp2606 [1]
A combination circuit would be needed for security because if you had a strait circuit if any one of those sensors or the keypad was ripped off the circuit will now let the flow of electricity be possible but with a combination circuit it helps eliminate that problem because even if on flow path is cut off, other paths are still available <span />
6 0
3 years ago
Why would you use a computer's secondary memory?
VLD [36.1K]

Answer:

I think B

Explanation:

Secondary storage is needed to keep programs and data long term. Secondary storage is non-volatile , long-term storage. Without secondary storage all programs and data would be lost the moment the computer is switched off.

7 0
3 years ago
Other questions:
  • Who would use a magnetic hard drive? Give a scenario and include examples as well as detail.
    5·1 answer
  • Shortly after its introduction, the unix software was rewritten in the popular c programming language.?
    10·1 answer
  • Please check my answer! (Java)
    7·1 answer
  • taking small bits of information from the internet/web and using it as my own work or to complete an assignment is plagiarism.
    6·1 answer
  • Write a program that calculates and displays the amount ofmoney available in a bank account that initially has $8000 deposited i
    9·1 answer
  • A company that provides finance services wants to shift to a mobile platform. What is the major advantage that the users of the
    15·2 answers
  • Police officers conducting traffic stops on minority drivers more than non-minority drivers is an example of what?
    8·1 answer
  • Which of the following is true about media production? A. All media elements contain a certain type of editorial viewpoint. B. P
    10·1 answer
  • The transmission control protocol (TCP) layer helps computers to communicate in which of the following ways?
    10·1 answer
  • While storms could be a cause, power______ are more likely to be caused by disturbances from high-demand equipment in a home or
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!