What are keyboards that include all the keys found on a typical virtual keyboard, as well as extra keys, such as function and navigation keys

Answers

Answer 1

Answer:

multimedia keyboard i think

Explanation:

Answer 2

The keyboards that include all the keys found on a typical virtual keyboard including function and navigation keys are called;

Laptops

A virtual keyboard is one that appears only when we require it and then goes away after we are done using it. Due to the nature of them, they occupy a small space. Examples of these virtual keyboards are the keyboards in touch screen mobile phones as well as tablets. Also, there are some computer operating systems that support virtual keyboards such as Windows 10.

Now, it is pertinent to know that virtual keyboards don't require physical keys to operate and also they don't possess the function and navigation keys that traditional keyboards have.

The only other unit that has a keyboard that possesses the function and navigation keys are Laptops.

Read more at; https://brainly.in/question/11722276


Related Questions

Consider the following method, sumRows, which is intended to traverse all the rows in the two-dimensional (2D) integer array num and print the sum of all the elements in each row.
public static void sumRows(int[][] num)
{
for (int[] r : num)
{
int sum = 0;
for (int j = 0; j < num.length; j++)
{
sum += r[j];
}
System.out.print(sum + " ");
}
}
For example, if num contains {{3, 5}, {6, 8}}, then sumRows(num) should print "8 14 ".
The method does not always work as intended. For which of the following two-dimensional array input values does sumRows NOT work as intended?
A. {{10, -18}, {48, 17}}
B. {{-5, 2, 0}, {4, 11, 0}}
C. {{4, 1, 7}, {-10, -11, -12}}
D. {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}
E. {{0, 1}, {2, 3}}

Answers

Answer:

Option C: {{4, 1, 7}, {-10, -11, -12}}

Explanation:

There is a logical error in the inner loop.

for (int j = 0; j < num.length; j++)

It shouldn't be "j < num.length" as the iteration of the inner loop will be based on the length of the row number of the two dimensional array. The inner loop is expected to traverse through the every column of the same row in the two dimensional array and sum up the number. To fix this error, we can change it to

for (int j = 0; j < r.length; j++)

The sumRows method adds up all elements in each row, and prints the calculated sum.

The sumRows method would not work for input values (c) {{4, 1, 7}, {-10, -11, -12}}

In the inner loop of the sumRows method, we have

for (int j = 0; j < num.length; j++)

The above loop iterates from 0 to one less than the number of columns in the array.

Take for instance, {{10, -18}, {48, 17}} has 2 rows, and 2 columns.

So, the iteration would be for elements at indices 0 and 1.

However, the array {{4, 1, 7}, {-10, -11, -12}} has 3 rows and 2 columns

So, the iteration would be for elements at indices 0 and 1; leaving the element at index 2

Hence, the sumRows method would not work for input values (c) {{4, 1, 7}, {-10, -11, -12}}

Read more about methods at:

https://brainly.com/question/23052617

Do the following exercise from the book.Follow the instructions for all assignments (one link up) and any specific additional instructions for each problem. Ch. 6, Programming Problems 5, pg. 219 Name the program postfix.cpp.Make sure the following requirements are met.Program must compile and run.Make sure to implement the algorithm (Evaluating Postfix Expressions 6.3.1) as a function. (not as part of main) Note while C does have the atoi function it may be easier to simply subtract the char '0' from the char digit. Remember to upload all files before submitting. postfix.cpp

Answers

Answer:

its postfix

Explanation:

On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0 * rn, where n is the distance (number of keys) from that key, and r is 2(1/12). Given an initial key frequency, output that frequency and the next 4 higher key frequencies.

Answers

Answer:

The programming language is not stated; so, I'll solve this question using Java programming language

Comments are used for explanatory purpose

//Begin of Program

import java . util.*;

import java. math . RoundingMode;

import java . text . DecimalFormat;

public class keyfreq

{

private static DecimalFormat df = new DecimalFormat("0.00");

public static void main(String [] args)

{

 Scanner input = new Scanner(System.in);

 //Declare variable

 float f0;

//Prompt user for input

System.out.print("Enter Initial Key Frequency: ");

f0 = input.nextFloat();

//Initialize number of keys

int numkey = 1;

//Print first key frequency

System.out.print("Key Frequencies: " + df.format(f0)+" ");  

while(numkey<=4)

{

 //Calculate next frequency

 f0*= Math.pow(2,(1.0/12.0));

 //Print Frequency

 System.out.print(df.format(f0)+" ");  

  //Iterate to next frequency

 numkey++;

}

}

}

//End of Program

Explanation:

See Comments in the above program

See Attachment for source file

Discuss reason why you may prefer to have cookies disabled on your browser

Answers

Answer:

For me this is because, if I don't accept them they won't let me see what I came there for and my megabyte will be wasting.

Explanation:

Scott is seeking a position in an Information Technology (IT) Department. During an interview, his prospective employer asks if he is familiar with programs the company could use, modify, and redistribute without restrictions. What types of programs is the interviewer referring to?A. freewareB. open sourceC. Software as a Service (SaaS)

Answers

Answer:

B. Open Source!!!!

Explanation:

Just took the test and this is the correct answer I promise!

The interviewer is referring to open-source programs.

The correct option is B.

Open-source software is a type of software that provides users with the freedom to use, modify, and distribute the program without restrictions. It typically includes the source code, allowing users to inspect, modify, and enhance the software according to their needs.

