class name: department problem description: 1. create a class for department 2. implement all the below listed concepts in your class. read lecture slides for reference.Note: The purpose of this assignment is to get the output using the following concepts of Object-Oriented programming - Data fields (0.5%) a. id b. name c. emailld d. dept You can add additional data fields if you want. Select proper datatypes for these variables Constructor (0.5%) a. No parameter b. With parameter Set id and name using the constructor with parameters. - - Methods (0.5%) To print the details of the employee. - - Invoke a method of an object (0.5%) Object to invoke setter-getter or print method - Static variable (0.5%)To keep the count of employee objects - Visibility Modifier for variables and methods (0.5%) Select proper modifiers for variables and methods. - Getter and Setter methods (0.5%) Create getter and setter methods for all variables. Steps to follow for main method (0.5%) 1. Create 3 or more employee objects using the constructor with parameters. 2. Increment the static variable count on each object creation 3. Set email id and dept variables value using setter methods of each object. 4. Print the Total employee count and all employee details (Try to use this keyword for printing data of employee object)

Answers

Answer 1

A public class is any part of an object-oriented program that accesses or updates its members by using the member name to be accessed. This type of class is useful for storing information or methods that must be accessible throughout the program code.

What is class?

A class is a template definition of the method s and variable s in a specific type of object in object-oriented programming. As a result, an object is a particular instance of a class; it contains real values rather than variables.

The class is a fundamental concept in object-oriented programming. Among the key concepts regarding classes are:

Subclasses of a class can inherit all or some of the class's properties. The class is elevated to superclass status in relation to each subclass.Subclasses may also define their own methods and variables that are not included in their superclass.The class hierarchy refers to the structure of a class and its subclasses.

//The code// ↓↓↓

public class Employee {

    //data member

    private Integer id;

    private String name;

    private String emailId;

    private String dept;

    private static Integer count=0; //getter setter start

    public Integer getId() {

        return id;

    }

     public void setId(Integer id) {

        this.id = id;

    }      

public String getName() {

        return name;

    }

     public void setName(String name) {

        this.name = name;

    }

    public String getEmailId() {

        return emailId;

    }

     public void setEmailId(String emailId) {

        this.emailId = emailId;

    }

     public String getDept() {

        return dept;

    }

     public void setDept(String dept) {

        this(dot)dept = dept;

    }

//getter setter end

    Employee(){

         //Default constructor

        id=0;

        name="null";

        emailId="null";

        dept="null";

    }      

Employee(Integer id, String name ){

     //Parameterized constructor

        this.id=id;

        this.name=name;

        count=count+1;

    }

    public void printDetails(){

   //print method

        System.out.println(this.id+" "+this.name+" "+this.emailId+" "+this(dot)dept);

    }

    public static

 void main(String args[]){

        Employee e1=new Employee(1,"jack");

//Employee object create with argument

        Employee e2=new Employee(2,"max");

        Employee e3=new Employee(3,"tom");

        e1.setEmailId("jack(at)mail.com");

// set email by getter setter

        e1.setDept("accouts");

//set dept by getter setter

        e2.setEmailId("max(at)mail.com");

        e2.setDept("IT");

        e3.setEmailId("tom(at)mail.com");

        e3.setDept("admin");

        e1.printDetails();

//Employee details print

        e2.printDetails();

        e3.printDetails();

        System.out.println(count);

      }

 }

Learn more about public class

https://brainly.com/question/28535101

#SPJ1


Related Questions

evaluate the expressions
30 div 2 ,30 mod 2

Answers

Answer:

30 div 2 = 15, 30 mod 2 = 0

Explanation:

30 div 2 is equivalent to 30 divided by 2, which is just 15

30 mod 2 is equivalent to "the remainder of" 30 divided by 2, which is 0 because there is no remainder.

Build a program which should have two classes Employee and Client. Employee should be in package ACP.Employee while Client class should be in ACP.Client. Employee class should have the following data members and Functionalities


Data members:

Employee Name

Father name

Emp ID (Number)

Job Category (Teacher, Officer, Staff, Labour)

Date of birth (Date)

Education (Matric, FSc, BS, MS, PhD)

Pay scale (number)

NIC (String)


Functionalities:

SetEmpInformation

UpdateEmpInformation

DeleteEmpInformation

Search and View Emp record by

Emp ID

Employee Name

Age

Job Catagory

Client class should have main function where it may have capacity of maximum 50 Employee records and You are only allowed to use arrays(list is not allowed).

User should be given choice whether to

Add New Employee record

Update Employee Information

Delete Employee Record

Search & view Employee

BY Emp ID

By Employee Name

By Age

By Job Catagory

Choices may be taken by using Input Message dialogs.


When user selects Add New Employee record, It must be kept in mind that no Teacher can have education lower than MS while No Officer can have lower than BS, No Staff can be lesser education than FSc and Labour should be with at least Matric Education. In the same manner for the Teacher pay scale can not be lesser than 18 while for the officer it cant be lesser than 17, the staff should be in between 11 and 16 and the pay scale for labour will be in between 1 and 10.


On update Employee Information, only education payscale and Job category can be updated.

