why do we use case 1 and case 0 in nested switch statement before writing embedded switch statement

Why Do We Use Case 1 And Case 0 In Nested Switch Statement Before Writing Embedded Switch Statement

Answers

Answer 1

Explanation:

The fundamental difference between if-else and switch statements is that the if-else statement “selects the execution of the statements based upon the evaluation of the expression in if statements”. The switch statements “selects the execution of the statement often according to a keyboard command”.

Have a great day. <3


Related Questions

please answer this question​

Answers

The salary calculator program is an illustration of a sequential program

What are sequential programs?

Sequential programs are programs that do not require loops, iterations or conditional statements

How to write the main program

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the base number of hours

baseHours = 40

#This initializes the base payment

basePay = 600

#This initializes the overtime payment

overtimePay = 300

#This initializes the total hours worked

hoursWorked = 45

#This calculates the total payment

totalPay = baseHours * basePay + (hoursWorked - baseHours) * overtimePay

#This prints the total payment

print(totalPay)

Read more about sequential programs at:

https://brainly.com/question/26642771

state the name of the following computer components​

Answers

Answer:

Memory.

Hard Drive or Solid State Drive.

Video card.

Motherboard.

Processor.

Power Supply.

Monitor.

Keyboard and Mouse.

Explanation:

Memory
Hard Drive or Solid State Drive
Video card
Motherboard
Processor
Power Supply
Monitor
Keyboard and Mouse
Optical Drive DVD/RW
Ethernet or Wireless card


Central Processing Unit (Cpu)
Random Access Memory (Ram)
Motherboard
Solid State Drive (Ssd)
Three
Games User Interface
Floppy Drive
Conclusion
The Motherboard
Usb Ports
Hardware And Software
Disk Drive
Optical Disk Storage
Scsi
Laser Printer
Processing Devices
Keyboard And Mouse
Lcd
Internal
External
Stylus
Code
Non Volatile Memory
Utility Software

True or false: the HTTPs means that the information on a website has been fact-checked
True
False

Answers

Answer:

False

Explanation:

Please help me answer this in c++, I'm having problems trying to complete this program, thank you!
Modify the mortgage program to display 3 mortgage loans: 7 year at 5.35%, 15 year at 5.5 %, and 30 year at 5.75%. Use an array for the different loans. Display the mortgage payment amount for each loan. Do not use a graphical user interface

Answers

The program is an illustration of loops, and loops are used for iterative purposes

The complete program in C++

The main program is not given, so I will write the new program from scratch.

The program written in C++, where comments are used to explain each action is as follows:

#include<iostream>

using namespace std;

int main(){

   //This declares the required variables

   float monthlyPayment, rate, principalAmount, f;

   int years;    f=1;

.................

See attachment for the complete program

}

Read more about loops at:

https://brainly.com/question/24833629

explain the measures put in place in order to maintain each of the element of computer security

Answers

Answer:

Contains a firewall.

Try's to keep all software up to date.

Able to use antivirus software and keep it current.

Allows you to use a password

Explanation:

Computer security is important because it keeps your information protected. It's also important for your computer's overall health

Please have a great day <3

(40 PTS) Be specific
Imagine that your computer came to life, grew some arms and legs, and wants to work as your faithful butler. It only understands the most basic commands, and its only desire is to make you delicious food.
You have a jar of peanut butter, a jar of grape jelly, a loaf of bread, and a knife. How would you explain to your computer the process of making a peanut butter and jelly sandwich? Write the commands below as precisely as possible. (Be sure to use definitions if you’re using functions to complete more than one action!

Answers

Answer:

Take a knife. Cut the bread. Open the jar of peanut butter and jelly. Scope of a big chunk of peanut butter and

Which item is used in Excel to identify the row of a particular cell?
letter
number
type
sheet

The answer is B) number

Answers

Answer:

B) number

Explanation:

you are correct! for instance the cell E3 has the column E and the row 3

Two support services supervisors disagree about a position description for a new help desk position. One said, “The position description should be written as general as possible so we can choose any applicant we want.” The other said, “The position description should be as specific as we can make it so applicants will know whether or not they meet our requirements.” With which supervisor do you agree? Explain why?​

Answers