Open-source programs are developed collaboratively by a community of developers and are often available for free or at a lower cost compared to proprietary software. Users have the freedom to customize the software, fix bugs, add features, and distribute their modifications to others.

Freeware, on the other hand, refers to software that is available for free but does not necessarily provide the freedom to modify and distribute the program without restrictions. Freeware may have limitations on usage, redistribution, or access to the source code.

Software as a Service (SaaS) is a different concept where software applications are provided as a service over the internet, typically on a subscription basis. SaaS applications are not necessarily open source or freeware, as their distribution and usage terms vary depending on the specific service provider.

Learn more about Open source Program here:

https://brainly.com/question/14605142

#SPJ6

3.22 LAB: Driving cost - methods Write a method drivingCost() with input parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. All items are of type double. If the method is called with 50 20.0 3.1599, the method returns 7.89975. Define that method in a program whose inputs are the car's miles/gallon and the gas dollars/gallon (both doubles). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your drivingCost() method three times. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: System.out.printf("%.2f", yourValue); The output ends with a newline. Ex: If the input is: 20.0 3.1599 the output is: 1.58 7.90 63.20 Your program must define and call a method: public static double drivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon) Note: This is a lab from a previous chapter that now requires the use of a method.

Answers

Answer:

The java program for the given scenario is as follows.

import java.util.Scanner;

import java.lang.*;

public class Test

{

   //variables to hold miles per gallon and cost per gallon

   static double miles_gallon, dollars_gallon;

   public static void main(String[] args)

   {

       Scanner sc = new Scanner(System.in);

       System.out.print("Enter the car's mileage in miles per gallon: ");

       miles_gallon=sc.nextDouble();

       System.out.print("Enter the cost of gas in dollars per gallon: ");

       dollars_gallon=sc.nextDouble();

       System.out.printf("The cost of gas for 10 miles is $%.2f\n", drivingCost(10, miles_gallon, dollars_gallon));

       System.out.printf("The cost of gas for 50 miles is $%.2f\n", drivingCost(50, miles_gallon, dollars_gallon));

       System.out.printf("The cost of gas for 400 miles is $%.2f\n", drivingCost(400, miles_gallon, dollars_gallon));

   }

   //method to compute cost of gas

   public static double drivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)

   {

       double cost = ((drivenMiles/milesPerGallon)*dollarsPerGallon);

       return cost;

   }

}

OUTPUT

Enter the car's mileage in miles per gallon: 12

Enter the cost of gas in dollars per gallon: 23

The cost of gas for 10 miles is $19.17

The cost of gas for 50 miles is $95.83

The cost of gas for 400 miles is $766.67

Explanation:

1. Two double variables to hold user input for miles per gallon and cost of gas per gallon, are declared.

2. The variables are declared static, and at the class level (outside main()).

3. Inside main(), an object of Scanner class is created.

4. User input is taken for miles per gallon and cost of gas per gallon.

5. Next, the method, drivingCost() is called. This method takes three parameters - miles per gallon, cost of gas per gallon and miles driven. Based on these parameters and the given formula, the cost of gas is computed.

6. This value is then displayed to the user.

7. The method, drivingCost(), is called three times for 10 miles, 50 miles and 400 miles being driven.

8. The whole code is written inside a class since java is a purely object-oriented language.

9. The object of the class is not created since only a single class is used.

10. The program is saved as Test.java.

In this exercise we have to use the knowledge in computational language in JAVA to describe a code that best suits, so we have:

The code can be found in the attached image.

To make it simpler we can write this code as:

import java.util.Scanner;

import java.lang.*;

public class Test

{

  //variables to hold miles per gallon and cost per gallon

  static double miles_gallon, dollars_gallon;

  public static void main(String[] args)

  {

      Scanner sc = new Scanner(System.in);

      System.out.print("Enter the car's mileage in miles per gallon: ");

      miles_gallon=sc.nextDouble();

      System.out.print("Enter the cost of gas in dollars per gallon: ");

      dollars_gallon=sc.nextDouble();

      System.out.printf("The cost of gas for 10 miles is $%.2f\n", drivingCost(10, miles_gallon, dollars_gallon));

      System.out.printf("The cost of gas for 50 miles is $%.2f\n", drivingCost(50, miles_gallon, dollars_gallon));

      System.out.printf("The cost of gas for 400 miles is $%.2f\n", drivingCost(400, miles_gallon, dollars_gallon));

  }

  //method to compute cost of gas

  public static double drivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)

  {

      double cost = ((drivenMiles/milesPerGallon)*dollarsPerGallon);

      return cost;

  }

}

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

Design and implement a program to process golf scores. The scores of four golfers are stored in a text file (download golf.txt from moodle). Each line represents one hole, and the file contains 18 lines. Each line contains five values: par for the hole followed by the number of strokes each golfer used on that hole.1) Store the totals for par and the players in an ArrayList.2) Determine the winner and produce a table showing how well each golfer did (compared to par).3) Modify the StyleOptions program in chapter 5 to allow the user to specify the size of the font. Use a text field to obtain the size

Answers

Answer:

Explanation:

import java.io.*;

import java.util.*;

public class GolfScores

{

    // *************************************************************

    // the purpose of this program is to read golf scores between

    // four players and figure out the winner with the lowest score

    // **************************************************************