When program is closed all the records should be saved into the file named as EmpDB.dat. all the objects must be serialized into the file. When the program starts if file EmpDB.dat is already present then user should have all required choices to apply on records available in file.


You will use java serialization to implement object serialization.


Note: Inputs should be taken by using Input dialogs and View should be by using showMessageDialog.

Emp ID should be unique and should not be set by user. It should be automatically assigned and Emp ID should start from 9000.

Answers

Using knowledge in computational language in JAVA it is possible to write a code that build a program which should have two classes Employee and Client.

Writting the code:

public class Employee ffffff

{

private String firstName; // instance variable that stores the first name

private String lastName; // instance variable that stores the last name

private double monthlySalary; // instance variable

// constructor initializes firstName, lastName and monthlySalary with String and double supplied as argument

public Employee (String fname, String lname, double msalary)

{

 firstName = fname; // initialize firstName

 lastName = lname; // initialize lastName

 monthlySalary = msalary; // initialize monthlySalary

 

 // if the monthly salary is not positive, set it to 0.0.

 if (msalary < 0.0)

  monthlySalary = 0.0;

} // end constructor

// method to set the first name

public void setFirstName (String fname)

{

 firstName = fname; // store the first name

 

} // end method setFirstName

// method to retrieve first name

public String getFirstName ()

{

 return firstName;

} // end method getFirstName

// method to set the last name

public void setLastName (String lname)

{

 lastName = lname; // store the last name

} // end method setLastName

// method to retrieve last name

public String getLastName ()

{

 return lastName;

} // end method getLastName

// method to set the monthly salary

public void setMonthlySalary (double msalary)

{

 monthlySalary = msalary; // store the monthly salary

 

} // end method setMonthlySalary

// method to retrieve monthly salary

public double getMonthlySalary ()

{

 return monthlySalary;

} // end method getMonthlySalary

// method to retrieve yearly salary

public double getYearlySalary()

{

 double yearlySalary = monthlySalary * 12;

 return yearlySalary;

} // end method getYearlySalary

// method to retrieve yearly salary after giving 10% raise

public double getRaiseSalary()

{

 double raise =  monthlySalary * 0.1 ;

 double raiseSalary = ( monthlySalary + raise ) * 12;

 return raiseSalary;

} // end method getRaiseSalary

} // end class Employee

See more about JAVA at brainly.com/question/12974523

#SPJ1

(Pick 5 Lotto) Write a program to simulate a pick-5 lottery game. Your program generates and stores 5 distinct random integers between 1 and 9 (inclusive) into an array. The program then prompts the user to enter 5 distinct integers between one and nine and stores the numbers into a second array. The program then compares and determines whether the two arrays are identical. If the two arrays are identical, then the user wins the game; otherwise, the program outputs the number of matching digits and their position in the array.

Use default_random_engine and unitform_int_distribution to generate the random numbers. See discussions to see engines and distributions details.

Answers

The way to write the program will be:

#include <stdio.h>

#include <stdlib.h>

int main(void) {

       int seed;

       printf("Enter an integer random seed: ");

       scanf("%d", &seed);

       srand(seed);

       int comp_nums[5], user_nums[5];

       int matchCount = 0;

       int i=0;

       printf("To play the Pick-5 game, enter five integers between 1 and 9 (inclusive): ");

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

               scanf("%d", &user_nums[i]);

       }

       printf("\n");

       // generate comp_num

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

               comp_nums[i] = rand() % 9 + 1;

               if(comp_nums[i] == user_nums[i]) {

                       matchCount++;

               }

       }      

       if(matchCount == 5) {

               printf("\nCongratulations!!! You WIN!!!\n");

       } else if(matchCount == 0) {

              printf("You didn't match any numbers!\n") ;

       } else {

               printf("\nYou only matched %d numbers.\n", matchCount);

               printf("Your numbers matched the Pick-5 numbers at position(s): ");

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

                       if(comp_nums[i] == user_nums[i]) {

                               printf("%d ", i);

                       }

               }      

               printf("\n");

       }

       printf("The winning numbers are: ");

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

               printf("%d ", comp_nums[i]);

       }

       printf("\n");

       return 0;

}

How will the program be written?

The appropriate steps include:

Define what the program should be able to do. It's also important to visualize the program running on the computer.

Then create a model of the program, check for logical errors and then write the program source code.

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1

Software redundancy techniques

Answers

When a software system provides the same functionality through the execution of distinct pieces, it is redundant.

What is redundancy?

Redundancy has two functions: passive redundancy and active redundancy. Both features use excess capacity to avoid performance decreases from exceeding specification limitations without requiring human involvement. Excess capacity is used in passive redundancy to mitigate the impact of component failures.

Many software engineering techniques have made extensive use of redundancy, such as fault-tolerance and reliability engineering, as well as self-adaptive and self-healing programs.

Therefore, It is redundant when a software system provides the same functionality through the execution of distinct pieces.

To learn more about redundancy, refer to the link:

https://brainly.com/question/12972964

#SPJ1

You have a plan for a program. Match the planning comment to the code that executes that part of the plan.

# Create a loop that continues until the user guesses the number.

# Get a guess from the user and update the number of guesses.

# Compare the guess to the correct answer.


