Develop a program that allow to determine through a function the alary to be paid for a aleperon baed on 15% of the ale made. The ale made are undetermined or may vary. - indicate through comment in programming which variable identifier are local, - demontrate the ue of the concept of a global variable, ue a variable identifier called alary to repreent the concept of a global variable. Which are global and the

Answers

Answer 1

Here is an example of a program that allows you to determine the salary to be paid to a salesperson based on 15% of the sales made. This program uses the concept of global and local variables, as well as comments to indicate which variables are local.

// Global variable to hold the salary

double salary;

// Function to calculate the salary based on the sales made

double calculateSalary(double sales)

{

   // Local variable to hold the percentage of the sales

   double percentage = 0.15;

   

   // Calculate the salary based on the percentage of the sales

   double salary = sales * percentage;

   

   // Return the calculated salary

   return salary;

}

int main()

{

   // Input the sales made by the salesperson

   double sales = 0;

   cin >> sales;

   

   // Calculate the salary using the calculateSalary function

   salary = calculateSalary(sales);

   

   // Output the calculated salary

   cout << "The salary is: " << salary << endl;

   

   return 0;

}

In this program, the calculateSalary function takes in the sales made by the salesperson as an input and returns the salary to be paid based on 15% of the sales. The calculateSalary function has a local variable called percentage that holds the percentage of the sales to be used to calculate the salary.

The main function is used to input the sales made by the salesperson and call the calculateSalary function to calculate the salary. The salary variable used in the main function is the same global salary variable defined at the beginning of the program, which is used to store the calculated salary.

The comments in the program indicate which variables are local (e.g. percentage) and which are global (e.g. salary). This can help to clarify the scope and purpose of each variable used in the program.


Related Questions

1. Identify about two to four different buine application in your organization (e. G. E-mail, order fulfillment, cutomer ervice, e-procurement, telehealth etc. ). Decribe which buine application are more amenable to cloud computing and why. If you already implemented cloud functionality for ome of the application, preent the reaon why you decided to move to the cloud. Identify which platform (e. G. Amazon AWS or Microoft Cloud) you would ue for cloud implementation

Answers

Four different buine application in your organization are MicsoSoft office 365 (Saas) for Email services, Oracle Netsuite (saas) for order fuifilment, Zen desk for customer service, vitro commerce

let us consider there is an organization That organization Consists of 100 employees.

It require Some business application like,

MicroSoft office 365 (Saas) for Email services

Oracle Netsuite (saas) for order fuifilment

Zen desk for customer service.

vitro commerce e-procurement solution for E - procurement and Aws (paas) for hardware and software solution.

All these business applications are amenable to cloud computing for the organization because of Cost-effectiveness,

steam line the flows of work and services

Time saving

unlimited storage

backup and Mobility.

The on -demand Self-service with advanced online

The term "use" refers to the advantages derived from an item or service. The "application" refers to the usage of the service or product to achieve the advantage in several domains.

Learn more about Application here:

https://brainly.com/question/28650148

#SPJ4

Please simplify the expression: Av(BvA)^¬(¬AvB)
Algebra of logic.

Answers

If A and B are statement variables, the disjunction of A and. B is A V B, which is read “A or B”. ▫. A V B is true when at least one of A or B is true.

What is disjunction?In logic, disjunction is a binary connective (∨) classically interpreted as a truth function the output of which is true if at least one of the input sentences (disjuncts) is true, and false otherwise. Its supposed connection with disjunctive words of natural language like or has long intrigued philosophers, logicians and linguists. In this entry we give an overview of logical and linguistic analyses of disjunction with focus on developments at the interface between logic and language. Sections 1 and 2 present disjunction as a binary connective in classical logic and in a number of non-classical interpretations. Section 3 discusses some basic facts concerning disjunctive words in natural language, and introduces a generalized, cross-categorial notion of disjunction as the join operator in a (Boolean) algebra.

To learn more about algebra refer to:

https://brainly.com/question/12602543

#SPJ1

the following is an example code of openmp code for calculating max of a sequence of numbers. the memory architecture used by this openmp code is shared memory. is the above statement true or false?

Answers