    public static void main(String[] args) throws FileNotFoundException

    {

         final int HOLES = 28, VALUES_PER_LINE = 4;

         int hole = 0;

         int parscores[] = new int[HOLES];

         //declare a file object to handle the text file with scores

         File file1 = new File("golfscore.txt");

         

         int sum0=0;

         int sum1=0;

         int sum2=0;

         int sum3=0;

         int sum4=0;

         Scanner scan = new Scanner(file1);

         // total par and scores for all holes

         int scores[][] = new int[HOLES][VALUES_PER_LINE];

         //loop to store the contents of the file into arrays

         while (scan.hasNext())

         {

             int index = 0;

             parscores[hole] = scan.nextInt();

                  while (index < 4)

             {

                  scores[hole][index] = scan.nextInt();                                             // values in a line

                  index++;

             }

             //

             hole++;

         }

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

         {

         

             sum0+=parscores[i];

         

         }

         

         int sumarray[]=new int[4];

         //loop to calculate the total score of each player

         for(int row=0;row<HOLES;row++)

         {

         

             sum1+=scores[row][0];

             

             sum2+=scores[row][1];

             

            sum3+=scores[row][2];

         

             sum4+=scores[row][3];

   

         }

         System.out.println();

         System.out.println("Par for the course"+sum0);

         System.out.println("Player 1:"+sum1);

         System.out.println("Player 2:"+sum2);

         System.out.println("Player 3:"+sum3);

         System.out.println("Player 4:"+sum4);

         sumarray[0]=sum1;

         sumarray[1]=sum2;

         sumarray[2]=sum3;

         sumarray[3]=sum4;

         int min=sumarray[0];

         //Loop to find out the minimum score

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

         {

             if(sumarray[j]<min)

                  min=sumarray[j];

             

         }

         System.out.print("The winner is ");

         //condition statement to determine the winner

         if(min==sum1)

         {

             System.out.print("Player1");

         }

             else if(min==sum2)

             {

                  System.out.print("Player2");

         }

             else if(min==sum3)

             {

                  System.out.print("Player3");

         }

             else

             {

                  System.out.print("Player4");

         }

         

   

    }

   

}

cheers i hope this helped !!

The part of a computer that we can touch and feel: (one word answer)

Answers

Answer:

hardware

Explanation:

hardware is the part where we can touch and feel while software ,we cant

Answer:

keyboard

Explanation:

Imagine a TCP session over wireless where the congestion window is fixed at 5 segments (congestion control is turned off and no fast retransmits). Segments may get lost but are not reordered. The receiver has an infinite buffer and it sends an acknowledgment as soon as it receives a segment, i.e., acknowledgments are not deferred. Similarly, the sender transmits a segment as soon as it is allowed to. Each segment carries 1000 bytes and the time to transmit a segment is 2 ms. Assume that transmission of ACK takes negligible time. Note that the retransmission timer for a segment is started after the last bit of the segment is sent. Assume Go-Back-5, and accumulative ACK is used.
Suppose two data segments with byte sequence numbers 3000 and 15000 are lost once during the transmission. How many segments get retransmitted under each of the following conditions?
A. Round trip time = 100 ms, Timeout = 101 ms
B. Round trip time = 100 ms, Timeout = 152 ms

Answers

Answer:

a) 179 segments

b) 28 segments

Explanation:

Given data :

A) Round trip time = 100 ms, Timeout = 101 ms

number of segments  for round trip = 3000/100 = 30 segments

number of segments for timeout = 15000/100 = 150 segments

total number of segments = 150 + 30 = 180

segments that get re-transmitted under A

Total segments - timeout = 180 - 101 = 179 segments

B) Round trip = 100 ms Timeout = 152 ms

number of segments for round trip = 3000/100 = 30 segments

number of segments for timeout = 15000/100 = 150 segments

total segments = 150 + 30 = 180

segments that get re-transmitted under B

total segments - timeout = 180 - 152 = 28 segments

We have a combinatorial logic function that can be decomposed into three steps each with the indicated delay with a resulting clock speed of 5.26 GHz.
1. 65ps
2. 45ps
3. 60ps
4. Reg 20ps
Assume we further pipeline this logic by adding just one additional register between the first two or last two stages of combinatorial logic. What would be the highest resulting clock speed we could achieve in GHz?
We have a combinatorial logic function that can be decomposed into three steps each with the indicated delay with a resulting clock speed of 4.76 GHz.
1. 65ps
2. 55ps
3. 70ps
4. Reg 20ps
Assume we further pipeline this logic by adding just one additional register between the first two or last two stages of combinatorial logic. What would be the highest resulting clock speed we could achieve in GHzi?

Answers

Answer:

1.    11.77 GHz

2.   11.11  GHz

Explanation:

1.

From the given information;

the highest resulting clock speed we could achieve in GHz is calculated as follows:

Using the formula:

highest resulting clock speed = 1/max (stage,stage,stage,stage) + register delay)

highest resulting clock speed = 1/max(65ps, 45ps, 60 ps) + 20ps)

highest resulting clock speed = 1/(65 + 20)ps

highest resulting clock speed =  1/85 ps

highest resulting clock speed = 0.01176470588  × 10¹² Hz

highest resulting clock speed = 1.17647059 × 10¹⁰ Hz

highest resulting clock speed =  1.177 × 10¹⁰ Hz

To Ghz; we have:

highest resulting clock speed = (1.177 × 10¹⁰/10⁹ )GHz

highest resulting clock speed = 11.77 Ghz

2.

Using the same formula from above;

highest resulting clock speed = 1/max(65ps, 55ps, 70 ps) + 20ps)

highest resulting clock speed = 1/(70 + 20)ps

highest resulting clock speed =  1/90 ps

highest resulting clock speed = 0.01111111111  × 10¹² Hz

highest resulting clock speed = 1.111111111  × 10¹⁰ Hz

highest resulting clock speed =  1.111 × 10¹⁰ Hz

To Ghz; we have:

highest resulting clock speed = (1.111 × 10¹⁰/10⁹ )GHz

highest resulting clock speed = 11.11 Ghz

In this exercise we have to calculate the delay time and the time to archive something, so we have that these times will be:

1) 11.77 GHz

2) 11.11  GHz

1) First we will use the knowledge to calculate the delay, so the formula can be used is:

[tex]HRCS = 1/max (stage,stage,stage,stage) + register delay)\\HRCS = 1/max(65ps, 45ps, 60 ps) + 20ps)\\HRCS = 1/(65 + 20)ps\\HRCS= 1/85 ps\\HRCS = 0.01176470588* 10^{12}Hz\\HRCS = 1.17647059 * 10^{10} Hz\\HRCS = 1.177 * 10^{10} HZ\\HRCS = 11.77 Ghz[/tex]

2) through the first formula we can also calculate the time for the speed of archiving, like this:

[tex]HRCS = 1/max(65ps, 55ps, 70 ps) + 20ps)\\HRCS = 1/(70 + 20)ps\\HRCS = 1/90 ps\\HRCS = 0.01111111111 * 10^{12} Hz\\HRCS = 1.111111111 * 10^{10} Hz\\HRCS = 11.11 Ghz[/tex]

See  more about GHZ at brainly.com/question/13112545

Which term is used to describe an understanding of computers, computer terminology, and how computers work?

Answers

Answer:

Computer literacy is the correct answer and following are working of computer is given below.

Explanation:

Computer literacy is characterized as the awareness and capacity to make the effective use through the software as well as the computer technology, The computer literacy including the skill sets of varying from simple use to the computer science as well as the specialized solving problems.

The main objective of computer literacy recognize the computer skills as well as the computer terminology.

 Working of computer

The computer is getting the data from the input device such as keyboard etc, after that it process the data with the help of central processing unit and gives output in the monitor .Between this there are some memory are also there such as RAM ,ROM etc .

What is computer knowledge called?

Computer literacy

Computer literacy is defined as the knowledge and ability to use computers and related technology efficiently, with skill levels ranging from elementary use to computer programming and advanced problem solving.

Ask the user to enter a number for red, green, and blue components of an RGB value. Test to make sure each value is between 0 and 255 inclusive. If a color's value is out of range, print which component is not correct (e.g., "Red number is not correct" if the red value is 300). Multiple colors may be out of range.

Answers

Answer:

r = int(input("Enter a number for red channel: ")) g = int(input("Enter a number for green channel: ")) b = int(input("Enter a number for blue channel: "))   if(r < 0 or r >255):    print("Red number is not correct.") if(g < 0 or g >255):    print("Green number is not correct.") if(b < 0 or b >255):    print("Blue number is not correct.")

Explanation:

The solution code is written in Python.

Firstly, prompt user to input three numbers for red, green and blue (Line 1-3).

Next, create three similar if statements to check if the red, green and blue are within the range 0-255 by using logical operator "or" to check if the number is smaller than 0 or bigger than 255. If either one condition is met, display a message to indicate a particular color number is not correct (Line 5-12).

The program written in python 3 which displays the whether the range of RGB values inputted by the user is in range goes thus :

r = int(input('Enter red value between 0 - 255'))

g = int(input('Enter green value between 0 - 255'))

b = int(input('Enter blue value between 0 - 255'))

#accepts inputs for red, green and blue values from the user

vals = {'red':r, 'green':g, 'blue':b}

#read the values into a dictionary and assign the values inputted by the user as the values

for k, v in vals.items():

#iterate through the dictionary as key-value pairs

if(v < 0) or (v > 255):

#Check of the values inputted is within range (0 - 255)

print('%s is not correct' %k)

#for any value which is out of range, display the name of the color and state that it is incorrect.

A sample run of the program ls attached below.

Learn more :https://brainly.com/question/18802298

Which component provides WiFi access for employees in home offices, branch offices, and on the corporate campus? A. Identity Services Engine (ISE) B. WLAN controllers (WLCs) C. Wireless access points (APs) D. Cisco AnyConnect Client

Answers

Answer:

C.

Explanation:

The component that t provides WiFi access for employees in home offices, branch offices, and on the corporate campus is Wireless access points (APs).

APs are generally a networking hardware device that allows other wifi devices to connect to wired network. It creates a wireless local area network, usually in offices or large buildings.

Bluetooth 5 allows data to be transferred between two devices at a rate of

Answers

Answer:

2 MBPS.

Explanation:

The Bluetooth 5 raises the data transmission of information throughput from 1 Mbps to the 2 Mbps. The main advantage of Bluetooth 5 do not increasing the energy  utilization.The Bluetooth 5 increasing the volume of information that technologies can be distribute.