guess = mput Guess an integer from 1 to 10: *)

quess = intouess)

attempts = attempts + 1


if guess == comect.

 Tell the user the guess was conect print"You were conectr

keepGoing = False

ese

print"You were wrong.")


keepGong = True

while keepGoing:

Answers

Answer:

1. Create a loop that continues until the user guesses the number.

while keepGoing:

2. Get a guess from the user and update the number of guesses.

guess = input("Guess an integer from 1 to 10: ")guess = int(guess)attempts = attempts + 1

3. Compare the guess to the correct answer.

if guess == correct:    print("You were correct.")    keepGoing = Falseelse:    print("You were wrong.")    keepGoing = True

The Contact entity has a LegalReports array. The LegalReportsLV List View displays the elements of the array.
Which two steps must be taken as part of the configuration to allow the user to add/remove rows to/from the LegalReportsLV?

Answers

These two steps must be taken as part of the configuration to allow the user to add/remove rows to/from the LegalReportsLV

1. Specify the Row Iterator widget's toRemove property

2. Specify the Iterator Buttons widget's toAdd property.

What is an array?

An array is a collection of elements, such as numbers, images, or physical objects, formatted into rows and columns according to their nature. An array, also referred to as a database system, is a group of things, or data, that are stored together in one or more contiguous memory locations.

Multiple data items of the same type should be stored together in an array. The commutative property of multiplication, which shows that you can shuffle the factors or elements and the result of the shuffle remains the same, can be demonstrated mathematically using an array.

By assigning an offset to every value in an array, you can use computer programming to find and identify where you stored each piece of information, or element.

Learn more about array

https://brainly.com/question/28565733

#SPJ4

Write three functions, float getNum(), float add(float, float), void outSum(float); that asks user for two numbers, finds the sum of two numbers, and displays the sum repeatly in a main program until the user enter “0” for either one of the numbers. For example, in the main, user enter 2, 4, output sum is 6. Then, 3,7, sum is 10, then 8, 7, sum is 15. When user enter one 0, the repeating process stops.C++ language only. No points will be given if other languages are used.


********************************
I have already written some code but I do not know where I am going wrong.
#include
using namespace std;
float getNum (float& x, float& y);
float add (float& x, float& y, float& z);
void outSum (float& z);



int main ()
{

float NumberOne = 0;
float NumberTwo = 0;
float Total = 0;


float getNum[2] = (NumberOne)(NumberTwo);
float add (NumberOne, NumberTwo, Total);
void outSum (Total);





}




float getNum (float& x, float& y)

{
cout << "Enter number one " << endl;
cin >> x;
cout << "Enter number two " << endl;
cin >> y;




}


float add (float& x, float& y, float& z) {
z = x + y;

}

void outSum (float& z) {

cout << "The total is " << z << endl << endl;

}

Answers

Answer:

#include <iostream>

using namespace std;

float getNum()

{

   float num;

   cout << "Enter a number: ";

   cin >> num;

   return num;

}

float add(float num1, float num2)

{

   return num1 + num2;

}

void outSum(float sum)

{

   cout << "Sum is " << sum << endl;

}

int main()

{

   float num1, num2, sum;

   num1 = getNum();

   num2 = getNum();

   while (num1 != 0 && num2 != 0)

   {

       sum = add(num1, num2);

       outSum(sum);

       num1 = getNum();

       num2 = getNum();

   }

   return 0;

}

Answer:

#include <iostream>

float getNum()

{

 float num;

 std::cout << "Enter a number: ";

 std::cin >> num;

 return num;

}

float add(float num1, float num2)

{

 return num1 + num2;

}

void outSum(float sum)

{

 std::cout << "The sum of the two numbers is: " << sum << std::endl;

}

int main()

{

 float num1, num2, sum;

 while (true)

 {

   num1 = getNum();

   num2 = getNum();

   if (num1 == 0 || num2 == 0)

   {

     break;

   }

   sum = add(num1, num2);

   outSum(sum);

 }

 return 0;

}

adt deque in python you are to reimplement the adt deque in python using the python deque from the collections module, but with the interface from lecture 11-1.

Answers

The deque class in the Python collections module was created specifically to offer quick and memory-saving methods for appending and removing items from the two ends of the underlying data structure.

What does dequeue () do in python?If you frequently work with lists in Python, you probably already know that they don't operate quickly enough when you need to pop and append items to their left end. The deque class in the Python collections module was created specifically to offer quick and memory-saving methods for appending and removing items from the two ends of the underlying data structure.The most popular list-like data types in computing, queues and stacks, are easily implemented using Python's deque, a low-level and highly optimised double-ended queue.You will discover the following in this tutorial:How to make and use deque in PythonHow to pop and add objects from both ends of a deque effectivelyHow to create effective queues and stacks using dequeWhen to use deque instead of listYou should be familiar with the fundamentals of dealing with Python lists in order to better comprehend these topics. You'll also benefit from having a basic understanding of queues and stacks.Finally, you'll create a few examples that guide you through some typical deque use cases. Deque is one of Python's most potent data types.

To Learn more About deque class refer to:

https://brainly.com/question/29738296

#SPJ4