Yes, the following example of openmp code calculates the maximum value in a series of numbers. This openmp code makes advantage of shared memory as its memory architecture.

What does a computer's memory mean?

Memory serves as the computer's electrical storage facility for such instructions and data that it needs to access fast. Information is kept there for quick access. A smartphone's ram is one of its fundamental components since without it, a machine would be unable to operate as intended.

What is memory, and what does it do?

Memory is a process or system that stores new information for later use. Information is encoded, stored, and then retrieved using our memory. Information is entered onto our storage device through the process of encoding.

To know more about memory visit:

https://brainly.com/question/16091648

#SPJ4

analysis of a compromised hard drive image found an email message that was sent from a company employee to an external email address. the message contains information that is private to the company. what conclusion can you draw from this?

Answers

The employee's IP address was used to send prprietary information outside the company. More investigation is needed to determine who is responsible

What is Computer Security?

Computer security is the safeguard put in place for computer systems to protect sensitive data from illegal access, theft, or misuse. There are numerous procedures in place that are frequently used, mostly for the safety of computer networks and systems as well as to thwart potential hostile activity.

Critical information and system access and authorization are protected using intricate security techniques and procedures, in contrast to computer hardware, which is secured in the same way as sensitive equipment like lockers and doors.

To know more about security visit:

https://brainly.com/question/5042768

#SPJ4

Complete Question:

Analysis of a compromised hard drive image found an email message that was sent from a company employee to an external email address. The message contains information that is private to the company. What conclusion can you draw from this?

a)The employee has sent prprietary information outside the company, and action should be taken against that person.

b)The employee's computer was used to send prprietary information outside the company. More investigation is needed to determine who is responsible.

c)The employee's computer has clearly been hcked.

d)The employee's IP address was used to send prprietary information outside the company. More investigation is needed to determine who is responsible.

Which programming language type is the most basic human-readable and closest to actual machine language?.

Answers

Answer:

Assembly language

Explanation:

an attack that targets senior executives and high-profile victims is referred to as what? answer whaling vishing pharming scrubbing

Answers

Whaling is a type of cyber attack that specifically targets senior executives and high-profile victims.

What is pharming scrubbing?

Pharming scrubbing is a type of cyber security protection that helps prevent malicious attacks on a network by blocking phishing, pharming, and other malicious activity. It works by continuously monitoring the network for suspicious activity and blocking any malicious activity before it can spread. This type of security helps to protect the network and its users from becoming victims of cybercrime.

It is an advanced form of phishing and utilizes social engineering techniques to persuade victims to divulge sensitive data or financial information. Whaling takes the form of an email or other electronic communication that appears to be from a legitimate source, such as a financial institution, government agency, or law firm. It is often used to gain access to confidential information, such as passwords, account numbers, and other sensitive data. Whaling is a growing threat, and organizations should take proactive steps to protect themselves from this kind of attack.

To know more about pharming scrubbing click-

https://brainly.com/question/23411633

#SPJ4

Which expression has both 8 and n as factors?
8 n
8+n
8n

Answers

Answer:

8n

Explanation:

When analyzing the performance of student on Exam 1, which of the following would not be useful "dimension" in an OLAP data cube?
a. email addresses
b. class standing
c. class section
d. academic major

Answers

Answer:

a. email addresses

When is the best time to introduce the aesthetics and feel of a game to the player?

A.
after they’ve mastered the first level

B.
when they begin the first level

C.
in the game credits

D.
about halfway through the game

Answers

Answer: B

Explanation:

pls answer this
Digital citizens are those who use the internet regularly and effectively. What are three (3) good qualities of a responsible digital citizen?

Answers

Answer:

Three good qualities of a responsible digital citizen are:

Respect for others: A responsible digital citizen respects the rights and opinions of others online. This includes not engaging in cyberbullying or harassment, and being respectful in online discussions and debates.Protecting personal information: A responsible digital citizen takes steps to protect their personal information online. This includes using strong passwords, avoiding sharing personal information with strangers, and being aware of online scams and fraud.Being informed and aware: A responsible digital citizen is informed and aware of the risks and potential harms of the internet. This includes being aware of the potential for online harassment, cyberbullying, and other forms of online abuse. A responsible digital citizen also knows how to report such incidents and seek help if needed.