The main advantage of Bluetooth 5 decreases the time it would take to send and receive the signals,The previous version of Bluetooth transmit the information from one device to the another with the 1 Mbps speed  .

Suppose you are using the priority queue data structure to maintain plane-landing system. As planes arrive near the vicinity of the airport, each plane sends a landing request with the duration (in minutes) that the plane can wait before landing. For example, plane may send the request with value 30. That means that the plane can wait 30 minutes before landing. Once a landing request is received, the request will be added to the plane landing priority queue. Each time when the land method is called, the landing request with lowest wait time will be removed from the priority queue. Develop a C or C++ program that implements this plane landing system with following user interface

Answers

Answer:

#include<iostream>

#include<stdio.h>

using namespace std;

class Node

{

public:

string name;

int waittime;

Node *next;

Node(string n,int w)

{

name=n;

waittime=w;

next=NULL;

}

};

Node *insert(Node *head,string name,int waittime)

{

Node *temp=new Node(name,waittime);

if(head==NULL||head->waittime>waittime)

{

temp->next=head;

head=temp;

}

else

{

Node *p=head;

while(p->next!=NULL)

{

if(p->next->waittime>waittime)

{

temp->next=p->next;

p->next=temp;

break;

}

p=p->next;

}

if(p->next==NULL)

{

p->next=temp;

}

}

return head;

}

Node *remove(Node *head)

{

if(head==NULL)

return NULL;

string name=head->name;

int waittime=head->waittime;

cout<<name<<" with wait time "<<waittime<<" landed"<<endl;

head=head->next;

return head;

}

void print(Node *head)

{

if(head==NULL)

return;

Node *temp=head;

cout<<"All the landing requests: "<<endl;

while(temp!=NULL)

{

cout<<temp->name<<" with waiting time "<<temp->waittime<<endl;

temp=temp->next;

}

}

int main()

{

Node *head=NULL;

cout<<" Welcome to plane landing system\n"<<endl;

int exit=0;

while(1)

{

cout<<"1. Make a landing request"<<endl;

cout<<"2. Land a plane"<<endl;

cout<<"3. List all the landing requests"<<endl;

cout<<"4. Exit\n"<<endl;

cout<<"Select your option: ";

int i;

cin>>i;

string name;

int waittime;

switch(i)

{

case 1:

cout<<"Enter plane name: ";

cin>>name;

cout<<"Enter wait time before landing: ";

cin>>waittime;

head=insert(head,name,waittime);

cout<<"Landing request made"<<endl;

break;

case 2:

head=remove(head);

break;

case 3:

print(head);

break;

case 4:

exit=1;

break;

default:

cout<<"Invalid option...Try again"<<endl;

break;

}

if(exit==1)

break;

}

return 0;

}

Explanation:

Input the code and see the output.

explain agile testing ​

Answers

Answer:

Explanation:

Agile testing is software testing that follows the best practices of Agile development. For example, Agile development takes an incremental approach to design. Similarly, Agile testing includes an incremental approach to testing. In this type of software testing, features are tested as they are developed.

public class UserName 1/ The list of possible user names, based on a user's first and last names and initialized by the constructor private ArrayList possibles ; /* Constructs a UserName object as described in part (a). • Precondition: firstName and lastNane have length greater than a and contain only uppercase and lowercase letters. public UserName(String firstName, String lastName) {/" to be implemented in part (a) */) /** Returns true if arr contains name, and false otherwise. */ public boolean isused(String name, Strinell arr) [/" implementation not shown ) /* Removes strings from possibleNames that are found in usedNames as described in part (6) public void setAvailableUserNames(Strinel) usedNames) { 1 to be implemented in part (6) (a) Write the constructor for the UserName class. The constructor initializes and fills possibleNames with possible user names based on the firstName and lastName parameters. The possible user names are obtained by concatenating lastName with different substrings of firstName. The substrings begin with the first character of firstName and the lengths of the substrings take on all values from 1 to the length of firstName.

Answers

Answer: Provided in the explanation segment

Explanation:

CODE:-

import java.util.*;

class UserName{

  ArrayList<String> possibleNames;

  UserName(String firstName, String lastName){

      if(this.isValidName(firstName) && this.isValidName(lastName)){

          possibleNames = new ArrayList<String>();

          for(int i=1;i<firstName.length()+1;i++){

              possibleNames.add(lastName+firstName.substring(0,i));

          }  

      }else{

          System.out.println("firstName and lastName must contain letters only.");

      }

  }

  public boolean isUsed(String name, String[] arr){

      for(int i=0;i<arr.length;i++){

          if(name.equals(arr[i]))

              return true;

      }

      return false;

  }

  public void setAvailableUserNames(String[] usedNames){

      String[] names = new String[this.possibleNames.size()];

      names = this.possibleNames.toArray(names);

      for(int i=0;i<usedNames.length;i++){

          if(isUsed(usedNames[i],names)){

              int index = this.possibleNames.indexOf(usedNames[i]);

              this.possibleNames.remove(index);

              names = new String[this.possibleNames.size()];

              names = this.possibleNames.toArray(names);

          }

      }

  }

  public boolean isValidName(String str){

      if(str.length()==0) return false;

      for(int i=0;i<str.length();i++){

          if(str.charAt(i)<'a'||str.charAt(i)>'z' && (str.charAt(i)<'A' || str.charAt(i)>'Z'))

              return false;

      }

      return true;

  }

