Write a C# program named ProjectedRaises that includes a named constant representing next year’s anticipated 4 percent raise for each employee in a company. Also declare variables to represent the current salaries for three employees. Assign values to the variables, and display, with explanatory text, next year’s salary for each employee. Note: For final submission assign the following current salaries for the employees: 25000 for employee 1, 38000 for employee 2, 51000 for employee 3. Then next year's salary for employee 1 would be displayed as: Next year's salary for the first employee will be $26,000.00

Answers

Answer 1

Answer:

using System;

class ProjectedRaises {

 static void Main() {

     const float raise = 0.04f;

     double salary1 = 0.0f,salary2 = 0.0f,salary3 = 0.0f;

Console.WriteLine("Current salary for each employee: ");

     salary1 = Single.Parse(Console.ReadLine());

     salary2 = Single.Parse(Console.ReadLine());

     salary3 = Single.Parse(Console.ReadLine());

     salary1 = salary1 + raise * salary1;

     salary2 = salary2 + raise * salary2;

     salary3 = salary3 + raise * salary3;

     Console.WriteLine("Next year salary for the employees are: ");

     Console.WriteLine(Math.Round(salary1));

     Console.WriteLine(Math.Round(salary2));

     Console.WriteLine(Math.Round(salary3));

}

}

Explanation:

This declares and initializes variable raise as a float constant

     const float raise = 0.04f;

This declares the salary of each employee as double

     double salary1 = 0.0f,salary2 = 0.0f,salary3 = 0.0f;

This prompts the user for the salaries of the employee

Console.WriteLine("Current salary for each employee: ");

The next three lines get the salary of the employees

     salary1 = Single.Parse(Console.ReadLine());

     salary2 = Single.Parse(Console.ReadLine());

     salary3 = Single.Parse(Console.ReadLine());

The next three lines calculate the new salaries of the employees

     salary1 = salary1 + raise * salary1;

     salary2 = salary2 + raise * salary2;

     salary3 = salary3 + raise * salary3;

This prints the header

     Console.WriteLine("Next year salary for the employees are: ");

The next three lines print the new salaries of the employees

     Console.WriteLine(Math.Round(salary1));

     Console.WriteLine(Math.Round(salary2));

     Console.WriteLine(Math.Round(salary3));


Related Questions

(3)(6 Points) During a sale at a store, a 10% discount is applied to purchases over $10.00. Write a program that asks for the amount of a purchase, then calculates the discounted price. The purchase amount will be input in cents (as an integer). These are two examples of your expected program's execution.

Answers

I only need point sort

1. Select two forms of case designed suitable for ATX power supply and
motherboard,
A. Chassis and cabinet
B. Cabinet and tower
C. Desktop and tower
D. Chassis and tower

Answers

The answer should be c

Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each tankful. Develop a sentinel-controlled-repetition script that prompts the user to input the miles driven and gallons used for each tankful. The script should calculate and display the miles per gallon obtained for each tankful. After processing all input information, the script should calculate and display the combined miles per gallon obtained for all tankfuls (that is, total miles driven divided by total gallons used).
Enter the gallons used (-1 to end): 128
Enter the miles driven: 287 The miles/gallon for this tank was 22.421875
Enter the gallons used (-1 to end): 10.3
Enter the miles driven: 200 The miles/gallon for this tank was 19.417475
Enter the gallons used (-1 to end): 5
Enter the miles driven: 120 The miles/gallon for this tank was 24.000000
Enter the gallons used (-1 to end): -1 The overall average miles/gallon was 21. 601423

Answers

Answer:

In Python:

gals= float(input("Enter the gallons used (-1 to end): "))

miles = float(input("Enter the miles driven: "))

mileage = 0.0

count = 0

while not (gals == -1):

   count += 1

   mileage +=(miles/gals)

   print("The miles/gallon for this tank was "+str(round(miles/gals,6)))

   gals= float(input("Enter the gallons used (-1 to end): "))

   miles = float(input("Enter the miles driven: "))