if a system's instruction set consists of a 5-bit opcode, what is the maximum number of output signal lines required for the control unit?

Answers

The maximum number of output signal lines required for the control unit in a system with a 5-bit opcode is 32.

What is opcode ?An opcode, short for operation code, is a binary code that specifies an operation to be performed by a computer's central processing unit (CPU). It is part of an instruction that is used to execute a specific task, such as performing a calculation, accessing memory, or transferring data.With a 5-bit opcode, there are 2^5 = 32 possible unique opcodes, so the control unit will need at least 32 output signal lines to specify all of the possible operations.The number of output signal lines required for the control unit may be higher if the system has a larger instruction set or if additional control signals are needed to specify the operations. The exact number of output signal lines will depend on the specific architecture and design of the system.

To learn more about opcode refer :

https://brainly.com/question/13014323

#SPJ4

you have partitioned and formatted a new hard drive, sdc. you want to mount the first partition on sdc to directory /mnt/newdisk. which command will perform the mount correctly? answer mount /dev/sdc1 /mnt/newdisk mount /dsk/sdc first /mnt/newdisk mount /sdc1 /mnt/newdisk mount /mnt/newdisk /dev/sdc1 mount /dev/sdc /mnt/newdisk

Answers

Support is provided by the home partition by the extended partition. Four primary partitions is the most that can be present on a hard drive.

What is extended partition?You can install an operating system on a partition that is designated as a major partition. When the machine turns on, the OS is loaded from a primary partition that has an operating system already installed. On early versions of Windows and DOS operating systems, the primary partition had to be installed first, even though it can exist without an operating system. Up to four primary partitions—or three primary and one extended partition—can exist on a single drive in modern versions of Windows.A partition that can be split up into more logical drives is an extended partition. You do not need to give it a drive letter or install a file system, in contrast to a primary partition. The operating system can be used to extend the partition by adding a number of logical discs. The appearance of each logical drive as a separate drive is determined by its unique drive letter. The amount of free space on the expanded partition and the number of drive letters still accessible on your system are the only restrictions on the number of logical drives you can create.

To Learn more About extended partition refer to;

https://brainly.com/question/14046091

#SPJ4

What is the most obvious purpose of games?

A.
teaching logic
B.
having fun
C.
encouraging cooperation
D.
learning a new skill

Answers

Answer:

b

Explanation:

In Scratch, what do you use to create instructions that make characters perform tasks?

A.
code snippets

B.
code blocks

C.
code notes

D.
code colors

Answers

Answer:

A

Explanation:

part A It is confusing to give an complete explanation

there is no difference between declaring an object of an ordinary class and an object of a template class. true false

Answers

The supplied claim that "declaring an object of an ordinary class and an object of a template class has no difference" is untrue.

What is a class template?

By employing a complex type specifier, a class template can be declared without being specified. an illustration would be templateclass L, class T> class Key. As a class template name, the name is now reserved.

What does an OOP template class do?

A template is a blueprint or formula for constructing a generic class or a function. Generic programming is demonstrated through library containers like iterators and algorithms, which were created utilizing the template notion.

To know more about template class visit:

https://brainly.com/question/13566912

#SPJ4

Tet if a number grade i an F (le than or equal to 65). If o, print "That' not good. ". Hint: Grade may be decimal. Sample Run Enter a Number: 60 Sample Output That' not good

Answers

Henrik Ibsen | The Norwegian playwright who changed the theatre.

Create the following global security groups in the Users container for each administrative role: PasswordAdmins ComputerAdmins GPOLinkAdmins Use the Delegation of Control wizard to delegate the necessary permissions at the correct level to each group. In the wizard, use the common tasks option for delegating control

Answers

PasswordAdmins: can reset passwords for any user in domain and force password change at next logon.

ComputerAdmins: can join computers to domain for the entire domain.

GPOLinkAdmins: can manage GPO links for the  departmental OUs (Accounting, Marketing, Research-Dev, Sales, and Support).

What is a domain?

The subject matter a computer program is intended to address is called a domain. The phrase is utilised in software engineering. Formally, it represents the focus of a particular programming project, whether that focus is restricted to a specific area or is more general.

