if a worksheet is slightly wider and taller than the normal margins, use a scale to fit to keep all the information on one page.
This feature will automatically scale the contents of the worksheet to fit within the page margins. This allows you to fit all the information on one page without having to manually adjust the margins or font sizes.
A worksheet in an Excel document consists of cells arranged in rows and columns. Cells can contain formulas, values, text, images, data, and charts. A worksheet can also contain named ranges and tables.
For more questions like Worksheet click the link below:
https://brainly.com/question/10038979
#SPJ4
if a worksheet is slightly wider and taller than the normal margins, use to keep all the information on one page.
Scale to Fit
Page Layout
Orientation
Margins
When adding a new active directory user through a powershell cmdlet, the option specifies the name of the user object in active directory.- Name- User principal name- Given name- Surname
Name is the best choice because it gives the user item in Active Directory a name.
Where on the machine is the user?Select "Local Groups and Users -> Users" under Computer Management. You can see all of the online accounts, their complete names (or display names), the names that Windows uses internally, and in some situations, a description on the right side.
What part does the user play?A user can be assigned a user role according to their position title or even other criteria. User roles are specified categories. Roles are frequently used to display customized views of a form templates to various user categories.
To know more about user visit:
https://brainly.com/question/13122952
#SPJ4
Assume that the variables v, w, x, y, and z are stored in memory locations 200, 201, 202, 203, and 204, respectively.
Using any of the machine language instructions in
Section 5.2.4, translate the following algorithmic operations into their machine language equivalents.
a. Set v to the value of x – y + z. (Assume the existence of the machine language command SUBTRACT X, Y, Z that computes CON(Z) = CON(X) – CON(Y).)
b. Set v to the value (w + x ) - ( y + z)
c. If (v ≥?w) then
set x to y Else set x to z
d. While y < z do
Set y to the value ( y + w + z)
Set z to the value (z + v)
End of the loop
Answer and Explanation:
A. To translate the above algorithm to machine language, we first assign have to perform the first part of the operation which is x-y and set the value to the v variable. The x, y and v values are stored in memory location 202, 203 and 200 respectively.
The z value in the memory location 204 is then added to the v value in memory location 200. The first code sequence is stored in memory location 50 and the second code sequence to achieve x+y-z stored in v is stored in memory location 51(as asummed in question)
B. In the second algorithm, we add value in w which is in memory location 201 to value in x in memory location 202 and assign the result to v in memory location 200. The same is done for y+z in memory locations 203 and 204 respectively with result stored in w. We then subtract the values in v in memory location 200 from w and assign the value to v in memory location 200
C. in the first memory location 50, the code sequence v compared to w is stored. If v(stored in memory location 201)is greater than or equal to w(in memory location 202), it moves to address 54 and assigns the y value to x in memory locations 203 and 202 respectively else it assigns z valuein memory 204 to x value in 202 and jumps to next instruction
D. In this algorithm, it first compares y and z in memory locations 203 and 204 respectively in the first code sequence memory 50. In 51, it checks to see if the condition is satisfied and if it is, it jumps to address 53 and adds y and w in their various memory locations and stores it in memory 203 in y otherwise it moves to address 57. Now to get y+w+z, It then adds y +w in memory location 203 in y to z in memory location 204 and then stores the result in y. Subsequently it adds the z value to v and stores the result in v and moves to address 50 where it compares a new set of value as in a loop in the algorithm which continues till the "while" condition can no longer be satisfied.
Discuss data and its types from computer programming and data analytics perspectives
Answer:
Data refers to any information that can be intercepted and processed by a computer system. There are two types of data-structured and unstructured. Structured data's format is predefined, making it easy to search, analyze and sort. Examples include tabular data, numerical data, and hierarchical data. Unstructured data has no pre-defined format, making it difficult to categorize, store, and analyze. Examples include multimedia, social media posts, and emails. In computer programming, data acts as inputs and outputs for algorithms, while in data analytics, data is analyzed to gain insights, identify patterns, and make data-driven decisions.
narrative report in computer system servicing
Computer servicing is the process of maintaining and repairing computers and computer peripherals. It can involve anything from malware removal and software updates to hardware repairs and troubleshooting. Servicing is often performed by IT professionals.
Sets are created using curly
braces { }
True or false
Answer:
true
Explanation:
Write code to take two words from the user. The program should convert these to lower case, then compare them: printing a positive number if string1 appears after string2 alphabetically, a negative number if string1 appears before string2 alphabetically and zero if the two strings are identical. Make sure your program does not produce any additional numerical output other than this number or it may not be graded correctly.
Answer:
Use compareTo.
Explanation:
import java.util.Scanner;
public class U2_L3_Activity_Three{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter first word: ");
String word1 = scan.nextLine();
System.out.println("Enter second word: ");
String word2 = scan.nextLine();
//I had to make the string all lowercase or all uppercase for when I did this
word1 = word1.toLowerCase();
word2 = word2.toLowerCase();
System.out.println("Result: " + word1.compareTo(word2));
}
}
Following are the program to converting string value into lowercase and compare with an input string value.
Program Explanation:
Import package.Defining a class Dat.Inside the class defining the main method, and in the method, two string variable "string1, string2" is declared.After input, the value a "toLowerCase" method is used that converts string value into lower case. After converting value into the lower case a "compareTo" method is used that compares value and prints its value.Program:
import java.util.*;//import package for input
public class Dat //defining a Dat
{
public static void main(String[] ax)//main method
{
String string1 ,string2; //defining String variable
Scanner sc = new Scanner(System.in);//creating Scanner class object to input value
System.out.println("Enter values: ");//print message
string1= sc.next();//input value
string2= sc.next();//input value
string1= string1.toLowerCase();//convert string value into LowerCase
string2 = string2.toLowerCase();//convert string value into LowerCase
System.out.println("Result: " + string1.compareTo(string2));//using compareTo method
}
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/15706308
How has technology changed education and the way we learn?
Technology has revolutionized education and the way we learn by providing access to an abundance of information and resources, increasing collaboration and communication among students and teachers, and enabling personalized and self-paced learning.
Write a short note on technology-based education.Technology-based education refers to the use of technology tools and resources to facilitate and enhance learning. It can take various forms, such as online courses, digital textbooks, educational software, educational apps, simulations, virtual and augmented reality, and many more.
Technology-based education has transformed the way people learn and has made education more accessible, flexible, and personalized. It has made it possible for learners to access educational resources from anywhere at any time, allowing for more flexibility in their schedules. Additionally, technology has enabled the creation of interactive and immersive learning experiences that engage learners in ways that traditional classroom settings cannot.
Moreover, technology-based education has opened up opportunities for collaboration and communication among learners and between learners and instructors, regardless of geographical location. With the rise of distance learning, learners can participate in online classes and interact with instructors and peers, breaking down the barriers of traditional classrooms.
Overall, technology-based education has revolutionized the learning process, making it more efficient, engaging, and accessible to learners worldwide.
To learn more about Technology, visit:
https://brainly.com/question/15059972
#SPJ1
what is the impact of technology to the mankind
Modern technology has revolutionized the way people all over the world communicate and interact. This revolution has led to a system of globalization which has fundamentally changed modern society in both good and bad ways.
The most important technological change over the past 20 years is the advent and popularization of the Internet. The Internet connects billions of people around the globe and allows a type of connectivity in ways which the world has never seen. Companies are able to do business with consumers from other countries instantaneously, friends and families are able to talk to one another and see each other regardless of location, and information sits at the fingertips of every person with a computer, tablet or phone.
Outside of the digital world, modern advances in machinery and science have also impacted everyday life. The modernization of travel has allowed humans to span more miles in their lifetime than at any point in history, and the advancement of medicine has given people longer lifespans.
While these changes have certainly been for the better, there are also plenty of negative results of modernization and globalization. Because the Internet streamlines massive amounts of information, it can easily be exploited. The loss of privacy is one of the most pressing issues in the modern world.
Technology has also had an impact on the natural world. Industrialization has led to the destruction of natural life and has possibly caused negative effects on our climate.
Which binary number is equivalent to the decimal number 104?
10+2 is 12 but it said 13 im very confused can u please help mee
Mathematically, 10+2 is 12. So your answer is correct. However, if you are trying to write a code that adds 10 + 2, you may need to troubleshoot the code to find where the bug is.
What is troubleshooting?Troubleshooting is described as the process through which programmers detect problems that arise inside a specific system. It exists at a higher level than debugging since it applies to many more aspects of the system.
As previously stated, debugging is a subset of troubleshooting. While debugging focuses on small, local instances that can be identified and fixed in a single session, troubleshooting is a holistic process that considers all of the components in a system, including team processes, and how they interact with one another.
Learn more about Math operations:
https://brainly.com/question/199119
#SPJ1
Perform the following for each 8 bit binary addition:
add the two binary numbers
interpret all there 8 bit binary numbers as a signed number (2’s complement)
interpret all three 8 bit binary numbers as unsigned numbers
Binary Number
Signed Decimal Value
Unsigned Decimal Value
Number 1
01111001
Number 2
00011110
Sum
Binary Number
Signed Decimal Value
Unsigned Decimal Value
Number 1
00011011
Number 2
00010100
Sum
Binary Number
Signed Decimal Value
Unsigned Decimal Value
Number 1
11110110
Number 2
10000011
Sum
Answer:
Where are options?
Explanation:
Which of the following activities is permissible for IT professionals in the conduct of computer access and authorizations?
viewing explicit content on a company computer
posting updates to social media networks during slow periods at work
using another company’s copyrighted images for the company’s website
using the company’s e-mail software to send work-related e-mails
Answer:
D
Explanation:
Answer: A, B, C, D
Explanation:
The following problem illustrates the way memory aliasing can cause unexpected program behavior. Consider the following function to swap two values
void swap(int xp, int yp)
If this procedure is called with xp equal to yp (i.e. both xp and yp point to the same integer) what effect will it have compared to the situation where xp and yp point to different integers?
a. The value will ahways be the original value in the integer pointed to by xp.
b. It is not possible for xp and yp to have the same value
c. The value will always be zero.
d. The value will always be the original value in the integer pointed to by yp.
e. It will be the same - doesn't matter
Answer:
A
Explanation:
The value will be the original stored in the int variables. This is because the method swap(int xp, int yp) accepts xp and yp parameters by value (They are passed by value and not by reference). Consider the implementation below:
public class Agbas {
public static void main(String[] args) {
int xp = 2;
int yp = xp;
swap(xp,yp); //will swap and print the same values
System.out.println(xp+", "+yp); // prints the original in values 2,2
int xp = 2;
int yp = 5;
swap(xp,yp); // will swap and print 5,2
System.out.println(xp+", "+yp); // prints the original in values 2,5
}
public static void swap(int xp, int yp){
int temp = xp;
xp = yp;
yp = temp;
System.out.println(xp+", "+yp);
}
}
Help me with this digital Circuit please
A subset of electronics called digital circuits or digital electronics uses digital signals to carry out a variety of tasks and satisfy a range of needs.
Thus, These circuits receive input signals in digital form, which are expressed in binary form as 0s and 1s. Logical gates that carry out logical operations, including as AND, OR, NOT, NANAD, NOR, and XOR gates, are used in the construction of these circuits.
This format enables the circuit to change between states for exact output. The fundamental purpose of digital circuit systems is to address the shortcomings of analog systems, which are slower and may produce inaccurate output data.
On a single integrated circuit (IC), a number of logic gates are used to create a digital circuit. Any digital circuit's input consists of "0's" and "1's" in binary form. After processing raw digital data, a precise value is produced.
Thus, A subset of electronics called digital circuits or digital electronics uses digital signals to carry out a variety of tasks and satisfy a range of needs.
Learn more about Digital circuit, refer to the link:
https://brainly.com/question/24628790
#SPJ1
Read string integer value pairs from input until "End" is read. For each string read, if the following integer read is less than 45, output the string followed by ": reorder soon". End each output with a newline.
Ex: If the input is Chest 49 Organizer 2 Couch 3 End, then the output is:
Organizer: reorder soon
Couch: reorder soon
Answer:
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int n;
while (cin >> s) {
if (s == "End") break;
cin >> n;
if (n < 45) cout << s << ": reorder soon" << endl;
}
return 0;
}
Explanation:
Type the correct answer in the box. Spell all words correctly.
Before a new email application could be released to the public, it was released for a few days to some account holders of a website. The project team then collected feedback from this limited number of users and later made the email application available for public use. What type of testing did the project team use?
The project team used ____ testing for the email application.
Answer:
Business format franchise or Business Brokers
Explanation:
What is a problem? Give an example of a business problem and discuss how a computer-based information system could solve it?
For example lets take a business that provides IT services, so the company might face majority of issues and one of them could be outdated system and equipments, in result this can make the business owner suffer from the complexities of integrating new hardware or software into their existing networks, so lastly its always important to have a regular maintenance on your current devices and to use support services when necessary.
Python question
The following code achieves the task of adding commas and apostrophes, therefore splitting names in the list. However, in the case where both first and last names are given how would I "tell"/write a code that understands the last name and doesn't split them both. For example 'Jack Hansen' as a whole, rather than 'Jack' 'Hansen'.
names = "Jack Tomas Ponce Ana Mike Jenny"
newList = list(map(str, names.split()))
print(newList) #now the new list has comma, and apostrophe
Answer:
You can use regular expressions to match patterns in the names and split them accordingly. One way to do this is to use the re.split() function, which allows you to split a string based on a regular expression.
For example, you can use the regular expression (?<=[A-Z])\s(?=[A-Z]) to match a space between two capital letters, indicating a first and last name. Then use the re.split() function to split the names based on this regular expression.
Here is an example of how you can use this approach to split the names in your list:
(Picture attached)
This will give you the output ['Jack', 'Tomas', 'Ponce', 'Ana', 'Mike', 'Jenny', 'Jack Hansen']. As you can see, the name "Jack Hansen" is not split, as it matches the pattern of first and last name.
It's worth noting that this approach assumes that all first and last names will have the first letter capitalized and the last names capitalized too. If this is not the case in your data, you may need to adjust the regular expression accordingly.
Integers limeWeight1, limeWeight2, and numKids are read from input. Declare a floating-point variable avgWeight. Compute the average weight of limes each kid receives using floating-point division and assign the result to avgWeight.
Ex: If the input is 300 270 10, then the output is:
57.00
how do I code this in c++?
Answer:
Explanation:
Here's the C++ code to solve the problem:
#include <iostream>
using namespace std;
int main() {
int limeWeight1, limeWeight2, numKids;
float avgWeight;
cin >> limeWeight1 >> limeWeight2 >> numKids;
avgWeight = (float)(limeWeight1 + limeWeight2) / numKids;
cout.precision(2); // Set precision to 2 decimal places
cout << fixed << avgWeight << endl; // Output average weight with 2 decimal places
return 0;
}
In this program, we first declare three integer variables limeWeight1, limeWeight2, and numKids to hold the input values. We also declare a floating-point variable avgWeight to hold the computed average weight.
We then read in the input values using cin. Next, we compute the average weight by adding limeWeight1 and limeWeight2 and dividing the sum by numKids. Note that we cast the sum to float before dividing to ensure that we get a floating-point result.
Finally, we use cout to output the avgWeight variable with 2 decimal places. We use the precision() and fixed functions to achieve this.
The student can code the calculation of the average weight of limes that each kid receives in C++ by declaring integer and double variables, getting input for these variables, and then using floating-point division to compute the average. The result is then assigned to the double variable which is displayed with a precision of two decimal places.
Explanation:To calculate the average weight of limes each kid receives in C++, declare three integers: limeWeight1, limeWeight2, and numKids. Receive these values from input. Then declare a floating-point variable avgWeight. Use floating-point division (/) to compute the average weight as the sum of limeWeight1 and limeWeight2 divided by the number of kids (numKids). Assign this result to your floating-point variable (avgWeight). Below is an illustrative example:
#include
cin >> limeWeight1 >> limeWeight2 >> numKids;
}
Learn more about C++ Programming here:
https://brainly.com/question/33453996
#SPJ2
Suppose you're shown five rows containing five letters each. You're then told to recall only one row of letters. In doing so, you're utilizing ___.
the partial report method
Suppose you're shown five rows containing five letters each. You're then told to recall only one row of letters. In doing so, you're utilizing the partial report method.
What is the partial report method?
A memory experiment in which participants are shown a matrix of letters and asked to recall only a specific subset of them, such as a single row, is known as the partial report method.
Assume you're shown five rows of five letters each. You are then instructed to remember only one row of letters. You are using the partial report method in this case.
Thus, if you are shown five rows of five letters each and asked to recall only one row of letters, you are using the partial report method.
For more details regarding reporting, visit:
https://brainly.com/question/15179810
#SPJ1
_____ work(s) with the hardware and control(s) the basic functioning of the computer.
Operating system work(s) with the hardware and control(s) the basic functioning of the computer.
What is the Operating system?An operating system (OS) is a software program that manages and controls the resources of a computer. It acts as an intermediary between the computer's hardware and its software applications.
Note that the OS is responsible for managing and allocating the computer's memory, processing power, and storage. It also controls and manages input and output operations, such as keyboard input, mouse movement, and file access.
Learn more about Operating system from
https://brainly.com/question/22811693
#SPJ1
Assume a 2^20 byte memory:
a) What are the lowest and highest addresses if memory is byte-addressable?
b) What are the lowest and highest addresses if memory is word-addressable, assuming a 16-bit word?
c) What are the lowest and highest addresses if memory is word-addressable, assuming a 32-bit word?
a) Lowest address: 0, Highest address: (2^20) - 1. b) Lowest address: 0, Highest address: ((2^20) / 2) - 1. c) Lowest address: 0, Highest address: ((2^20) / 4) - 1.
a) If memory is byte-addressable, the lowest address would be 0 and the highest address would be (2^20) - 1.
This is because each byte in the memory requires a unique address, and since there are 2^20 bytes in total, the highest address would be one less than the total number of bytes.
b) If memory is word-addressable with a 16-bit word, each word would consist of 2 bytes.
Therefore, the lowest address would be 0 (representing the first word), and the highest address would be ((2^20) / 2) - 1.
This is because the total number of words is equal to the total number of bytes divided by 2.
Subtracting 1 gives us the highest address, as the addresses are zero-based.
c) If memory is word-addressable with a 32-bit word, each word would consist of 4 bytes.
In this case, the lowest address would still be 0 (representing the first word), and the highest address would be ((2^20) / 4) - 1.
Similar to the previous case, the total number of words is equal to the total number of bytes divided by 4.
Subtracting 1 gives us the highest address.
For more questions on address
https://brainly.com/question/30273425
#SPJ8
Chang investigates ways to improve the interactivity of computer hardware. His job title is best described as ✓ Computer and Information Research Scientist. Shay writes programs to make operating systems easier for people to use. Her job title is best described as ✓ Software Developer, Systems Software.
Dayna writes code for computer programs that allow people to communicate with each other. Her job title is best described as ✓ Software Developer, Applications
Answer:
B, D, C
Explanation:
got it right
Answer:
b d c
Explanation:
-- of 5 points Question 3 1 try left While designing a new system, a company uncovered several processes that were quite rule-based, and that didn't really require staff to handle. The company chose to automate those processes using ___________________________ so they would no longer need to assign people to perform those tasks. A. code review B. robotic process automation C. application programming interfaces D. service-oriented architecture
Answer:
B. robotic process automation.
Explanation:
In the design of a new system, a company was able to uncover several processes that were typically rule-based, and which did not really require staff to control or handle.
Hence, the company chose to automate those processes using robotic process automation so they would no longer need to assign people to perform those tasks.
describe how computer technology is intergrated in manufacturing, theatre and education.
Computer technology is integrated in manufacturing, theatre and education It allows theatrical possibilities to be broadcast across the world.
How computer technology is integrated in education?
Integration of technology in education simply guides to the use of technology to enhance the student learning experience. Utilizing various types of technology in the classroom, including a virtual classroom, creates learners who are vigorously confronted with learning objectives.
How technology is integrated in theatre or the arts?
Modern technology has made it easier for cinemas to upgrade the visual appeal of their presentations and accomplish a variety of tasks. Through automation and 3D printing, sets can be completed faster, contain more detail and pull viewers more in-depth into the setting and story.
To learn more about Computer technology, refer
https://brainly.com/question/17506968
#SPJ9
What type of structure is this?
Note that these structures belong to Nano technology and allotropes.
What type of bonding do allotropes have?
Carbon atoms are connected by strong covalent bonds in all three allotropes, but in such varied patterns that the characteristics of the allotropes are significantly different.
Allotropes are several forms of the same element in the same physical condition. Carbon allotropes include diamond and graphite. They are both large covalent structures made up of numerous carbon atoms connected together by covalent bonds.
Learn more about nano structures;
https://brainly.com/question/29813999
#SPJ1
Full Question:
See attached image.
I am doing a customer service manual and need a toc. I can't get the numbers lined up. Can someone please help me? I am using Microsoft word
Below is a Table of Contents (TOC) for your customer service manual with aligned numbers using Microsoft Word:
Welcome StatementGetting StartedWays to Discern Customers' Needs and ConcernsTelephone Communication4.1 Transferring a Customer's Call4.2 Sending an EmailSelf-Care After the JobHow to Manage Your Time WiselyFundamental Duties of a Customer Service WorkerEnhancing Customer Impressions and SatisfactionDifference Between Verbal and Nonverbal CommunicationKey TraitsBest Speaking SpeedKnowing the Different Problems and How to Manage Them12.1 Extraordinary Customer Problems12.2 Fixing Extraordinary Customer ProblemsKnowing Customer Diversity13.1 Tactics for Serving Diverse and Multicultural CustomersKnowing How to Handle Challenging CustomersWhat is the customer service manual?Below is how you can create a Table of Contents (TOC) with aligned numbers in Microsoft Word:
Step 1: Place your cursor at the beginning of the document where you want to insert the Table of Contents.
Step 2: Go to the "References" tab in the Microsoft Word ribbon at the top of the window.
Step 3: Click on the "Table of Contents" button, which is located in the "Table of Contents" group. This will open a drop-down menu with different options for TOC styles.
Step 4: Choose the TOC style that best fits your needs. If you want aligned numbers, select a style that includes the word "Classic" in its name, such as "Classic," "Classic Word," or "Classic Format." These styles come with aligned numbers by default.
Step 5: Click on the TOC style to insert it into your document. The TOC will be automatically generated based on the headings in your document, with numbers aligned on the right side of the page.
Step 6: If you want to update the TOC later, simply right-click on the TOC and choose "Update Field" from the context menu. This will refresh the TOC to reflect any changes you made to your headings.
Note: If you're using a different version of Microsoft Word or a different word processing software, the steps and options may vary slightly. However, the general process should be similar in most word processing software that supports the creation of TOCs.
Read more about customer service here:
https://brainly.com/question/1286522
#SPJ1
See text below
I am doing a customer service manual and need a toc. I can't get the numbers lined up. Can someone please help me? I am using Microsoft word
Welcome Statement
Getting Started
Ways to discern customers' needs and concerns
Telephone communication....
Transferring a customer's call
Sending an email
Self-Care after the job
How to manage your time wisely
Fundamental duties of a Customer Service Worker
Enhancing Customer Impressions and Satisfaction
N
5
.5
6
Difference between Verbal and Nonverbal Communication
.6
Key Traits.....
.7
Best speaking speed
7
Knowing the different problems and how to manage them
Extraordinary Customer Problems
Fixing Extraordinary Customer Problems
Knowing Customer Diversity
Tactics for serving diverse and Multicultural customers
Knowing how to handle challenging customers.
Sure! Here's a Table of Contents (TOC) for your cu
Which of the statements below does not describe how to print a document?
O Click on Print in the system tray.
Click on Print from the dialog box,
Select Print from the File menu.
O Click on the Print icon at the top of the screen.
Answer: system tray is what carries the papers
Explanation:
Answer:
yeeeeeeer
wwww
w
w
w
w
w
w
w
Explanation:
wwww
Test 3 project stem answers
Answer:
Purpose of wedding ceremony in Christians
Write a C program to calculate salary raise for employees. If salary is between$ 0 < $ 30000 the rate is 7.0%If salary is between$ 30000
Question:
Write a C program to calculate salary raise for employees.
If salary is between $0 < $30000 the rate is 7.0%
If salary is between $30000 <= $40000 the rate is 5.5%
If salary is greater than $40000 the rate is 4.0%
Answer:
#include <stdio.h>
int main() {
float salary;
printf("Salary: ");
scanf("%f", &salary);
float rate = 0.00;
if (salary >=0 && salary <=30000) {
rate = 0.07;
}
else if(salary <=40000){
rate = 0.055;
}
else {
rate = 0.04;
}
salary = salary * rate;
printf("Salary Raise: ");
printf("%.2f", salary);
return 0;
}
Explanation:
This line declares the salary as float
float salary;
This line prompts user for salary input
printf("Salary: ");
This line gets user input
scanf("%f", &salary);
This line declares and initializes rate to 0.00
float rate = 0.00;
The following condition determines rate for salary between 0 and 30000
if (salary >=0 && salary <=30000) {
rate = 0.07;
}
The following condition determines rate for salary between 30001 and 40000
else if(salary <=40000){
rate = 0.055;
}
The following condition determines rate for salary greater than 40000
else {
rate = 0.04;
}
This calculates the raise in salary
salary = salary * rate;
The next two lines prints the salary raise
printf("Salary Raise: ");
printf("%.2f", salary);