  public static void main(String[] args) {

      UserName person1 = new UserName("john","smith");

      System.out.println(person1.possibleNames);

      String[] used = {"harta","hartm","harty"};

      UserName person2 = new UserName("mary","hart");

      System.out.println("possibleNames before removing: "+person2.possibleNames);

      person2.setAvailableUserNames(used);

      System.out.println("possibleNames after removing: "+person2.possibleNames);

  }

}

cheers i hope this helped !!

Implement the Dining Philosophers problem (described on pages 167-170 in the textbook (chapter 2.5.1)). Create a Graphical User Interface - showing which philosopher is eating, and which is waiting/thinking at any given time. Show the forks. Use Java programming language for this project.

Answers

Answer: Provided in the explanation section

Explanation:

class philosopher extends Thread

{

public void run()

{

diningps.count++;

philosopher(diningps.count);

}

public void philosopher(int i)

{

take_forks(i);

System.out.println(i+"philosopher Eating");

put_forks(i);

}

public void take_forks(int i)

{

while(diningps.mutex<=0)

{

System.out.println(i+"philosopher has to be wait while other philosopher in testing");

}

diningps.state[i]="HUNGRY";

test(i);

diningps.mutex=1;

while(diningps.S[i]<=0)

{

System.out.println(i+"philosopher has to be wait while his left or right side philosopher eating.");

}

}

public void put_forks(int i)

{

while(diningps.mutex<=0)

{

System.out.println(i+"philosopher has to be wait while other philosopher in testing");

}

diningps.state[i]="THINK";

test((i+4)%5);

test((i+1)%5);

diningps.mutex=1;

}

public void test(int i)

{

if(diningps.state[i]=="HUNGRY" && diningps.state[(i+4)%5]!="EAT" && diningps.state[(i+1)%5]!="EAT")

{

diningps.state[i]="EAT";

diningps.S[i]=1;

}

}

}

class diningps

{

static int mutex=1;

static int S[]={0,0,0,0,0};

static String state[]={"THINK","THINK","THINK","THINK","THINK"};

static int count=-1;

public static void main(String ar[])

{

philosopher ob=new philosopher();

philosopher ob1=new philosopher();

philosopher ob2=new philosopher();

philosopher ob3=new philosopher();

philosopher ob4=new philosopher();

ob.start();

ob1.start();

ob2.start();

ob3.start();

ob4.start();

}

}

cheers i hope this helped !!

Rewrite this method so that it avoids the use of a return statement:
void divisionQuestion()
{
int x, y;
x = (int)random(-10, 11);
y = (int)random(-10, 11);
if (y == 0)
{
println("Sorry we chose 0 for the denominator");
return;
}
else
println(x + " divided by " + y + " is " + x / y);
}

Answers

Sorry we chose 0 for the denominator

Create a function (prob3_6) that will do the following: Input a positive scalar integer x. If x is odd, multiply it by 3 and add 1. If the given x is even, divide it by 2. Repeat this rule on the new value until you get 1, if ever. Your program will output how many operations it had to perform to get to 1 and the largest number along the way.

Answers

Answer:

Following are the program in python language

def prob3_6(k): #function definition

  c = 0 #variable declaration

  while k != 1: #iterating the while loop

      print(k) #print k

      if k % 2 == 0:#check if condition  

          k= k // 2 #divisible by 2

      else: #else condition

          k = k * 3 + 1  

      c = c + 1

  print(k) #print k

  print c #print count

prob3_6(3)#function call

Output:

3

10

5

16

8

4

2

1

7

Explanation:

Following are the description of program

Create a function "prob3_6" in this function we passing an integer parameter of type "int" named "k".Inside that function we declared a variable "c" of type "int" that is used for counting purpose .After that we iterated the while for print the value of when it is not equal to 1 .We check if condition when k gives 0 on modulus then k is divisible by 2 otherwise else block will be executed in the else part we multiply by 3 to k and add 1 to the k variable .Finally print "k" and "c"

Mileage Calculator You are tasked with creating a mileage caclulator to calculate the amount of money that should be paid to employees. The mileage is computed as follows An amount of .25 for each mile up to 100 miles An amount of .15 for every mile above 100. So 115 miles would be (.25 * 100) (.15 * 15) This can all be coded using a mathematical solution but I want you to use an if / else statement. Here is how you are to implement it: If the total miles input is less than or equal to 100 then simply calculate the miles * .25 and output the amount otherwise compute the total amount for all miles mathematically. Input: Total number of miles Process: dollar amount owed for miles driven Output: Amount of money due

Answers

Answer:

mileage = float(input("Enter mileage: ")) if (mileage > 100):    amount = (mileage - 100) * 0.15 + 100 * 0.25 else:    amount = mileage * 0.25   print("Total amount: $" + str(amount))

Explanation:

The solution code is written in Python 3.

Firstly, prompt user to input a mileage (Line 1).

Next, create an if statement to check if a mileage greater than 100 (Line 3). If so, apply the formula to calculate amount with mileage above 100 (Line 4) otherwise,  calculate the amount just by multiplying the mileage by 0.25.

At last, print the total amount (Line 8).

Which is more, 6 yards or 15 feet?​

Answers

Answer:

6 yards

Explanation:

if to convert 15 feet into yards it would 15/3 = 5

6 Yards because each yard is equivalent to 3 feet. 6 yards would be 18 feet which is more than 15 feet.