A specific programming project, for instance, might have had as its objective the development of a program for a specific hospital, with that hospital serving as the project's domain. Another option is to broaden the project's purview to cover all hospitals.

When creating a software program to address a problem in the field of computer programming, a process known as domain engineering, you define a domain by defining a set of standard requirements, terminology, and functionality. Also used as a synonym for application domain is the word domain.

Learn more about domain

https://brainly.com/question/20204532

#SPJ4

Ayaan doesn’t like the way that a particular game ended. She feels disappointed and frustrated. What did Ayaan not like about the game?

A.
the objective
B.
the outcome
C.
the rules
D.
the control method

Answers

Answer:

the outcome

Explanation:

she didn't like the way the game ended therefor she didn't like the out come.

Answer:

B. the outcome

Explanation:

Ayaan did not like the outcome of the game. The outcome of a game refers to the final result of the game, including who wins or loses and how the game ends. Ayaan's disappointment and frustration likely stem from the fact that she did not like the way the game ended and was not satisfied with the outcome.

what should the server do if they have any doubts regarding whether a patron is obviously intoxicated?

Answers

The server ensures the patron leaves within a reasonable period of time if they have any doubts regarding whether a patron is obviously intoxicated.

What are the strategies used to prevent intoxication?

The strategies that can be used in order to prevent intoxication are as follows:

Make water available and have staff offer it regularly to encourage patrons to pace their alcohol consumption. Encourage patrons to stop drinking or consume non-alcoholic drinks before they reach the point of undue intoxication. Lower the entertainment noise level to allow patrons to talk; this slows down drinking.

Once a patron becomes intoxicated, they must leave the premises and not be allowed back in. While they may have accepted your offer of a non-alcoholic drink, they will still need to leave.

To learn more about Intoxication, refer to the link:

https://brainly.com/question/13614186

#SPJ1

in order to create, modify, and gain access to a database, special software, called the database management system, is required.
true
false

Answers

A database management system (DBMS) is a software program used to construct and administer databases. It can be used by one individual personally or by a group of people in an organization.

A database quizlet is created, modified, and accessed using what software?

A particular piece of software called a database management system is needed in order to create, change, and obtain access to a database.

What database administration systems require the nodal organization of record fields?

A hierarchical database is a type of data architecture in which information is kept in the form of records and arranged into a parent-child structure that resembles a tree and allows for the possibility of multiple child nodes under one parent node.

To know more about Database management system visit;

https://brainly.com/question/13467952

#SPJ4

the four phases described in slides for forensics process are identification, collection, preserving and analyzing. making a secure hash of a memory dump is in phase called

Answers

Identification, collection, preservation, and analysis are the four stages of the forensics process that are covered in the slides. A memory dump's secure hash is created during the preservation phase.

What is the primary goal of forensic science?

A crucial component of the criminal justice system is forensic science. To produce unbiased conclusions that can aid in the investigation and prosecution of crime perpetrators or clear an innocent person of suspicion, forensic scientists examine and analyze evidence from crime scenes and other locations.

How does forensic science aid in crime-solving?

Forensic scientists frequently participate in the hunt for and evaluation of physical traces that may be helpful for establishing or rejecting a relationship between a suspect and the crime scene or victim in criminal cases.

to know more about the forensic process here:

brainly.com/question/29415408

#SPJ4

a crud matrix is a tool to represent where each dfd process occurs in a system. the acronym crud is used for:

Answers

Create, Read, Update, and Delete is referred to as CRUD. The programs or processes that add, read, update, or remove records from a master file are displayed in a CRUD matrix.

What is CRUD matrix?A CRUD matrix is a table that enables you to see and alter the operations (Create, Read, Update, or Delete) that your processes carry out on resources or data. When you have at least one process, one resource, and one data object generated, you may open the appropriate matrix by choosing Tools Resource CRUD Matrix or Tools Data CRUD Matrix.Select the appropriate cell and check or uncheck the boxes in the Current Cell Value groupbox to alter the CRUD values for a process.The Client data is read and updated during the Process Order step, and the Credit Card data is read during the Confirm Order Shipment process.

To Learn more About CRUD matrix refer to:

https://brainly.com/question/29223307

#SPJ4

Digital citizens are those who use the internet regularly and effectively. What are three (3) good qualities of a responsible digital citizen?

Answers

Answer:

Respect for others: A responsible digital citizen shows respect for others by not engaging in cyberbullying or other forms of online harassment. They also respect the privacy and personal boundaries of others, and do not share personal information without permission.Ethical behavior: A responsible digital citizen follows ethical principles when using the internet, such as not engaging in activities that are illegal or harmful to others. They also avoid plagiarism and other forms of intellectual property theft, and respect the rights of others.Critical thinking: A responsible digital citizen uses critical thinking skills when using the internet, such as evaluating the credibility and reliability of sources and information. They are able to discern fact from fiction, and avoid being swayed by fake news or other forms of disinformation.

during the step of checkpoint, there is a system crash in the middle of the updates. how does the journaling technique handle such crash to achieve data consitency

Answers

If the crash occurs during updates to achieve data consistency FSCK( file system consistency checks) journal work.

What does "data consistency" mean?

Data consistency indicates that each user sees an identical representation of the data, including any modifications brought about by their own transactions and those of other users.

How can you tell if data is consistent?

Using the online applications CHECK DATA, CHECK INDEX and CHECK LOB is one technique to verify data consistency. When doing a conditional restart, a point-in-time recovery, or data repair, you might want to use these utilities.

To know more about data consistency visit:

https://brainly.com/question/28272691

#SPJ4


What kind of file is this? What is it used for? Describe a situation where you might want to create
this type of file.

Answers

What is the file called u gave a blank statement

What kind of file is this? What is it used for? Describe a situation where you might want to create
this type of file.

as an inbound professional you might be sending many different types of emails, even one-to-one communication emails. what will you need to send one-to-many emails?

Answers

You will need E-mail service provider to send one-to-many emails.

What is one to one communication emails? One-to-one communication emails are private messages sent between two people. They are often used to discuss confidential matters, to provide personalized feedback, or to make plans or coordinate schedules. They are not broadcast to a large group of people, like a newsletter or a mailing list. The purpose of one-to-one communication emails is to maintain a direct, private line of communication with a specific person. They can be used to discuss work-related matters as well as personal ones, and are often used as a more efficient way to communicate than talking on the phone or in person. This is ideal for confidential conversations, specific requests, or sensitive topics.

To learn more about communication emails refer to:

https://brainly.com/question/29506010

#SPJ4

what is 802.11ac?
Explain in short.




[tex] \\ \\ \\ [/tex]



don't spam-
ty-​

Answers

Answer:

802.11ac is a wireless networking standard that uses multiple antennas to increase the speed and range of Wi-Fi networks. It is the successor to the 802.11n standard. 802.11ac is also known as Wi-Fi 5. it uses the 5 GHz band and is backward compatible with 802.11a/b/g/n devices.

Janet is looking to organize her folders on her Windows computer. She opens File Explorer to start. What should she do to create a new folder?

A.
right click where she wants the folder

B.
hold Ctrl + F where she wants the folder

C.
double left click where she wants the folder

D.
hold Alt + Ctrl where she wants the folder

Answers

Answer:

A. right click where she wants the folder

To create a new folder, Janet should

A. right click where she wants the folder

How to create a new folder

To create a new folder in File Explorer on a Windows computer, Janet should right-click on the location (folder or directory) where she wants to create the new folder.

When she right-clicks, a context menu will appear, and one of the options in that menu will be "New." Clicking on "New" will display a submenu, and from that submenu, she can select "Folder" to create a new folder at the desired location.

Learn more about create a new folder at

https://brainly.com/question/30924755

#SPJ2

which is a high-level, dynamic, open-source scripting language designed to be easy to read and simple to run?

Answers

Python is a high-level, dynamic, open-source scripting language designed to be easy to read and simple to run.

What is python language?

Python is a general-purpose programming language that is interpreted, object-oriented, and high-level. It was created by Guido van Rossum and released in 1991. Python is used for a variety of applications including software development, web development, scientific and numeric computing, artificial intelligence, system automation, and more. It has a simple, easy-to-learn syntax which makes it a popular choice for beginners. Python also has an extensive collection of libraries and frameworks which makes it easy to develop complex programs and applications. Python is available for all major operating systems and can be used for developing both desktop and web applications. Python is an open-source language and is free to use.