Write a docstring for these functions

Answers

Answer:

import random

def shuffle_if_even(cards):

   """

   Shuffle a deck of cards if the top card is even.

   Args:

       cards (list): The deck of cards to shuffle.

   Returns:

       None: The function does not return any value.

   """

   if len(cards) > 1:

       top_card = cards[-1]

   if top_card.num in [2, 4, 6, 8, 10, "Q", "A"]:

       random.shuffle(cards)

g select all of the true statements regarding https. group of answer choices if a web server has its private key leaked, another web server could spoof a secure website, as certificates are public information.

Answers

The true statements regarding https: if a web server has its private key leaked, another web server could spoof a secure website.

What is http?HyperText Transfer Protocol is known as HTTP. An application protocol.The web developers are able to link web pages together by using hyperlinks that are included in hypertext. The foundation for WWW data communication is HTTP (World Wide Web). Tim Berners-Lee created HTTP in 1989 at CERN.In the client-server computer model, HTTP functions as a request-response protocol. Let's take a browser as an example of a client and an application running on a computer that is hosting a website as an example of a server.A HTTP request message is initially sent by the client to the server.The server then gathers the requested resources, including any HTML files or other information, and sends the client's replies.If the server cannot find the requested resources, an error message will be sent.

To learn more about http refer to :

https://brainly.com/question/13144519

#SPJ4

counter = 1
for i in range(1, 100) :
counter = counter + 1
print(counter)

Why is the answer 100 not 101

Answers

Answer:

The answer is 100 because the range() function in the for loop is set to go from 1 to 100, not 1 to 101. The range() function is inclusive of the start value and exclusive of the end value, so in this case it will only go up to 99, not 100. Additionally, the counter variable is not being incremented correctly within the for loop. The correct syntax for incrementing a counter variable would be "counter += 1" instead of "counter = counter + 1".

ou need sutures to close a cut on your hand, and lidocaine is used to numb the area. lidocaine works by

Answers

Lidocaine is a local anesthetic that can also be used to treat arrhythmias. Lidocaine functions by preventing sodium ions from entering the membrane surrounding neurons. This stops impulses from starting and moving through the nerve, which has an anaesthetic effect.

What is Lidocaine?

A local anaesthetic is lidocaine. It is used to anaesthetize or numb the surgical area during small surgical operations including dental, oral, diagnostic, or other therapeutic treatments. Other skin, eye, or ear irritations are also treated with it to offer momentary relief.

Uses

Lidocaine topical (for use on the skin) is used to reduce pain or discomfort caused by skin irritations such as sunburn, insect bites, poison ivy, poison oak, poison sumac, and minor cuts, scratches, or burns. Lidocaine topical is also used to treat rectal discomfort caused by hemorrhoids.

WarningsWithout consulting a doctor, avoid applying excessive amounts of lidocaine topical or wrapping the skin that has been treated in plastic or bandages.Lidocaine skin patches should never be given to children or pets, whether they are used or not. If a child or animal swallows or sucks on one of the skin patches by accident, it could be dangerous due to the amount of lidocaine present.

To know more about Lidocaine refer to :

https://brainly.com/question/28203073

#SPJ4

T/F the purpose of both hardwired control units and microprogrammed control units is to raise a series of signals that carry out operations inside a computer system

Answers

Both hardwired control units as well as microprogrammed control units have the same objective: to generate a series of signals that execute commands inside a computer system.

The given statement is True.

What are a microprogrammed control unit and a hardwired control unit?

Logic circuits in the hardwired control unit produce the control signals required by the CPU. With the aid of microinstructions stored in the control memory, the microprogrammed control system generates the control signals.

What benefits do microprogrammed controls have over hardwired controls? What function does the operating system serve?

Microprogramming offers benefits. It is quite versatile (compared to hard-wiring). The instruction sets might be highly complex or very straightforward while still being quite effective. You can generate what you need if your hardware isn't providing it, such as a complex instruction set.

To know more about operating system visit:

https://brainly.com/question/6689423

#SPJ4

Write a C# program to evaluate the football match result. It displays whether the first team won, or the second team won, or it was a tie. The numbers must be inputted by the user. [Sample screenshot attached for your reference].

Answers

using System;

namespace FootballMatchResult
{
class Program
{
static void Main(string[] args)
{
// Prompt the user to input the scores of the two teams
Console.WriteLine("Enter the score for team 1: ");
int team1Score = int.Parse(Console.ReadLine());
Console.WriteLine("Enter the score for team 2: ");
int team2Score = int.Parse(Console.ReadLine());

// Determine the result of the match based on the scores
if (team1Score > team2Score)
{
Console.WriteLine("Team 1 won the match!");
}
else if (team2Score > team1Score)
{
Console.WriteLine("Team 2 won the match!");
}
else
{
Console.WriteLine("The match was a tie.");
}
}
}
}




Please brainliest if it’s correct

John wants to make the sprite in his Scratch program speak out his name. However, he is not able to locate the speak block on the Scratch interface. List down the steps for him in order to get the speak block?

Answers

The region of your screen where the Scratch software is located is known as the Scratch user interface.

What role of Scratch program in Scratch interface?