I aggree with the one that says "The position description should be as specific as we can make it so applicants will know whether or not they meet our requirements.”

Note that when the  specific requirements about a position is made known, it makes the applicant to known if they are fit for that position or not

What is a position description?

The term  position description is also known as "PD" . This is known to be a fact or a statement that talks about the key duties, responsibilities, and role etc. of a position.

It helps to indicates the work to be carried out by the position and when it is specific, one can know if they can do the work or not.

Learn more about position description from

https://brainly.com/question/4677114

Which statement best characterizes under what circumstances you should add your social media profile to a resume? You should add your profile even if it is not entirely professional. You should add your profile even if it is not entirely professional. You should add your profile, but it should be entertaining and help you stand out. You should add your profile, but it should be entertaining and help you stand out. You should not add your profile under any circumstances—it is unprofessional. You should not add your profile under any circumstances—it is unprofessional. You should add your profile, but it should be professional and positive.

Answers

Answer:

You should add your profile, but it should be professional and positive.

Explanation:

this is the most reasonable response... resumes are for careers and professions.. so you must be professional and positive (if it is for example linkedin)

You have a filtered dataset for Customer Sales with some null value rows. You want to remove these rows completely. How will you do this

Answers

The option is to Deselect (blank) in the pull-down menu for Customer Sales in the dataset.

How do one delete these rows completely?

If a person is working in the Query Editor (that is the place where one can get data, before you close and apply).

The right thing to do is to select the column that  you want to use to check for nulls and when  the values you are looking at is really blank, you can then click the drop-down and delete Rows in the ribbon, then one can click the option of Remove Blank Rows.

See full options below

Select an answer:

Deselect (null) in the pull-down menu for Customer Sales in the Power Query Editor.

Deselect (blank) in the pull-down menu for Customer Sales in the dataset.

Change the filter so null value rows are not displayed.

Place your cursor to the left of the rows, and then select Delete.

Learn more about dataset from

https://brainly.com/question/24309209

For optimum computer performance, what features and or characteristics should a
computer possess to efficiently copy any material from an external device?

Answers

A computer should be compactible and possess a good cache memory size, so as to efficiently copy any material from an external device.

What is a computer?

A computer refers to an electronic device that is designed and developed to receive data in its raw form as an input and processes these data into an output (information) that could be used by an end user.

For optimum computer performance, some of the features and or characteristics that a computer should possess, so as to efficiently copy any material from an external device (hard-disk drive) are:

CompatibilityCache memory size.The computer should have a USB 3.0 port.

Read more on computer here: brainly.com/question/959479

The quickest way to change a word is to double
click it.
Select the correct answer
O True
False

Answers

Answer:

I don't think that the fastest way to change a word is to double click it. Even though it highlights it super fast, then you just press backspace once, it doesn't compare to the one where you press the "ctrl" and "backspace" key at the same time, and it makes the whole entire word disappear in the blink of an eye. But, I am not sure if anybody really knows about this trick. So, it is 50/50.

Explanation:

:)

write an assembly program that uses the output compare function of a timer to toggle an led every second

Answers

; Set up output compare function

movlw 0x3E

movwf TOCON

; Set up LED port as output

bcf TRISB, 0

; Set up timer

movlw 0xFF

movwf TMR1

movlw 0x60

movwf PR1

; Enable timer and output compare function

bsf T1CON, TMR1ON

bsf T1CON, T1OSCEN

; Main loop

loop:

   ; Wait for output compare event

   btfss T1CON, OCF1

   goto loop

   ; Toggle LED

   bcf PORTB, 0

   btfss PORTB, 0

   bsf PORTB, 0

   ; Clear output compare flag

   bcf T1CON, OCF1

   ; Repeat

   goto loop

answer quickly!!!!! please answer as soon as you see this!
Which feature of a database displays data in a certain sequence, such as alphabetical order?

Chart
Filter
Search
Sort

Answers

Sort is the answer to this

A system that stores transactions in a single database, but processes them at various sites is referred to as

a. Centralized system.

b. Database management normalization system.

c. Decentralized system.

d. Distributed system

Answers

Answer:

d. Distributed system

Explanation:

this answer is taken from the book Wiley CPAexcel Exam Review 2015 Study Guide July: Business Environment

its important to remember that it is a single database however the processing takes place off-site. this off-site is the key to remembering it is DISTRIBUTED through various sites

RAM is like a computer’s ______________, while a hard drive is like a computer’s ______________

Answers

Explanation:

RAM is what the computer and the applications run on and hard drive is the type of memory all your files and apps are located on

Similarities in off-site and On-site

Answers

Answer:

Off prevents the page from finding your easy search terms; basically what you search for, while On page will help you improve the quality of your newly designed web page.

▬▬▬Casual Terms▬▬▬

Off page means that you are not actively viewing a page; unlike On, it would mean the exact opposite.

▬▬▬Conclusion▬▬▬

I Hope you have a great day!

Answer:

onsite is on or at a site while offsite is away from a mail location in a place not owned by a particular organization.

You work as an assistant in your school’s computer lab. A student asks you to help her install a program on her laptop using an installation disc she borrowed from a friend. You read the EULA and notice that it provides only a single-user license. What are the ethical and legal issues surrounding using a single-user license on more than one computer? What should you do?

Answers

The ethical and legal issues surrounding using a single-user license on more than one computer is that if caught, it can lead to termination of the software package that you are in.

The ethical implication is that one cannot be trusted, our integrity has have brought down to zero. The right thing to do is to explain to the student and if you can, get her another software.

What is single user License agreement?

Single User License is a term that connote that there shall be only one person to use, receive and access a product or software  and it cannot be shared with other individuals.

In Single user, the software is said to be licensed for a single user and not for Multi-user.

Learn more about User License  from

https://brainly.com/question/13502276

IM a bit confused on what this is asking for exactly.

Answers

Answer:

im not sure can you ask someone for help

Explanation:

What is the scope of AS-26

A. All of these
B.Rights and Expenditure on the exploration for or development of Minerals
C. Financial Assets
D. Intangible Assets that are covered by another as

Answers

Answer:

is held for use in the production or supply of goods and services or for rentals to others etc

[ASAP!] What is a widget?

1. a part of a GUI that allows a specific type of interaction with the user
2. an action taken by the user or a process, such as a user clicking a mouse or pressing a key on a keyboard
3. an algorithm for handling an error
4. a part of a program that responds to an event​

Answers

Answer:

A

Explanation:

A part of a GUI is the basic definition of a widget.

Comment any additional questions!

Answer:

A or number 1

Explanation:

I took the test and got a 100%, and this answer makes the most sense

Woulf you rather :
Be a Alpha Wolf
or
Be a Alpha Shark

Answers

Answer:

Alpha wolf

Explanation:

Their superior

(also what is this question? lol)

Answer:

don't know just wanted my points you stole

Explanation:

Is hacking always wrong? Creating viruses?

Answers

Answer:

yes

Explanation:

Answer:

Not every “hack” is bad, and not every hacker is a criminal. In fact, many hackers secure websites and companies from malicious actors.

creating viruses is done by negative intention hackers

You have been asked to investigate a web server for possible intrusion. You identify a script with the following code. What language is the code in and does it seem likely to be malicious? import os, sockets, syslog def r_conn(ip) s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) s.connect(("logging.trusted.foo",514))

Answers

The code below is written in JavaScript and does not seem malicious.

What is a Malicious Code?

A Malicious code is one that is not designed for any productive end but to cause disruptions in the computer with the objective of

harming the workstation; or destroying the data stored therein.

There are numerous classifications of malicious codes and they can be identified and removed by an application called an Anti-Virus or malicious app remover.

Learn more about JavaScript at:
https://brainly.com/question/16698901

Which string method returns true if the character is a lowercase letter?

letter = input("Enter a letter: ")

islower(letter)

isLower(letter)

letter.islower() * is correct

letter.isLower()

Answers

The right answer is : is.lower(letter)

Answer: islower(letter)

Explanation: got it right on edgen

help meeeeeeeeeeeeeeeee

Answers

Answer:

The advantages include much access to photos, digital functions like games and contacts with friends, videos, and you can search questions to anything you like. Disadvantages include things like too much screen time affecting sleep, health, and other physical problems. There is also exposure to explicit content and hatred from strangers.

