n that will determine the gross pay for each of three employees using an array, a loop, the if-else statement, and the JOptionPane dialog box for input. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee: employee name, number of hours each employee worked, and the hourly rate for each employee. Your program should determine the gross pay for each employee and store it in
Q: Assume we have two relations R(a,b) and S(b,c). All three attributes (a, b, and c) are integer attri...
A: Lets see the solution in the next steps
Q: Construct a truth table for the following: xyz + x(yz)’ + x’(y + z) + (xyz)’
A: Truth table shows the output true or false for a particular statement
Q: flipObject(object) Given an object, you will return a new object where the values are now the keys a...
A: Ans:) In this javascript program, we have to flip the objects with key-value pairs and if the value ...
Q: ?What is the output of this program ;int a = 5, c ;float b=6.5 ;C = (a > b) ? a : b ;cout << c
A: The Answer is
Q: Explain the symbols that are used in data flow diagrams, as well as the principles that govern their...
A: Below is the answer :
Q: What is the relationship between cohesion and coupling in software design, and how do they affect on...
A: Coupling Coupling is defined as the "degree of dependency" between various software modules in softw...
Q: You need to calculate your average grade for Problem solving course. There are three marks midterm (...
A: Here are three marks midterm (30%), quiz (20%) and final (50%)
Q: What is the output of the below C++ program if the input ( e, 8, g. C) char c[] = "University of Kuf...
A: The answer is
Q: The program below terminate at
A: Required: The program below terminate at
Q: What does the phrase "critical consideration" mean precisely? Consider the following statement about...
A: A collection of executable computer code, accompanying libraries, and documentation is referred to a...
Q: 2 Logical Expressions Use program Grade for Exercises 1-3. // Program Grade prints appropriate messa...
A: Required: Exercise 1Fill in the logical expression beside the if so that "Congratulations!" is writt...
Q: The first communication network developed was the _________ network. a. data b. telecommuni...
A: Data is basically the information which we transmit through network. Telecommunication is the first ...
Q: escribe a cloud storage application and its benefits and drawbacks over a client storage service. (M...
A: Required: Describe a cloud storage application and its benefits and drawbacks over a client storage ...
Q: write A prdoduct backlog for an eshopping website
A: An product backlog is a rundown of the new elements, changes to existing elements, bug fixes, framew...
Q: 1. Show that if you add one student name into the above array list how it looks like? 2. Show the in...
A: Note: The program has been provided in Java programming language as no other language is mentioned ...
Q: Order the following operators in the order of precedence. 1 is the highest priority and 7 is the low...
A: The order that an operator is executed is known as operator precedence. Operators that has higher pr...
Q: Define Web caching.
A: To be determine: Define Web caching.
Q: 2. Why Facebook needs to focus on creating a violence law and new privacy rules? 3. Why Facebook ne...
A: 2. Why Facebook needs to focus on creating a violence law and new privacy rules? Answer: Facebook ha...
Q: Describe creation of botnet and its usage in DDoS attack.
A: To be determine: Describe creation of botnet and its usage in DDoS attack.
Q: Question 6. In Rust Programming language: Write a program to find the sum of all 2-digit natural num...
A: Run a loop from num=10 to num=99 and add the value of num to the required sum inside the loop. Print...
Q: Q6. By using the program below: Kindly Set the transparency/opacity of the element to "0.4". ...
A: Given : HTML code along with CSS Task : Add code such that opacity of the <h1> element is ...
Q: Explain the operation of simplex stop and wait protocol.
A: The answer is given below:-
Q: What can auditing and accountability do to enhance an IT infrastructure's overall architecture? If p...
A: Lets see the solution in the next steps
Q: Write a program in Rust programming language to find the sum of Natural numbers from 20 to 89 and pr...
A: Write a program in Rust programming language to find the sum of Natural numbers from 20 to 89 and pr...
Q: Explain the database backup and recovery process used by a database administrator in a client/server...
A: Database backup is creating a copy of the database information and data and storing it on a backup s...
Q: What factors should be taken into account while developing a system interface for an information ons...
A: Lets see the solution.
Q: Here complete the query to displays the unique values of the column: SELECT ________ dept_name ...
A: SQL DISTINCT:- To eliminate duplicate columns from the result set, use the SQL DISTINCT clause. The ...
Q: The speed associated with the CPU is typcally measured in Hz (or clock cycles per second) to determi...
A: Filled the given statement
Q: Help with codes and using C++ I will appreciate it and thumbs up // Templated binary search tree t...
A: given: // Templated binary search tree template<typename Type> class BST { friend class DSA_...
Q: How does Java support multiple inheritance ,Give a simple example
A: It is possible through interfaces
Q: .look at code below then fill the blanks ;int a = 5, b = 2, C = 6, d = 4 if (!b) %3D "cout d) :"cou...
A: Here in this question we have given a c++ code..and we have asked the output of the program.
Q: What is containment, and why is it part of the planning process
A: What is containment, and why is it part of the planning process
Q: An organization has a class C network 196.10.10 and wants to form subnets for five departments, whic...
A: The answer is...
Q: On a single slide, summarize information security and related upgrade requirements.
A: Given: On a single slide, summarize information security and related upgrade requirements.
Q: Ques.2: Draw a partial finite state diagram (with at least 10 states and the graph should have a pat...
A:
Q: Register Content Data Memory Content wo Ox1006 Ох1000 OXFEB1 W1 OXAB9A Ox1002 Ox0193 W2 Ox0015 Ox100...
A: Carry flag (Cy): after performing the addition of any two 8-bit numbers, the carry generated can be ...
Q: Answer the following questions 1.Explain by using a practical scenario what the difference between...
A: Given: Answer the following questions 1.Explain by using a practical scenario what the difference b...
Q: John came up with an algorithm for some problem that runs in time O(n²log (n)), and Bill came up wit...
A: - The question states that john has an algorithm with run time Θ(n2log(n)) and Bill has a run time o...
Q: Assume your database system fails. Explain deferred-write and write-through methods used in database...
A: Given: Assume your database system fails. Explain deferred-write and write-through methods used in d...
Q: A rationale supported by an example Why is software engineering required in the first place? It can...
A: Introduction: Software engineering is the systematic use of software development engineering techniq...
Q: If you add six to twice a number the result is 16 . What is the number
A: lets number be x now adding 6 to twice of x then result is 16 twice of x means: 2*x 6 + 2*x =16 //mo...
Q: Examine how Structured English may explain processes outside of systems analysis.
A: This is a static testing analysis question. During the early stages of development, it is done manua...
Q: nalysis and design in the conte
A: Object-oriented analysis and design (OOAD) is a technological approach that uses the Object Oriented...
Q: What is another term for a character encoding scheme? a. Character set b. Character map c...
A: - The question wants to know that what is another term for a character encoding scheme. - We see ...
Q: Write a decorator to memoize functions with an arbitrary set of arguments. Memoization is only possi...
A:
Q: Explain Designing of CDN.
A: Given: Explain Designing of CDN.
Q: Discuss the guidelines for designing a turing machine.
A: The Answer is in below steps
Q: address book entry and name it AddressBook. a.The table below describes the information that an addr...
A: as per Bartleby guidelines we are supposed to answer?️ only one question. Kindly repost other questi...
Q: 1. Using any of the ADTS from the class implement a basic calculator to evaluate a simple expression...
A: Solution: Java code: Main.java import java.util.Stack;import java.util.Scanner; public class M...
Develop a Java application that will determine the gross pay for each of three employees using an array, a loop, the if-else statement, and the JOptionPane dialog box for input. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee: employee name, number of hours each employee worked, and the hourly rate for each employee. Your program should determine the gross pay for each employee and store it into an array. It also display each employee’s gross pay with his/her name as output. Use input dialogs to input the data.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Create an application for generating lottery tickets of random numbers. Each lottery ticket has a fixed count of numbers to be played with each number selected being within a given range. For example, when the range of numbers is 1 through 100, and 5 numbers are to be played, the lottery ticket will be composed of 5 unique values between 1 and 100. The values are selected at random. The main function is responsible for obtaining the upper range of the numbers and the count of numbers to be played from the end user. The count of numbers must be less than the upper range. The main function will call the generateLotto function to generate the lottery ticket and then call the displayTicket function to display the resulting lottery ticket. Any number of lottery tickets may be generated. The generateLotto function should accept two parameters. The first should be the upper range for the numbers while the second parameter represents a count of the numbers to be played. For example,…Create an application for generating lottery tickets of random numbers. Each lottery ticket has a fixed count of numbers to be played with each number selected being within a given range. For example, when the range of numbers is 1 through 100, and 5 numbers are to be played, the lottery ticket will be composed of 5 unique values between 1 and 100. The values are selected at random. The main function is responsible for obtaining the upper range of the numbers and the count of numbers to be played from the end user. The count of numbers must be less than the upper range. The main function will call the generateLotto function to generate the lottery ticket and then call the displayTicket function to display the resulting lottery ticket. Any number of lottery tickets may be generated. The generateLotto function should accept two parameters. The first should be the upper range for the numbers while the second parameter represents a count of the numbers to be played. For example,…Create an application for generating lottery tickets of random numbers. Each lottery ticket has a fixed count of numbers to be played with each number selected being within a given range. For example, when the range of numbers is 1 through 100, and 5 numbers are to be played, the lottery ticket will be composed of 5 unique values between 1 and 100. The values are selected at random. The main function is responsible for obtaining the upper range of the numbers and the count of numbers to be played from the end user. The count of numbers must be less than the upper range. The main function will call the generateLotto function to generate the lottery ticket and then call the displayTicket function to display the resulting lottery ticket. Any number of lottery tickets may be generated. The generateLotto function should accept two parameters. The first should be the upper range for the numbers while the second parameter represents a count of the numbers to be played. For example,…
- Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…IN C PROGRAMMING LANGUAGE A resistor is a circuit device designed to have a specific resistance value between its ends. Resistance values are expressed in ohms (Ω) or kilo-ohms (kΩ). Resistors are frequently marked with colored bands that encode their resistance values, as shown in the Figure. The first two bands are digits, and the third is a power-of-ten multiplier. The Table below shows the meanings of each band color. For example, if the first band is green, the second is black, and the third is orange, the resistor has a value of 50 × 103 Ω or 50 k Ω. The information in the Table can be stored in a C program as an array of strings. char COLOR_CODES[10][7] = {"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "gray", "white"}; Notice that “red” is COLOR_CODES[2] and has a digit value of 2 and a multiplier value of 102. In general, COLOR_CODES[n] has digit value n and multiplier value 10n. Write a program that prompts for the colors…
- Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tellsthe ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not.. Test your application with the following ticket numbers: - 123454; is a valid ticket number - 147103; is a valid ticket number -…Using a Sentinel Value to Control a while Loop in Java Summary In this lab, you write a while loop that uses a sentinel value to control a loop in a Java program that has been provided. You also write the statements that make up the body of the loop. The source code file already contains the necessary variable declarations and output statements. Each theater patron enters a value from 0 to 4 indicating the number of stars the patron awards to the Guide’s featured movie of the week. The program executes continuously until the theater manager enters a negative number to quit. At the end of the program, you should display the average star rating for the movie. Instructions Ensure the file named MovieGuide.java is open. Write the while loop using a sentinel value to control the loop, and write the statements that make up the body of the loop to calculate the average star rating. Execute the program by clicking Run. Input the following: 0, 3, 4, 4, 1, 1, 2, -1 Check that the…Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…
- Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N).Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee.The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…JAVA Problem description:You are to write a program called Seasons that prompts the user for a month and day and displays the season in which that date occurs. For reference, we will use the following date cutoffs for the various seasons: Winter December 21 – March 19 Spring March 20th – June 20th Summer June 21st – September 20th Fall September 21st – December 20th Data Validation For this program, you'll write a specific method to perform data validation based on the month and day entered. More specifically: Month – the month entered must be a valid month of the year (January – December). Day – the day entered must be a valid day for that month: January, March, May, July, August, October, December have 1-31 days. April, June, September, November have 1-30 days. February has 1-28 days (do not worry about leap years) Required program decomposition String getMonth(Scanner console) This method is called from the main method and should prompt for the month as a string…See the sample outputs for more clarification. Project Specifications Input for this project: Values of the grid (row by row) Output for this project: Whether or not the grid is magic square Programmer's full name Project number Project due date Processing Requirements Use the following template to start your project: #include using namespace std; // Global constants // The number of rows in the array // The number of columns in the array // The value of the smallest number // The value of the largest number const int ROWS = 3; const int COLS = 3; const int MIN = 1; const int MAX = 9; // Function prototypes bool isMagicsquare(int arrayRow1[], int arrayRow2 [], int arrayRow3[], int size); bool checkRange (int arrayRow1[], int arrayRow2[], int arrayRow3[], int size, int min, int max); bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size); bool checkRowSum (int arrayrow1[], int arrayrow2[], int arrayrow3[], int size); bool checkColiSum(int arrayrow1[], int…