print("The overall average miles/gallon was "+str(round(mileage/count,6)))

Explanation:

#This prompts the user for the number of gallons used

gals= float(input("Enter the gallons used (-1 to end): "))

#This prompts the user for miles driven

miles = float(input("Miles driven: "))

#This initializes the mileage to 0

mileage = 0.0

#This initializes the count of vehicles to 0

count = 0

#The following is repeated until input for gallons is -1

while not (gals == -1):

#The count of vehicles is increased by 1

   count += 1

#The total mileage for all cars is calculated

   mileage +=(miles/gals)

#This prints the mileage for that particular vehicle

   print("The miles/gallon for this tank was "+str(round(miles/gals,6)))

#This prompts the user for the number of gallons used

   gals= float(input("Enter the gallons used (-1 to end): "))

#This prompts the user for miles driven

   miles = float(input("Miles driven: "))

#This calculates and prints the overall average mileage  

print("The overall average miles/gallon was "+str(round(mileage/count,6)))

what do mean by cpu? example

Answers

Explanation:

The main computer case containing the central components of a personal computer is CPU.

The central processing unit (CPU) can be defined as the brain of the computer, it also takes the raw data and turns it into information.

5. Played electronically by manipulating images on a television screen produced by a
computer program often emphasizing fast action
mi Yoko
tor of the "GAME BOY" and "Game and Watch hand held systems​

Answers

Answer:

1) Video Games

2) Gunpei Yokoi

Explanation:

1) Video games are electronic games played off electronic consoles which are connected to Visual Display Units such as desktops or laptops and flat=screen televisions. The games are created in such a way that images can be manipulated using a pad and controlled by the computer program.

2) Gunpei Yokoi person who made the "game boy" and "game and watch" hand-held games.

He was recognized posthumously for his achievements in 2003 when he was offered a lifetime achievement award from the international game developers association.

Cheers

Type the correct answer in the box. Spell all words correctly.
Kenny is out with his friends. He took some pictures with his phone camera. His phone has limited internal memory and it won’t store a lot of images. He wants to transfer his images to another storage system to free the phone’s internal memory. He doesn’t have any other storage device with him, but he does have a decent Internet connection from his phone. Which storage system should Kenny consider?
Kenny should consider _____.

Answers

Answer:

Kenny should consider cloud storage.

Store the pictures on the Cloud

A mobile base station in an urban environment has a power measurement of 25 µW at 225 m. If the propagation follows an inverse 4th-power law, assuming a distance of 0.9 km from the base station, what would be a reasonable power value, in µW?

Give your answer in scientific notation to 2 decimal places

Answers

Answer:

The answer is below

Explanation:

The inverse fourth power law states that the intensity varies inversely to the fourth power of the distance from the source. That is as the distance increases, the intensity decreases.

Let I represent the intensity and let d represent the distance from the source, hence:

I ∝ 1 / d⁴

I = k / d⁴

Where k is the constant of proportionality.

Given that at a power of 25W = 25*10⁻⁶ W, the distance (d) = 225 m. We can find the value of k.

25*10⁻⁶  = k / 225⁴

k = 225⁴ * 25*10⁻⁶ = 64072.27

Hence:

I = 64072.27 / d⁴

At a distance (d) = 0.9km = 900 m, we can find the corresponding power:

I = 64072.27 / 900⁴

I = 9.77 * 10⁻⁸ W

Question 4 (5 points)
The more RAM you have, the less things your computer can do at the same time.
True
False
ent:​

Answers

The correct answer is False

Austin has a report due at school tomorrow, but has not started working on it yet. Now he is worried about getting a bad grade. So he searches the Internet for his topic and finds lots of information. He chooses a small, obscure site, copies text and images, and pastes them into his report. He's done before bedtime. But he receives an F on his report.
1. What could Sam have done differently on his report to avoid failing?
2. Is this incident an example of an unethical action or an illegal action?

Answers

Answer:

Explanation:

Question One