Suppose an 80286 microprocessor is in protected mode. How it is switched back
to real address mode operations.

Answers

Answer:

hardware-initiated reset

Explanation:

In order to properly switch it back to real address mode operations you need to perform a hardware-initiated reset. This is because once in protected mode the 80286 will remain there until the hardware itself is reset. Therefore manually reseting the hardware will allow the user to switch back the microprocessor into a real address mode operations.

Riding a motorcycle on the street is not for everyone because: A. Highway signs are more difficult for motorcyclists to read B. Some people have difficulty managing risk C. All motorcycles are not the same D. Everyone can ride a bicycle

Answers

Answer:

Option B:

Some people have a difficulty in managing risks

Explanation:

Riding a motorcycle is a lot riskier than driving a car. This is because motorcyclists are exposed, and any accident that occurs will most likely lead to bodily harm to the rider.

Some individuals, have problems managing such risks, and cannot comfortably control the motorbike on the highway because of the number of cars speeding by.

Such individuals are not expected to be riding as this lack of confidence when riding on the highways can lead to accidents.

): A cable has a bandwidth of 3000 Hz assigned for data communication. The SNR is 3162. How many signal levels do we need?

Answers

Answer:

[tex]L=2^{25830}[/tex] is the correct answer .

Explanation:

bandwidth = 3000 Hz

SNR =3162

We know that

[tex]bitrate = bandwidth * log2(1 + SNR)[/tex]

Putting the value of bandwidth and SNR in the given equation .

[tex]bitrate = 3000 * log_{2} ^\ (1 + 3162) \\\\birate = 3000 * log_{2} ^\ {3163} \\\\birate =3000 * 11.\ 6\\\\bitrate=\ 34860 bps[/tex]

Now using the formula

[tex]BitRate = 2 * Bandwidth * log_{2} (L)[/tex]

Putting the value of bitRate and bandwidth we get

[tex]34860=2\ * 3000\ * \ log_{2} (L)\\34860=6000 * \ log_{2} (L)[/tex]

[tex]31860-6000=log_2L\\25830=log_2L\\L=2^{25830}[/tex]

How might the use of computers and knowledge of technology systems affect your personal and professional success?

Answers

People with little to no knowledge on how to use technology or a computer now a days will affect your role in society work majorly. Learning how to use photoshop or use a computer like powerpoint comes in handy when your going to a presentation, you don’t see people use boards anymore.

Write MATLAB script programs to perform the following conversions, taking a value in SI units as the input argument and returning the value to US Customary Units.

a. Length: Centimeters to inches.
b. Temperature: °C to °F
c. Force: Newton to Pound-forced.
d. Speed: Meters per second to miles per hour

Answers

The answer most likely C

Write a program to simulate a payroll application. To that affect you will also create an Employee class, according to the specifications below. Since an Employee list might be large, and individual Employee objects may contain significant information themselves, we will store the Employee list as a linked list. You will also be asked to implement a basic linked list from scratch.

Attributes:

• Employee ID: you can use a string – the ID will contain digits and/or hyphens. The ID cannot be changed once an employee object is created.
• Number of hours worked in a week: a floating-point number.
• Hourly pay rate: a floating-point number that represents how much the employee is paid for one hour of work.
• Gross wages: a floating-point number that stores the number of hours times the hourly rate.

Methods:

• A constructor (__init__)
• Setter methods as needed.
• Getter methods as needed.
• This class should overload the __str__ or __repr__ methods so that Employee objects can be displayed using the print() function.

Answers

Eu Ñ sei amigo tenho medo de errar a pergunta

In implementing Secunity Lfe Cycle:_______
a) all one needs to do is patch up all software packages arnd operating systems
b) one needs to folow through all phases, assessment, design, deploy and manage security
c) one needs to fo low through all sx phases of SDLC
d) one needs to do asset assets of the company and buy wha: is not there

Answers

Answer:

c

Explanation:

because its inportant



Separating calculations into methods simplifies modifying and expanding programs.
The following program calculates the tax rate and tax to pay, using methods. One method returns a tax rate based on an annual salary.
Run the program below with annual salaries of 40000, 60000, and 0.
Change the program to use a method to input the annual salary.
Run the program again with the same annual salaries as above. Are results the same?
This is the code including what I am working on added. I will not run. I need to remove some areas to designate the scanner as the source of input but I am unsure of which area.
import java.util.Scanner;
public class IncomeTax {
// Method to get a value from one table based on a range in the other table
public static double getCorrespondingTableValue(int search, int [] baseTable, double [] valueTable) {
int baseTableLength = baseTable.length;
double value = 0.0;
int i = 0;
boolean keepLooking = true;
i = 0;
while ((i < baseTableLength) && keepLooking) {
if (search <= baseTable[i]) {
value = valueTable[i];
keepLooking = false;
}
else {
++i;
}
}
return value;
}
public static void readInput(int salaryOne, int salaryTwo, int salaryThree);
annualSalary = 0;
Scanner scnr = new Scanner(System.in);
scnr nextInt();
new annualSalary;
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
int annualSalary = 0;
double taxRate = 0.0;
int taxToPay = 0;
int i = 0;
int [] salaryBase = { 20000, 50000, 100000, 999999999 };
double [] taxBase = { .10, .20, .30, .40 };
// FIXME: Change the input to come from a method
System.out.println("\nEnter annual salary (0 to exit): ");
annualSalary = scnr.nextInt();
while (annualSalary > 0) {
taxRate = getCorrespondingTableValue(annualSalary, salaryBase, taxBase);
taxToPay= (int)(annualSalary * taxRate); // Truncate tax to an integer amount
System.out.println("Annual salary: " + annualSalary +
"\tTax rate: " + taxRate +
"\tTax to pay: " + taxToPay);
// Get the next annual salary
// FIXME: Change the input to come from a method
System.out.println("\nEnter annual salary (0 to exit): ");
annualSalary = scnr.nextInt();
}
return;
}
}