The screen is divided into a number of “panes” or parts, each of which performs a distinct task, such as allowing you to select coding blocks to use, code, and view the results of your work. We will go over each component of the user interface.

Students can make their own interactive stories, games, and animations using the visual programming language Scratch.

Therefore, Students develop their creative thinking, logical reasoning, and teamwork skills as they create Scratch projects.

Learn more about Scratch here:

https://brainly.com/question/13770820

#SPJ1

find the maximum value and minimum value in miles tracker. assign the maximum value to maxmiles, and the minimum value to min miles. ex: if the input is: -10 20 30 40 the output is: min miles: -10 max miles: 40

Answers

Program in Python to find the maximum and minimum value in a list and display it on the screen.

Python Code

if __name__ == '__main__':

# Define variables

mile_tker = float()

mile_tker = [float() for ind0 in range(4)]

pivote = 0

maxi = 0

mini = 400000

# Entry data

print("Miles tracker")

print("Entry 4 miles value: ")

for x in range(1,5):

 while True:# no hay 'repetir' en python

  mile_tker[x-1] = float(input())

  if mile_tker[x-1]<400000: break

# Find the maximum value and minimum value in miles tracker

 if mile_tker[x-1]>maxi:

  maxi = mile_tker[x-1]

 if mile_tker[x-1]<mini:

  mini = mile_tker[x-1]

# Output

print("Max miles: ",maxi)

print("Min miles: ",mini)

To learn more about max and min value in list see: https://brainly.com/question/18330728

#SPJ4

Ryan is working on the layout of his web page. He needs to figure out where the title, links, text, and images should go. Which of the following can help him?
O Color selection
Color theory
© Proofreading
Storyboarding

Answers

All of the options you provided could potentially be helpful to Ryan as he works on the layout of his web page.

Color selection can help Ryan decide on the color scheme for his web page, which can affect the overall look and feel of the page.

Color theory can help Ryan understand how different colors can create different emotional responses in his viewers and how to use color to create a cohesive look for his page.

Proofreading can help Ryan ensure that there are no spelling or grammar errors in his text, which can make the page look more professional and easier to read.

Storyboarding can help Ryan map out the layout and content of his web page, helping him to visualize how everything will fit together and ensuring that all the necessary elements are included.

So, all of these options could potentially be useful to Ryan as he works on the layout of his web page.

Storyboarding can help Ryan figure out where the title, links, text, and images should go. Storyboarding is a visual tool used to map out the layout of a web page by breaking it into sections and arranging the elements accordingly. This will help Ryan visualize how the content should be organized on his page.

Which list will be referenced by the variable number after the execution of the following code?
number = range(0, 9, 2)
a. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
b. [1, 3, 5, 7, 9]
c. [2, 4, 6, 8]
d. [0, 2, 4, 6, 8]

Answers

The answer is Option d. [0, 2, 4, 6, 8].

What is Range?

Range is a statistical measure of dispersion in mathematics, or how widely spaced a given data collection is from smallest to largest. The range in a piece of data is the distinction between the highest and lowest value.

Mean – The arithmetic mean of a set of numbers is its average (the sum of the numbers divided by the quantity of numbers)

Median – The statistical median is the middle number in an ordered set of numbers

Mode – The mode is the most commonly occurring number in a data set

Range – The range of a data set is the mathematical difference between the largest and smallest value.

Formula  Fx  

Range=Greatest value-Least value

To know more about Range refer to :

https://brainly.com/question/24266668

#SPJ4

If the range of the numbers below is 8, what could the missing number be? 1 3 ? ​

Answers

Which numbers are you referring to?

switch to the all types worksheet. use the scenario manager to create a scenario summary report that summarizes the effect of the status quo, third party, and raise rates scenarios. use the range b17:d17 as the result cells. Switch back to the All Types worksheet. Use the Scenario Manager as follows to compare the profit per hour in each scenario:a Create a Scenario PivotTable report for result cells B17:D17.b Remove the Filter field from the PivotTable.c wChange the Number format of the Profit_ Per Hour Contracted Mana, Profit Per Hour Contracted Chan, and Profit Per Hour Contracted Proc fields (located in the Values box of the PivotTable Field List) to Currency with 2 Decimal places and $ as the Symbol.dUse Management as the row label value in cell 83, Change as the value in cellC3, and Process as the value in cell D3

Answers

A worksheet in an Excel document is a collection of cells organized in rows and columns. It is the interacting surface with which you enter data.

To create the presentation of the given worksheet, we have to follow these steps -

Change to the All Types worksheet, where the data is recorded.Select the DATA menu and under Data Tools click on What-If Analysis option.Select the Manage Scenario option.On the scenario manager, click the Add button. Give the scenario a name and add the cells asked i.e. B17:D17 and than click on OK.Now, you will get a Scenario Value screen where you can change the already existing value and get the analysis for it. Then press OK. You will get a screen where the name of your scenario will already exist.To obtain the summary, select the Summary option on the right side of the screen. This will bring up the Scenario Summary screen, where you can add the Result cells. Then press OK.

Worksheet Details:

Each worksheet has 1048576 rows and 16384 columns and functions as a giant table for organizing information. A workbook typically contains several worksheets with related content, with only one active at a time.