There are hundreds of editing software for you to try, and many are free to use and are even compatible offline. They can make content related to or look like something in a movie or can be used to make things look nicer and cooler.


________ can contain stacked images, text, and other elements which collectively comprise a Photoshop file.

Answers

If you don’t mind can u add the picture it helps me Answer the question better

Does anyone who uses Visual Studios 2022 know what tool name it is for the pop up menu? Do not send me links please.​

Answers

Answer:

The Commands and Menu Bar

Explanation:

Answer:

are u using a laptop? if so click the window botton if u download the visual studio code 2022 if u didnt download it use the search bar at the bottom of your screen "type here to search" and type in visual studio code 2022 and it will show up so click on it.

A new robot is created to explore volcanoes on other planets. Which robot is
most likely to have been referenced in the design of the new robot?
A. Dante
B. Roomba
C. ASIMO
D. Sophia

Answers

Answer:

A

Explanation: Dante II is a unique walking robot that provides important insight into high-mobility robotic locomotion and remote robotic exploration. Dante's uniqueness stems from its combined legged and rappelling mobility system, its scanning laser rangefinder and its multi-level control scheme.

Explain the relationship between one’s point of view and understanding spoken text

Answers

In spoken and audio texts the tone and accompanying sounds convey a point of view. Point of view therefore constructs an attitude towards the subject matter in a text which the reader, listener or viewer is invited to adopt.

Please have a wonderful day <3