He could have read other sites with other points of view and summarized that. Most importantly he could have used footnotes that gave credit to every idea that he used.

He could have put the material down and begin to write. The words would have come out in his awkward style. He would still need to footnote the ideas. That is most important.

Question Two

It is both. Plagiarism is a serious crime if it involves many people being affected by what he wrote.

But it is totally unethical at any level. Trying to pass off something that isn't yours is totally unethical. It should never be done. It shames the subject which is shown to be unimportant and it shames the instructor (he knew enough to catch the plagiarism), and it shames the person getting caught.

What would a bar graph best be used for? State why and give 2-3 examples of things you could demonstrate with a bar graph

Answers

Answer:

A bar graph is used to compare facts.

For example:

A group of people's favorite movie.

A group of people's favorite fruit.

What is user interface

Answers

Answer:

a user interface is the thing that apears after the login

Explanation:

go to goolge and type microsoft flight simulator user intr=erface

7.4 question 1 edhesive

Answers

Answer:

huh

Explanation:

what do you mean? the question doesn't make any sense

Answer:

def GPAcalc(g):

   if g == "a" or g == "A":

       return 4

   elif g == "B" or g == "b":

       return 3

   elif g == "C" or g == "c":

       return 2

   elif g == "D" or g == "d":

       return 1

   elif g == "F" or g == "f":

       return 0

   else:

       return "Invalid"

grade = input("Enter your Letter Grade: ")

gpa = GPAcalc(grade)

print("Your GPA score is: " + str(gpa))

Explanation:

As you will solve more complex problems, you will find that searching for values in arrays becomes a crucial operation. In this part of the lab, you will input an array from the user, along with a value to search for. Your job is to write a C++ program that will look for the value, using the linear (sequential) search algorithm. In addition, you should show how many steps it took to find (or not find) the value, and indicate whether this was a best or worst case scenario (... remember the lecture). You may refer to the pseudo-code in the lecture, but remember that the details of the output and error conditions are not specified there. Also, note that in pseudo-code arrays are sometimes defined with indices 1 to N, whereas in C++ the indexes span from 0 to N-1.
The program will work as follows. First, you should ask the user to enter the size of the array, by outputting:
"Enter the size of the array: "
to the console. If the user enters an incorrect size, you should output the error message:
"ERROR: you entered an incorrect value for the array size!"
and exit the program. If the input is a valid size for the array, ask the user to enter the data, by outputting
"Enter the numbers in the array, separated by a space, and press enter: "
Let the user enter the numbers of the array and store them into a C++ array. Up to now, this should be exactly the same code as Lab#2. Next, ask the user a value v to search for in the array (called the "key"), by outputting:
"Enter a number to search for in the array: " to the screen, and read the key v.
Search for v by using the linear search algorithm. If your program finds the key, you should output:
"Found value v at index i, which took x checks. "
where i is the index of the array where v is found, and x is the number of search operations taken place.
If you doesn't find the key, then output: "
The value v was not found in the array!"
Then indicate whether you happened to run into a best or worst case scenario. In case you did, output: "
We ran into the best case scenario!" or "We ran into the worst case scenario!"
otherwise, don't output anything.

Answers

Answer:

#include<iostream>

using namespace std;

int main() {

cout<<"Enter The Size Of Array: ";

int size;

bool isBestCase=false;

cin>>size;

if(size<=0){

cout<<"Error: You entered an incorrect value of the array size!"<<endl;

return(0);

}

int array[size], key;

cout<<"Enter the numbers in the array, separated by a space, and press enter:";

// Taking Input In Array

for(int j=0;j<size;j++){

cin>>array[j];

}

//Your Entered Array Is

for(int a=0;a<size;a++){

cout<<"array[ "<<a<<" ] = ";

cout<<array[a]<<endl;

}

cout<<"Enter a number to search for in the array:";

cin>>key;

for(i=0;i<size;i++){

 if(key==array[i]){

   if(i==0){

     isBestCase=true; // best case scenario when key found in 1st iteration

     break;

   }

 }

}

if(i != size){

 cout<<"Found value "<<key<<" at index "<<i<<", which took " <<++i<<" checks."<<endl;

}  else{

 cout<<"The value "<<key<<" was not found in array!"<<endl;

 cout<<"We ran into the worst-case scenario!"; // worst-case scenario when key not found

}

if(isBestCase){

cout<<"We ran into the best case scenario!";

}

return 0;

}