To know more about Worksheet, visit: https://brainly.com/question/26919847

#SPJ4

Write a complete C++ program named lab23.cpp that does the following.
The program fills a 5x4 array with 20 randomly generated two-digit positive integers so that the first 4 numbers occupy the first row, the next 4 occupy the next row and so on until the fifth row.
Make sure that your code generates different random integers when the program is run each time.
Print the array where each element in a row is separated by a space and each row is on its own line.
Print the maximum gap between the adjacent elements of each row. For example, if the elements in the first row of the array store 19, 20, 33 and 11, the maximum gap between adjacent elements in the first row is 22.
For each row in the array, count and print the number of elements that are divisible by 3 or 5.
Sample run:

Answers

#include<iostream>

#include<cstdlib>

#include<ctime>

using namespace std;

int main()

{

   int array[5][4];

   srand(time(NULL)); //seed random number generator

   //fill 5x4 array with random numbers

   for (int i = 0; i < 5; i++)

   {

       for (int j = 0; j < 4; j++)

       {

           array[i][j] = rand() % 90 + 10;

       }

   }

   //print array

   for (int i = 0; i < 5; i++)

   {

       for (int j = 0; j < 4; j++)

       {

           cout << array[i][j] << " ";

       }

       cout << endl;

   }

   //calculate and print maximum gap between adjacent elements

   for (int i = 0; i < 5; i++)

   {

       int maxGap = 0;

       for (int j = 0; j < 3; j++)

       {

           int gap = array[i][j+1] - array[i][j];

           if (gap > maxGap)

               maxGap = gap;

       }

       cout << "The maximum gap between adjacent elements in row " << i + 1 << " is " << maxGap << endl;

   }

   //calculate and print number of elements divisible by 3 or 5

   for (int i = 0; i < 5; i++)

   {

       int count = 0;

       for (int j = 0; j < 4; j++)

       {

           if (array[i][j] % 3 == 0 || array[i][j] % 5 == 0)

           {

               count++;

           }

       }

       cout << "The number of elements divisible by 3 or 5 in row " << i + 1 << " is " << count << endl;

   }

   return 0;

}

For more questions like Program click the link below:

https://brainly.com/question/13160963

#SPJ4

b. The electoral commission of Ghana is trying to find out the eligibility of voters in the country, on a trial bases you were tasked to come out with a program that request for:
i. A person's country of residence;
ii. The person's age;
iii. The person should be eligible to vote if he comes from Ghana and is at least 18 years of age.
NB: country and age should be declared as string and float respectively, You can use either "Scanner or JOptionPane" to collect the variables​

Answers

Electoral System Features in Ghana. The following characteristics describe Ghana's electoral system. For citizens who are at least 18 years old, there is universal adult suffrage.

What exactly is an election system?

An electoral system, often known as a voting system, is a set of regulations that govern how elections and referendums are held and how their outcomes are decided. voter registration continues. Voter registration and voting are optional and non-mandatory activities. Voting occurs at the registration location. anonymous voting. Electoral Commission regulation of political parties (EC).

What number of electoral constitutions does Ghana have?

The 275 constituencies of the Republic of Ghana's Parliament are listed here as of the general election in December 2016.

To more about electoral commission visit :-

https://brainly.com/question/880848

#SPJ1

______software is less risky and leads to quicker deployment; however, maintenance and support costs may become expensive.

Answers

Off-the-shell software is less risky and leads to quicker deployment; however, maintenance and support costs may become expensive.

What is software development?

The process of conceiving, defining, designing, programming, documenting, testing, and bug-fixing that goes into building and maintaining applications, frameworks, or other software components is known as software development. Program development comprises all activities from the conception of the desired software through to the ultimate manifestation of the software, often in a planned and organised process. It also involves authoring and maintaining the source code. [1] Research, new development, prototyping, modification, reuse, re-engineering, maintenance, and any other activities that lead to software products are also considered to be a part of software development. Requirements analysis is a crucial step in the software development process. Customers often have a general concept of the outcome they desire, but they are unsure of what the software should accomplish.

To know more about software development visit:

https://brainly.com/question/27588310

#SPJ1

Finally, add a personal reflection on what you have learned. What do think is the added value you have obtained?

Answers

The way to start a personal reflection include

Create a main theme. Brainstorm the ideas and experiences related to the topic Analyze how the ideas affect the topic

What is self Reflection?

Self-reflection (also known as "personal reflection") is the process of thinking about, meditating on, evaluating, and seriously considering your actions, thoughts, attitudes, motivations, and desires.

The ability to observe and evaluate our own cognitive, emotional, and behavioral processes is referred to as self-reflection. Other terms for this self-observation in psychology include'reflective awareness' and'reflective consciousness.'

Instead of doing things the same way you've always done them, reflecting allows you to improve your skills and assess their effectiveness.

Learn more about reflection on:

https://brainly.com/question/17190127

#SPJ1

Write down the binary representation of the decimal number 23.25 assuming the IEEE 754 single precision format.

Answers

decimal number 23.25 converted to binary is equal:

10111.01irst individually converting the integer and fractional parts to obtain the equivalent binary number, as shown below:

Consider these steps to translate the number 23 to binary:

Divide 23 by 2, paying attention to the leftover and quotient. Divide the quotient by 2 again until you reach zero.

The comparable binary number will then be obtain

Calculation steps:

The binary equivalent of the decimal number 23.25 is obtained by first individually converting the integer and fractional parts to obtain the equivalent binary number, as shown below:

Consider these steps to translate the number 23 to binary:Divide 23 by 2, paying attention to the leftover and quotient. Divide the quotient by 2 again until you reach zero.The comparable binary number will then be obtained by writing the remainders out in reverse order.23 / 2 Equals 11 with a remainder of 1, 11 / 2 = 5 with a remainder of 1, and 5 / 2 = 2 with a remainder of 0, respectively.1/2 = 0 with 1 as the remainder.Here is the binary equivalent of the decimal number 23:

        10111

Follow these steps to convert the decimal fraction 0.25 to a binary number:Add 0.25 to 2 and note the resulting fractional and integer parts. Once the resulting fractional component equals zero, keep multiplying by 2 until you reach that point (we calculate upto ten digits).Simply write out the integer components from each multiplication result to obtain the equivalent binary value.0.25 × 2 = 0 + 0.5\s0.5 × 2 = 1 + 0The binary equivalent of 0.25 in decimal form is as follows:

        0.01

    Therefore, the binary equivalent of the decimal number 23.25 is                  10111.01

To learn more about decimal fraction refer https://brainly.com/question/7980438

#SPJ4

which systems analysis tool shows the relationship between input and output documents? (pick 1: automated design tool, data flow diagram, system flow chart, grid chart, program flow chart, spreadsheet, 3d chart, 2d chart)
A) flowchart
B) top-down analysis method
C) decision table
D) grid chart

Answers

The relationship between the incoming and outgoing documents may be seen using the top-down analysis approach.

What are documents and what sorts of documents are there?

A document is described as a written, printed, or digitally formatted sheet of paper or collection of papers used to store records for private or professional reasons. It serves as a source of authority, proof, an authentic record, or a source of reference.

What does word document mean?

A documents is a collection of work that has been stored when it is produced using a computer program like a word processor or spreadsheet. All digital document is also stored as a separate file with a name that sets it apart from all other papers.

To know more about Document visit :

https://brainly.com/question/2901657

#SPJ4

At what age could you retire with $1 million if you started investing at age 25?

Answers

Answer:

65 years old

Explanation:

25-year-old would need to save approximately $400 a month to achieve a $1 million balance by age of 65

phonological memory represents the ability to code information phonologically for temporary storage in working or short-term memory. specifically the composite score provides an assessment of the functioning of the part of memory called the phonological loop, which provides a brief, verbatim storage of auditory information. a deficit does not inevitably lead to poor reading of familiar material but is more likely to impair decoding of new words, particularly words that are long enough to decode bit by bit, as a means of storing intermediate sounds. a deficit in phonological memory may not impair listening or reading comprehension for simple sentences but is likely to impair both listening and reading

Answers

Phonological memory is the capacity to retain knowledge based on speech in short-term memory. When reading and spelling, we place a lot of reliance on our phonological memory. Students are asked to repeat nonsensical words that are longer and more complicated or to memorize strings of numbers as a way of testing their memorization abilities.

What makes phonological memory crucial?

The development of vocabulary, processing of sentences and conversation, and learning to read are just a few of the skills that phonological working memory promotes (Perrachione et al., 2017).

How would one rate their phonological memory?

The "digit span," "digit span-running," and "nonword repetition" tasks are used to measure phonological working memory. Children must repeat lists of various lengths, ranging from 2 to 8 digits, as part of the "digit span" exercise. When kids are playing a game, this duty is provided to them.

To know more about phonological memory visit;

https://brainly.com/question/14842522

#SPJ4

Which of the following terms is the encrypted form of a message that is unreadable except to its intended recipient?
a. plain text
b. encryption algorithm
c. ciphertext
d. steganography

Answers

c)Ciphertext is the encrypted form of a message that is unreadable except to its intended recipient.

What is encryption?

Encoding data is the process of encryption in cryptography. This technique transforms the information's initial plaintext representation into an alternate version known as ciphertext. Only parties with the proper authorization should be able to convert ciphertext to plaintext and gain access to the original data. Although encryption does not by itself stop interference, it does hinder a potential interceptor from understanding the material.

An encryption technique typically employs a pseudo-random encryption key produced by an algorithm for technical reasons. Without the key, it is feasible to decrypt the message, but doing so requires a lot of computer power and expertise for a well-designed encryption scheme. With the key provided by the sender to recipients but not to unauthorized users, an authorized recipient can quickly decrypt the communication.

To know more about encryption visit:

https://brainly.com/question/29351801

#SPJ1

A ____ is a part of the DNS domain tree for which the DNS server has authority to provide information.
Question 10 answers
zone
=region =
=node =
=leaf=

Answers

A zone is a part of the DNS domain tree for which the DNS server has authority to provide information.

