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

Convert the ProjectedRaises class to an interactive application named ProjectedRaisesInteractive. Instead of assigning values to

the salaries, accept them from the user as input.
Computers and Technology
1 answer:
Brrunno [24]3 years ago
7 0

Complete Question:

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.

Convert the *ProjectedRaises* class to an interactive application named **ProjectedRaisesInteractive**. Instead of assigning values to the salaries, accept them from the user as input.

Answer:

The code in C# is provided in the explanation section

Explanation:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using static System.Console;

namespace ProjectedRaisesInteractive

{

   class ProjectedRaisesInteractive

   {

       static void Main(string[] args)

       {

           

           const double percentIncrease = 1.04;

           double inputFirstSalary = 0;

           double inputSecondSalary = 0;

           double inputThirdSalary = 0;

           double outputFirstSalary = 0;

           double outputSecondSalary = 0;

           double outputThirdSalary = 0;

           //skip error checking

           Write("Enter Value for First Salary");

           inputFirstSalary = double.Parse(ReadLine());

           Write("Enter Value for Second Salary");

           inputSecondSalary = double.Parse(ReadLine());

           Write("Enter Value for Third Salary");

           inputThirdSalary = double.Parse(ReadLine());

           outputFirstSalary = inputFirstSalary * percentIncrease;

           outputSecondSalary = inputSecondSalary * percentIncrease;

           outputThirdSalary =  inputThirdSalary * percentIncrease;

WriteLine("Expected Salary Increase:{0}", percentIncrease;);

WriteLine("{0} will be {1} next year.", inputFirstSalary, outputFirstSalary);

WriteLine("{0} will be {1} next year.", inputSecondSalary, outputSecondSalary);

WriteLine("{0} will be {1} next year.", inputThirdSalary, outputThirdSalary);

       }

   }

}

You might be interested in
what would be the result of running these two lines of code? symptoms = ["cough" "fever", "sore throat", "aches"] print (symtoms
olchik [2.2K]

"aches"

an array starts at 0 so spot the 3 is spot 4

[1,2,3,4]

arr[3] = 4 in this case

5 0
3 years ago
Prepare a algorithm visualization for the Tower of Hanoi when 4 disks are to be moved from spindle #1 to spindle #3.
Setler [38]

Answer:

follwing is the code for Tower of Hanoi for n disks.

#include <iostream>

using namespace std;

void towofhan(int n,char source,char aux,char dest)//function for tower of hanoi..

{

if(n<0)

return ;

   if(n==1)//base case.

   {

       cout<<"Move disk 1 from "<<source<<" to spindle "<<dest<<endl;

       return;

   }

   towofhan(n-1,source,dest,aux);//recursive call.

   cout<<"move disk "<<n<<" from "<<source<<" to spindle "<<dest<<endl;

   towofhan(n-1,aux,source,dest);//recursive call.

}

int main() {

   int n=4;

   towofhan(n,'1','2','3');//function call.

   return 0;

}

Explanation:

If there is only 1 disk then we have to move the disk from source to destination.

Then after that we will apply recursion to solve the problem.

We have to work on only nth disk else will be done by the recursion.

First call recursion to move n-1 disks from source to auxiliary.

Then move nth disk from source to destination spindle.

Now move n-1 disks that are on the auxiliary spindle to destination spindle.

6 0
3 years ago
During an interview, your non-verbal communication (body language, gestures, tone of voice, speed of talking,
kompoz [17]

Answer:

True

Explanation:

People will judge you based upon your non-verbal communication. If your non-verbal communication is bad then you might not get the job.

8 0
4 years ago
When parallel parking, you should select a space that is __________ as long as your car.
Shtirlitz [24]

that is Equally as long as your car


7 0
4 years ago
________ uses shared computing resources instead of having local servers or devices to handle computing applications.
Oksanka [162]

Answer:

cloud computing

Explanation:

3 0
3 years ago
Other questions:
  • How are the stop lamp bulbs connected in relation to each other? a. In parallel. b. In series. c. In series/parallel. d. None of
    13·1 answer
  • Main characteristic of open source software<br> ?
    7·1 answer
  • Which feature of a website takes you to a different part of the website or a totally different website when you click on it?
    12·2 answers
  • What's a window in computer and technology<br>​
    10·2 answers
  • A canister is released from a helicopter 500m above the ground. The canister is designed to withstand an impact speed of up to 1
    15·1 answer
  • When the Hyper-V role is added to a Windows Server 2016 server, the hypervisor creates the individual environments, each of whic
    5·1 answer
  • I need help with this answer, I will give brainliest as long as there is actually an answer!
    11·1 answer
  • Can i get some help please .
    5·2 answers
  • What is the main purpose of adding captions to an image or table in Word?
    10·1 answer
  • User 2.0 is most likely to Multiple Choice passively read and search for content. depend on content creators and avoid expressin
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!