Explanation:

The C++ source dynamically generates an array by prompting the user for the size of the array and fills the array with inputs from the user. A search term is used to determine the best and worst-case scenario of the created array and the index and search time is displayed.

Given the waveform below, derive the output waveform (Q) for the respective devices. All outputs start at RESET (Q = 0) state


a) S-R latch assuming A = S and B = R.
b) Gated D latch assuming C = EN and B = D.
c) Negative Edge-triggered D Flip-flop assuming C = CLK and A = D.
d) Positive Edge-triggered J-K Flip-flop assuming C = CLK, A = J, and B = K.

Answers

The answer is b but I’m not sure

What does Ares want Percy to do for him?

Answers

Answer:

Get his sheild

Explanation:

Answer:

Ares wants Percy to retrieve his shield

Explanation:

Using words input, output, processor, CPU, memory, RAM, ROM, and storage,
answer the questions:
Copy and paste your answers to avoid misspelling.
1. A computer processor is also called CPU
2. A speaker is a(n)
device.
3. A scanner is an
device.
4. Hard disk is a(n)
device.
5. RAM and ROM are types of
Mmory
6. A computer monitor is a output
I
device.

Answers

here because brainly sucks I hate this website stop censoring litteraly everything, can't get away with calling someone a poopy head on here

write an algorithm and draw a flowchart to calculate the sum of of the first 10 natural numbers starting from 1​

Answers

Answer:

#include <stdio.h>

void main()

{

int j, sum = 0;

printf("The first 10 natural number is :\n");

for (j = 1; j <= 10; j++)

{

sum = sum + j;

printf("%d ",j);

}

printf("\nThe Sum is : %d\n", sum);

}

Within a loop

Step 1: Initialize a variable to 1 (say x=1)

Step 2: Specifiy the condition

In this case x<=10

Step 3: Increment the variable by 1

using increment operator x++

OR

simply x+=1(x=x+1)

Step 4: Print the value of variable

Terminate the loop

Explanation:

import java.util.ArrayList;
import java.util.List;
/**
* Fix the problem in the following code by changing the Point class only,
* without touching the code in main(). Make only the necessary changes.
*/
public class PointTest {
static final class Point {
private double x, y;
List points = new ArrayList<>();
Point(double x, double y) {
this.x = x;
this.y = y;
}
}
public static void main(final String[] args) {
List pointList = new ArrayList<>();
pointList.add(new Point(1, 2));
pointList.add(new Point(3, 4));
System.out.println(pointList.size());
// remove the second Point
pointList.remove(new Point(3, 4));
System.out.println(pointList.size());
// Not removed!
}
}

Answers

Answer:

Explanation:

The following code was fixed but it is impossible to fix the entirety of the code without adjusting the Main method as well. This is because the information is being saved in an ArrayList that is saved within the main method. This means that either we need to move the Arraylist outside of the main method or adjust something inside the main method as well to make the code run. In this iteration, I have added an IF statement to the Point method so that it deletes a point if it is being added for a second time. In order to accomplish this, I had to add an extra argument when calling the Point Method in the Main method which would be the ArrayList in which the information is saved.

import java.util.ArrayList;

import java.util.List;

class PointTest {

   static final class Point {

       private double x, y;

       Point(double x, double y, List<Point> points) {

           this.x = x;

           this.y = y;

           for (int i = 0; i < points.size(); i = i+1) {

               if ((points.get(i).x == x) && (points.get(i).y == y)) {

                   points.remove(i);

               }

           }

       }

   }