What is DNS tree?DNS manages its distributed database system using a hierarchy. Similar to eDirectory, the DNS hierarchy, also known as the domain name space, is an inverted tree structure. The root domain, which is the single domain at the top of the DNS tree, is its only component. The root domain is identified by a period (.) or dot.Recursive resolvers, root nameservers, TLD nameservers, and authoritative nameservers are the four categories into which all DNS servers fall.Primary servers, secondary servers, and cache servers are the three basic categories of DNS servers.The major distinction between a tree and a forest in an Active Directory is that a tree is a group of domains, whereas a forest is a collection of trees.

Learn more about DNS tree refer to :

https://brainly.com/question/29454775

#SPJ4

Other Questions
ABC is a right triangle with vertices B (9, 4) and C (3, 9).What are the coordinates of vertex A?Enter your answers in the boxes. xochitl has $2 worth of nickels and dimes. she has a total of 24 nickels and dimes altogether. graphically solve a system of equation in order to determine the number of nickels, x. and the number of dimes, y, that xochitl has Which of the following are the top three contributors to the calories expended by the body each day?A. physical activityB. basal metabolismC. mental processesD. thermic effect of food OSHA standards for electrical equipment and systems cover what elements of an electrical installation describe two soil conservation strategies that could be used to prevent soil erosion in agricultural fields that are established in this landscape. 1. To call London, a long distance phone company charges a fixed rate for the first minute different rate for each additional minute. If a 12 minute phone call costs $2.35 and a 25 inute call costs $3.65, how much are their rates? the nurse treats a client with end-stage kidney disease (eskd). the nurse is concerned that the client is developing renal osteodystrophy. upon review of the client's laboratory values, it is noted the client has had a calcium level of 11 mg/dl for the past 3 days and the phosphate level is 5.5 mg/dl. the nurse anticipates the administration of which medication? as chinese emperors thought to insulate themselves withint the forbidden palace,. they also limited trade due to which of the deirecly following pls help due asap!!!!!!!!!!!!! essment15. Tolen has 18 dog treats. He gives thesame number of treats to 6 dogs at theanimal shelter. Which two equationscould be used to find the number oftreats each dog gets?A(B)18+6=24 and 24 - 6 = 1818 6 3 and 6 X 3 = 1818D63=2 and 6 2 = 318 1 and 1 X 18 = 18 short-wave (visible and ultraviolet) radiation that reflects off the earth's surface is absorbed by the lower atmosphere and heats it up, a process otherwise known as the greenhouse effect. Project: When It All Goes Wrong on Wall StreetAssignment Directions1. Find a case which involved a bankrupt or closed securities firm, such as Enron or Lehman Bros. Research the case, and thesettlement. The easiest way to do this is to go to the SEC site, look at the regulatory actions against securities firms, and follow acase. Here is the link ( sec.gov/spotlight/ enf-actions-fc.shtml or SEC Enforcement Actions, Addressing Misconduct That Led To or Arose From the Financial Crisis) to a current list of publicly traded companies that have been cited for SEC misconduct. As you can see, many of them are banks and securities firms and some of these firms are no longer in business. It is your job to research the firm and find out which ones on this list are no longer around. Then, follow the thread through the SEC, the courts,and other reliable media such as Bloomberg, Wall Street Journal, or the New York Times. The most important thing to learn inthis assignment is how the enforcement process works. A second aspect of your research should include noting the stock price of this public firm before the regulatory actions and ultimate demise of the firm, and what the shareholders ended up receiving. You can find this information through the SEC enforcement reports and by using your browser to find historical information on share prices.Submission Requirements 1. Write a report detailing the company that failed and what caused the failure. Describe the economic value and the cost to individual investors from a human perspective. Discuss how the regulatory system for securities worked or didnt work and why. Was there any legislative or regulatory change because of this failure? Were there changes in society?2. Your report should be 3 to 4 pages, double-spaced with 1-inch margins, and contain quantitive loss information from the failure (in other words the math), as well as a detailed narrative as to what went wrong. It also must show how the regulatory system for securities worked or didnt work and why.pls respond asap! will give brainliest :) during a home visit to a breastfeeding primiparous client at 1 week postpartum, the client tells the nurse that her nipples have become sore and cracked from the feedings. which instructions should the nurse give the client? a young girl from the kayan people wears a neck ring made of brass. it looks as if there are 21 individual rings but the ring is actually one continuous length of brass fashioned (bent) into a coil. the height of the brass coil is 12 cm and its average circumferences is 40 cm. neck rings are usually only removed to be replaced with a bigger one as the girls grows. however, we can estimate the mass of this neck ring without removing it. b. the coil has a height of 12 cm and the coil has 21 turns. calculate the radius of the brass in cm. A faucet leaks 0.8 gallon of water every 2 hours. Which graph has a slope that best represents the number of gallons per hour leaked by the faucet? How Much does politician's personal life effect their ability to do their job if the father is heterozygous for 6 fingers and the mother has 5 fingers, what is the probability of having these characteristics in their offspring? Is this graph a function or nonfunction the governor of texas can use the veto in various ways to reject acts by the legislature, and different types of vetoes have specific features. label each description with the type of veto that it best and most closely describes. write the basic area of modern psychology ?write area of modern psychology and write the significant and why we called them modern psychology?