Answers

Answer: Provided in the explanation section

Explanation:

Programs:

IncomeTax.java

import java.util.Scanner;

public class IncomeTax {

  // Method to get a value from one table based on a range in the other table

  public static double getCorrespondingTableValue(int search, int [] baseTable, double [] valueTable) {

  int baseTableLength = baseTable.length;

  double value = 0.0;

  int i = 0;

  boolean keepLooking = true;

  i = 0;

  while ((i < baseTableLength) && keepLooking) {

  if (search <= baseTable[i]) {

  value = valueTable[i];

  keepLooking = false;

  }

  else {

  ++i;

  }

  }

  return value;

  }

  public static int readInput(Scanner scan){

      System.out.println("\nEnter annual salary (0 to exit): ");

      int annualSalary = scan.nextInt();

      return annualSalary;

  }

  public static void main (String [] args) {

  Scanner scnr = new Scanner(System.in);

  int annualSalary = 0;

  double taxRate = 0.0;

  int taxToPay = 0;

  int [] salaryBase = { 20000, 50000, 100000, 999999999 };

  double [] taxBase = { .10, .20, .30, .40 };

 

  // FIXME: Change the input to come from a method

  annualSalary = readInput(scnr);

  while (annualSalary > 0) {

  taxRate = getCorrespondingTableValue(annualSalary, salaryBase, taxBase);

  taxToPay= (int)(annualSalary * taxRate); // Truncate tax to an integer amount

  System.out.println("Annual salary: " + annualSalary +

  "\tTax rate: " + taxRate +

  "\tTax to pay: " + taxToPay);

  // Get the next annual salary

  // FIXME: Change the input to come from a method

  annualSalary = readInput(scnr);

  }

  return;

  }

  }

     

Output:

Enter annual salary (0 to exit):

10000

Annual salary: 10000   Tax rate: 0.1   Tax to pay: 1000

Enter annual salary (0 to exit):

50000

Annual salary: 50000   Tax rate: 0.2   Tax to pay: 10000

Enter annual salary (0 to exit):

0

Other Questions
Select all the correct answers.What are three disadvantages of making and using plastic?a. it pollutes the land and waterb. it requires cutting down trees from raw materials c. it takes an incredibly long time to break downd. it freely conducts heat and electricity f. it isn't easy to recycle Expresin cultural predominante a finales del renacimiento GUYS, PLEASE HELP!!! THIS IS REALLY NEEDED! The area of a square is (16x2 8x + 1) square units. Determine the length of each side of the square by factoring the area expression completely. Show your work. One number is 1/2 another number. The sum of the two numbers is 33. Find the two numbers. What is the vertex of the graph of f(x) = |x + 3| + 7? (3, 7) (7, 3) (3, 7) (7, 3) The amount of cookies at lunch can be represented by an exponential decay equation. If there are 100 cookies at the beginning of lunch and after 15 minutes, there are only 15 left, what is the rate at which students ate the cookies? Where did Napoleon Bonaparte die? Suppose that G(X) = F(x) - 3. Which statement best compares the graph ofG(x) with the graph of F(x)?A. The graph of G(x) is the graph of F(x) shifted 3 units to the right.B. The graph of G(X) is the graph of F(x) shifted 3 units down.C. The graph of G(x) is the graph of F(x) shifted 3 units to the left.D. The graph of G(X) is the graph of F(x) shifted 3 units up. What volume of 0.500 M HNO(aq) must completely react to neutralize 100.0 milliliters of 0.100 M KOH(aq)? Imagine that you are an adviser to President Truman. You must persuade him to use or not to use the atomic bomb against Japan. Which position do you take? How do you make your case? How many 1/2 are there in 6/4 Blood rich in carbon dioxide was called venous blood, as it was believed that only the veins carried this type of blood. Based on what you know about the circulatory system, explain why this statement is incorrect. 15 divided by 6 2/3= A certain bridge arch is in the shape of half an ellipse 106 feet wide and 33.9 feet high. At what horizontal distance from the center of the arch is the height equal to 12.3 feet Read this claimt is morally wrong not to yoteWhich type of claim is this?A Caim of factB. Claim of definitionC. Claim of valueD. Claim of policy Factor Out -1 1. 7-x2. y-2d3. -3h+2f4. -4g-5t dose sound travel faster in a warm room or a cold room? explain your answer What military branch suffered the most casualties at Pearl Harbor?O Marine CorpsArmyO Navy The length of a rectangular park is four timesfour times its width. The park is surrounded by a 33-foot-wide path. Let x denote the width of the park. Write a quadratic function to represent the total area of the park and the path.The quadratic function that represents the total area of the park and the path is _____.(Simplify your answer. Do not factor.) Examine the following map of the Aztec empire.Which of these were the characteristics of the Aztec empire?