   public static void main(final String[] args) {

       List<Point> pointList = new ArrayList<>();

       pointList.add(new Point(1, 2, pointList));

       pointList.add(new Point(3, 4, pointList));

       System.out.println(pointList.size());

// remove the second Point

       pointList.remove(new Point(3, 4, pointList));

       System.out.println(pointList.size());

// REMOVED!!!!!

   }

}

Select each of the benefits of wireless communication.
checking e-mail from a remote location
o transmiting broadcast signals
receiving voicemail messages while away from the office
sending and receiving graphics and video to coworkers
sending data from outside the office

Answers

Answer:

checking e-mail from a remote location  

receiving voicemail messages while away from the office

sending and receiving graphics and video to coworkers

sending data from outside the office

Explanation:

Wireless networks have proved to be more beneficial and accessible as compared to the wired networks. Wireless networks have helped in increasing the efficiency of transferring the data. It is also very accessible and easy to operate. It helps a person be connected even during travelling. It saves the cost and helps in better execution of the work. The speed at which the data is transferred helps in saving the cost and time. The maintenance cost is reduced in wireless communication as that of wired one. It also helps during the times of emergency situations.

Answer:

checking e-mail from a remote location  

receiving voicemail messages while away from the office

sending and receiving graphics and video to coworkers

sending data from outside the office

Explanation:

EDGE 2021

1, 3,4,5

Programming exercise 3-4a

Answers

Answer:

???????????.?????????????

Every home or organization with Internet access has an ISP.
Question 29 options:
True
False

Answers

true ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Nearly all personal computers are capable of serving as network servers.
Question 26 options:
True
False

Answers

true
yes computers are capable of serving network servers.
true ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎


What is the total March Expenditure now? (cell Q2)

Answers

I did a lot to do it lol was

8. Type the correct answer in the box. Spell all words correctly.
Until when can you register your work with the US Copyright Office in order to claim statutory damages from the court in the event of infringement?
You need to register with the US Copyright Office prior to the infringement,____ or within
months of the publication of the image, to claim statutory damages from the court

Answers

Answer:

To be eligible for an award of statutory damages and attorneys' fees in a copyright infringement case, the copyrighted work must be registered before infringement commences, or, if the work is published, within 3 months of publication.

Answer:

The answer is 3 months.

Explanation:

#include
main()
{
int i, n=10, rem, inc=0;
scanf("%d",&n);
for(i=1; i =3)
inc++;
else;
inc--;
}
printf("Final Value=\n",inc);
}
SOLVE THIS PROGRAM...

Answers

Answer:inpossible !889

Explanation: I npossible !889

true or false. in a list with 5 items the index of the final item is 4

Answers

Answer: True

Explanation:

We start at 0 for lists

[item, item, item, item, item]

  0         1       2     3        4

true on edge2020/2021

Which command will provide us with a list of the available internal commands (commands that are part of Command Prompt, such as CD and DIR - not IPCONFIG or NETSTAT) of Command Prompt?

Answers

Answer: $help

Explanation:

Not sure which terminal you are using, but "help" in the terminal outputs available internal commands.

You want to make access to files easier for your users. Currently, files are stored on several NTFS volumes such as the C:, D:, and E: drives. You want users to be able to access all files by specifying only the C: drive so they don't have to remember which drive letter to use. For example, if the accounting files are stored on the D: drive, users should be able to access them using C:\accounting. What can you do?

Answers

Answer:

volume mount points

Explanation:

The best thing to do would be to use volume mount points. This is a feature that allows you to mount/target (from a single partition) another folder or storage disk that is connected to the system. This will easily allow the user in this scenario to access the different files located in the D: and E: drive from the C:\ drive itself. Without having to go and find each file in their own separate physical drive on the computer.

Complete the sentence. Use a ___ ___ (2 words) to find a website's URL based on keywords you specify.​

Answers

Answer: Search engine

Explanation:

If you need to find out the URL of a website that can help you with a particular service needed, you can use a search engine such as G-oogle or Duck-duckgo to find the relevant websites. You type in keyword/s and the search engine will look for websites associated with the word/s.