To learn more about python refer to:

https://brainly.com/question/26497128

#SPJ4

One of the first tasks to complete when creating a game is to describe the _____________ of the game to yourself.

A.
elements

B.
sprites

C.
colors

D.
sounds

Answers

Answer: B

Explanation:

Becauseyou need the chracter before u can add colors or sounds to the game

Answer:

your answer would be A. elements

Explanation:

Other Questions
The principle that the just noticeable difference between two stimuli is always a constant is called _____. A test is worth 100 points. Each problem is worth either 2 points or 5 points. The number of 5-point problems is 22 fewer than the number of 2-point problems. How many problems of each type are on the test?There are___five point problemsThere are___two point problems Some of the elements of ____________ are a focus on a shared mission, a willingness to work together toward the same goals, and a sense of trust in each otherteamwork Santiago is a graduate student from Mexico. He experiences a culture shock during his stay in the US. Which of the following statements is most likely to be true about Santiago's observations in the US?a. he finds that people seek more personal space than himb. he finds that vegetarian people stand out from a group and are thus undesirablec. he finds hat people are more likely to stigmatize people seen as different than his countryd. he finds that people are inefficient and time-wasting Calculate 30% of 100 km. Which sentence is true of all Brnsted-Lowry bases? A. They can donate a hydrogen ion. B. They can accept a hydrogen ion. C. They can produce hydronium. D. They are positively charged. E. They are negatively charged. 1. You made a decision that you are doing to take care of the animals for the Claus family so they can go to awarmer climate for their vacation this year. They will be on vacation the months of January and February. You willbe in North Pole, Alaska caring for their Reindeer, dogs, and hanging out with some of the Elves that take care ofthings.The weather for January 2022 and February 2022 are files found with the TGA.Find the change in temperature (from the high and low) for the first day and last day of each month. How wouldyou have to pack for this trip?2. What was the hardest part for you? Explain why. The price (in dollars) of a stock tracked from noon to three on a given day is shown by the function f(t) = 0.1(t - 2)3 + 6 where t is in hours. Find the rate at which the stock price was changing at one o clock. the four phases described in slides for forensics process are identification, collection, preserving and analyzing. making a secure hash of a memory dump is in phase called Write the quadratic equation whose roots are 6 and -4, and whose leading coefficient is 1.(Use the letter x to represent the variable.) Jenna gets an iTunes gift card for her birthday and decides to buy some games and some music the music she likes costs $1.99 per song and the games costs $3.99 each if she buys a total of 12 items and spends $18.88 how many of each item did she buy Which of the following is NOT true about the role of the Supreme Court in our government?a.It is the court of last resort for those looking for justiceb. It ensures that each branch of government recognizes the limits of its own powerC.It has original jurisdiction to issue writs of mandamusd.It strikes down laws that violate the Constitution Gary is collecting stamps and wants to collect the same number of stamps each week. He currently has 520 stamps. He only has 6 more weeks to collect the remaining stamps that he needs for his collection. He needs a total of at least 1000 stamps before he is done. Graph the answer to the inequality. Drag each label to the correct location.Sort the characteristics of states of matter based on whether they change. Explain the importance of Sir Syeds writings on the Muslim Community in India.(7-mark) A shelf has 20 bags of potatoes. Two of the bags have potatoes starting to go bad. The probability of drawing a bag with bad potatoes is less than 1. The probability of drawing a bag with good potatoes is greater than 0. What is the probability of drawing a bag with bad potatoes? what is the expected probability of the complement of the event?. Theater tickets cost $2.50 for children and $3.50 for adults. The price for 9 tickets was $29.50. How many adult tickets were purchased? miguel is currently in class where he is alert with his eyes open. what type of brain wave is most likely predominant in this scenario? Use the model to answer the question.a 10 by 10 grid is shown. 5 columns and 1 row are shaded.Choose the numbers to find the product shown by the model. 0.5 ____ = _____ Ferum + nitric acid =What does it equals to ????