Other Questions
A glass of water with a mass of 0.45kg at 20C is to be cooled to 0C by dropping ice cubes at 0C into it. The latent heat of fusion of ice is 334kJ/kg, and the specific heat of water is 4.18kJ/kgC. The amount of ice that needs to be added is. What is 3/7 as a decimal rounded to 3 decimal places? How does the radio communication from the Mothership affect the story? It foreshadows the frightening experience the children will have exploring the new planet.It explains the work that was done to make the landing on the new planet possible. It gives background information about the children's lives before landing on the new planet.It gives Maria the strength to be the first to leave the ship to explore the new planet.First StepsTHE LANDINGAs the lander hit, Maria drew a jagged breath, and her chest muscles clenched tight with anxiety. Captain Curran, the group leader, turned around and smiled at Maria and her five friends. All right, he said with forced joviality. Who wants to be the first of the generations born in space to set foot on a real planet?Maria waited for someone else to speak or raise their hand. Next to her, Allen just stared at the floor of the lander muttering, Not me, not me.She glanced at Lily, who Maria had always known to be fearless, but Lily bit her lip and turned away. Javier looked positively gray, and the twins buried their faces in their hands. Someone would have to be first. Maria closed her eyes and took a few meditative breaths, waiting for someone else to volunteer, but the lander was silent. FINDING COURAGEThe radio crackled to life. Lander one, this is Mothership, do you copy?Yes, Captain Curran answered. Weve landed safely and are waiting to exit the lander, but theres just a littledisagreementover which pioneer wants to be the first to set foot on our new home.Tell them theres plenty for everyone to see, and theyre going to love it out there, the voice on the radio responded. I wish it were me instead of you; I miss the feel of real air on my face.Captain Curran flipped off the microphone. You six have lived your entire lives in space, and its a great privilege to be the first of your generation to see a new planet. The others are watching; if youre afraid, theyll be afraid. Cant any of you find the courage to set an example?Maria shifted uncomfortably in her seat and thought of her parents; they had traveled across the galaxy to find their family a new home, with clean air and good soil, and she knew this planet was for them. Ill do it, Captain, she mumbled as she slipped out of her harness and rose out of her seat. Maria couldnt shake the feeling of trepidation as she stood and watched the doors of the lander slide open.A NEW WORLDA burst of air hit Maria in the face. She scrunched up her nose as an unfamiliar assortment of odors hit her nostrils. Some smelled sweet, some disgusting, and some were just strange. There were never strange smells on the ship; everything was always the same there. What was it going to be like to live where things changed? The rest of the children gathered around the opening as she climbed down the ladder, and Maria tried to smile as she met their worried eyes. Then, suddenly, something crunched underneath her boots; she was standing on the surface of the planet, and it felt nothing like the smooth metallic halls that shed known all her life.Without letting go of the ladder, she turned around to look at the world around the lander. The soil was full of shapes and textures; there were some small, grainy pieces, then larger clumps that she could break with the toe of her boot. One piece was hard and smooth, and she let go of the ladder to pick it up. Captain, she called, I think Ive found a rock!The air was moving, and long, thin, green things bowed and danced. Grasses, Maria whispered to herself, remembering the videos in her science lessons. She let go of the ladder and took soft, slow steps and realized her arms and legs felt like they were full of lead. Natural gravity, she whispered to herself. She started to walk a little more quickly, getting used to the new sensation. She was doing what others had previously thought impossibletaking steps on a new world.A creature with gossamer wings landed on her nose, and she crossed her eyes trying to get a good look at it. Something small and furry scurried across her feet as she spun in a slow circle. Inspired, she ran as fast as she could across the foreign soil; shed never seen somewhere so big, and it was thrilling. Suddenly, a deep, low sound echoed around her. Thats the call of a hornbeast, Captain Curran shouted from the bottom of the ladder. Maria glanced back and saw that he was helping her friends take tentative first steps in the new world. Walk to your left a little, and there should be a streamflowing water on the ground; they often go there to drink, the explorers say.She started to run in that direction and then paused. Hurry up! she yelled, unable to contain her enthusiasm. Our new home is extraordinary! In outer space, a piece of rock continues moving at the same velocity forthousands of years. What makes this possible? Which sentence is correct?We watch the TV show "Are you Afraid of the Dark?" every week.We watch the TV show Are You Afraid of the Dark? every week.We watch the TV show "Are You Afraid of the Dark?" every week. Which statement is true of all proteins? (1 point)They are created by mutations in DNA.They carry oxygen in human blood.Their main function is to cause mutations.Their structure is related to their function. First answer that is right gets brainliestChoose the adverb in the sentence.When he looked into the backyard, Josh noted his brother and sister happily playing.notedbackyardhappilyplaying Over the past four decades, researchers have identified many types of ______. Examples include growth factor receptors, transcription factors, and intracellular signaling proteins GERMAN INVASION OF NEUTRAL BELGIUM, 19141. Describe this event. What happened?2. How serious an offense was this (give it a score from 1 to 10,1 being not very serious, 10 being very serious) Find the mean of the data.Pls help ASAPPPP The zeros of a polynomial are 1/2 and 3/7. Find the polynomial.___x+x ___ PLEASE HELP! Will try to give the brainliest! 25 points1. Je vais la cantine ____ une heure.2. J'ai prpar ma premire ratatouille ____2012.3. _____ le 5 octobre, ce restaurant est trois toiles.4. Je suis reste au caf ______ trente minutes.5. Il a mang ______ midi (12 heures). What are the y-intercepts of this conic section?(0, 4) and (0, 4)(0, 2) and (0, 2)no y-intercepts(2, 0) and (2, 0) Choose the correct answer in each number.4. An axe is an example of a _____?A. pulley B. inclined plane C. wheel and axle D. fulcrum5. A seesaw is an example of a _____?A. wedge B. lever C. inclined plane D. pulley6. A device that has two or more machines working togetherA. fulcrum B. pulley C. complexmachine D. motor7. Stairs"A. wedge B. pulley C. inclined plane D. wheel and axle 8. Bulb" A. wedge B. pulley C. inclined plane D. screw 11. Hammer"A. wedge B. lever C. inclined plane D. wheel and axle 12. What type of simple machine is this?(doorknob)A. wheel and axle B. gear C. lever D . inclined plane13. The fixed point on the lever is called _____.A. load B. resistance C. bar D. fulcrum i need help from the problem below What would be the appearance of a cell that completes mitosis without completing cytokinesis?. 120 feet is to 150 feet as 8 feet is to ten feet write the proportion HELP PLEASE!!! AND PLEASE SHOW HOW TO DO IT Help!!!!!!!!!!!!! Please maybe brainliest IF IT iS RIGHT;))You resize a picture so that the radius of the midday Sun appears four times larger. How much larger does the circumference of the Sun appear?The circumference appears (BLANK) times larger.