The links to be websites will be displayed and clicking on them will take you to the website.

Create a Python program that computes the cost of carpeting a room. Your program should prompt the user for the width and length in feet of the room and the quality of carpet to be used. A choice between three grades of carpet should be given. You should decide on the price per square foot of the three grades on carpet. Your program must include a function that accepts the length, width, and carpet quality as parameters and returns the cost of carpeting that room. After calling that function, your program should then output the carpeting cost. of carpeting a room. Note: the output is NOT in the function but in the main. Display your name,class,date as per SubmissionRequirements by using a function.
Your program should include your design steps as your comments. Document the values you chose for the prices per square foot of the three grades of carpet in your comments as well.

Answers

Answer:

In Python:

def calcCost(length,width,quality):

   if quality == 1:

       cost = length * width * 3.50

   if quality == 2:

       cost = length * width * 2.50

   else:

       cost = length * width * 1.50

   

   return cost

   

length = float(input("Room Length: "))

width = float(input("Room Width: "))

print("Quality:\n1 - Best\n2 - Moderate\n3 and others - Worst")

quality = int(input("Quality: "))

print("Calculate: "+str(calcCost(length,width,quality)))

Explanation:

This defines the function calcCost to calculate the carpeting cost

def calcCost(length,width,quality):

If quality is 1, the total cost is calculated by area * 3.50

   if quality == 1:

       cost = length * width * 3.50

If quality is 2, the total cost is calculated by area * 2.50

   if quality == 2:

       cost = length * width * 2.50

For other values of quality, the total cost is calculated by area * 1.50

   else:

       cost = length * width * 1.50

This returns the calculated carpeting cost    

   return cost

   

The main begins here

This prompts the user for the length of the room

length = float(input("Room Length: "))

This prompts the user for the width of the room

width = float(input("Room Width: "))

This gives instruction on how to select quality

print("Quality:\n1 - Best\n2 - Moderate\n3 and others - Worst")

This prompts the user for the quality of the carpet

quality = int(input("Quality: "))

This calls the calcCost method and also printst the calculated carpeting cost

print("Calculate: "+str(calcCost(length,width,quality)))

Other Questions
-6.5m + 14.3< -22.75 A hemisphere-shaped security mirror fits exactly inside a rectangular prism box with a square base that has edge length 10 inches. What is a reasonable estimate for the volume of this mirror? what can be characterized the african music Multiply and Simplify. Show work to earn full credit. pls help and ty ow does Helen Keller's purpose for writing her memoir differ from that of the biographer her wrote about her life? Solve each equation for the given variable using your best guess and check skills after checking your guess by plugging it in to the equation, modify your guess if needed until you make a true statement and equality.REAL ANSWERS ONLY What force creates the tides?A. Solar FlaresB. Neptunes gravitational force C. Suns gravitational forceD. Moons gravitational force A hula hoop has an circumference 150.72 cm. What is the area of the hula hoop? (round to the nearest hundredth) FOR THE LOVE OF GOD PLEASE HELP ME I WILL GIVE 30 points bardo mahangi ma tippani 2. True or false: a polio virus needs a host cell to replicate * HELP ME RN PLEASEEEE!!!!!!!!how many 3/8 are in 8, explain how you know SOLVE THIS PROBLEM PLEASE EXPLAIN HOW IT IS CORRECT PROVIDE! ASAP PLS THANK YOU SO MUCH FOR HELPING 10+ POINTS 3(3+123)4 Can someone please answer this? Who occupied the northern part of the Korean Peninsula at the end of World War II? 1 What is the side length? What are the coordinates of the image if this pre-image is reflected over the y axis? One mole of a metallic oxide reacts with one mole of hydrogen to produce two moles of the pure metaland one mole of water. 5.00 g of the metallic oxide produces 2.32 g of the metal. What is the metallicoxide? (Use molar masses) A book of mass 1.5 ,kg exerted a downward force on the tableWhat is the direction of this second force? omg for the love of god 30 points please help