Write a java program that calculates a customers' electric bill. The program should ask the user to enter the number of kilowatt hours (kWh) used during a month billing period. Knowing that the Electricity costs 7.56 cents per kWh; in addition to that 8% tax should be added to this bill price. The program should calculate the original bill price in S, the tax amount and the final bill price.
Q: What are the applications of Subneting?
A: According to the question the subnet allows to the community to carry out speedy and makes the…
Q: Where may computer science and other study disciplines intersect? What are their steps?
A: Artificial intelligence is one area where there are chances to draw comparisons between computer…
Q: Question 11 (adres) Listen What is the maximum total number of swaps that will occur when sorting an…
A: Introduction The maximum total number of swaps that will occur when sorting an array with n elements…
Q: Microcomputers changed software distribution. Who caused this change?
A: Given: The personal computer revolution is another name for the microcomputer revolution. What…
Q: What do you do if two computers on your local network have the same MAC address? That's a brilliant…
A: In this question, it is asked about the consequences of having the same MAC address on more than one…
Q: Explain Network services
A: Humans are able to work more productively and explore the unimaginable thanks to computer systems…
Q: various symbols used for drawing flowchart. How is flowchart helpful in writing program? (b) Discuss
A: The answer for the above question is given in the following steps for your reference.
Q: stion. a program print screen of computer the counter from 1.7 to 14.7 increment by 0.7 using for…
A: Answer:
Q: 1. Perform the following subtraction using 10's complement on 532 - 794.
A: Ans : A 10's complement can also be used to subtract decimal numbers. In order to calculate the 10's…
Q: Give examples of where information systems are being used and why they are important in various…
A: Explanation: For a corporation to be successful, handling organisational and financial data requires…
Q: MCQ26: Which of the following is a software process model? a. b. Glassboxing Timeboxing
A: A software process model is a specified definition of a software process which is presented from a…
Q: What is the most important difference between generic software product development and custom…
A: Generic software product is a software which is designed for general public use. It is also called…
Q: Consider an unsorted array of n elements. Recall that the Heapsort Algorithm consists of two parts:…
A:
Q: McQ 19. At present, the LAN used basically adopts star topology. a. Right b. Wrong 20. TCP/IP…
A:
Q: Make this C language code into modular code (functions) #include #include main() { char choice; int…
A: CODE:
Q: 3- Evaluate the following expressions if y=6: a) Z= 5 *y+ 3*y*( 10*y + 1/2); b) Z= 7* y % 2 + 2*…
A: a) z = 5*6 + 3*6(10*y + 1/2) (first resolve the brackets and than go with following operation based…
Q: Question: Write a program in C++ language to print on the screen of computer the counter from 1.7 to…
A: CODE:
Q: Explain peer-peer networking. Write its advantages and disadvantages.
A: An interconnection between two more computing devices that can exchange and share data and resources…
Q: One of the best security practices when using Linux is to disable direct root login via SSH. True…
A: Given : linux is family of open source operating system. There are commands designated to perform a…
Q: Teque You have probably heard about the deque (double-ended queue) data structure, which allows for…
A:
Q: Exercises: Write a VB6.0 program to find the sum of first 10 numbers (1, 2,3, to 10).
A: CODE:
Q: Write a program in Python that serves as a password checker. The string password that Python should…
A: ANSWER:
Q: 3.14 LAB: Comparing doubles Write a program that is given two doubles for comparison and a third…
A: C++ Many people believe that C++, an object-oriented programming (OOP) language, is the finest…
Q: Is today's technology being used to its full potential in the field of effective communication?
A: Effective communication: The process of communicating ideas, views, information, and facts in order…
Q: PROBLEM 6 An investment firm has $1 million to invest in stocks, bonds, certificates of deposit, and…
A: b) Solution of the model using LINDO is as follows
Q: If the system fails repeatedly during recovery, what is the maximum number of log records that can…
A: In the analysis phase, initially it updates begin_checkpoint log record which had been searched…
Q: Which of these is associated with a private network adapter? O a. Two network adapters. O b. Server…
A: The Private Network to Network interface is the link-state routing protocol used in asynchronous…
Q: There are two sorts of Internet services that may be accessed by using Internet apps. There are a…
A: The following is a list of some of the most popular internet services: Communication Services…
Q: What are some symptoms that a laptop's OS has been corrupted?
A: Hacking also known as cyber crimes is a problem typical for a personal computer's operating system,…
Q: What is the time complexity of the following program void fun(int n) { int i = while(i0) i = = n; j…
A: Answer : The complexity of the given algorithm is n^2.
Q: Solve the recurrence relations. a. Compute --2(2k + 1) k b. Compute 1+1
A:
Q: PROBLEM 4 The Pee Tool Shop has four heavy presses it uses to stamp out prefabricated metal covers…
A: The answer is
Q: Is access to the internet helpful for those who have impairments, whether those impairments be…
A: Here is the solution:
Q: For the following CLSM subnetting problems, submit: a. bits for subnet b. bits for host c. subnet…
A: Dear Student, In 225.10.20.0 the 4th subset is 0 which in binary means 00000000 all the 8 bits are 0…
Q: Write a VB6.0 program to find the sum of first 10 numbers (1, 2,3, to 10).
A: Algorithm: Step 1: Write the main() Step 2: Define the required variable sum Step 3: Using for loop…
Q: Examine some of the reasons why individuals don't take the time to secure their systems. You should…
A: Here is the solution:
Q: Provide an overview of the many diverse data-hiding strategies that exist, each of which presents…
A: Given: An organisation that upholds the law is known as a law enforcement agency (LEA). A municipal…
Q: LAB ACTIVITY 3.22.1: LAB: The UCSB surroundings tour guide! 1 def get_destination (miles): 2 3* 4 5…
A: Writing a code in python using function by specifying all the conditions of the question in…
Q: Is this list inclusive of systems that have been categorised in several ways?
A: A system is a series of rules, an arrangement of items, or a group of interrelated things that…
Q: Q3. Write a Java program to implement the concept of run time polymorphism through method overriding…
A: Code Music.java// class representing musicpublic class Music { // member to hold the title…
Q: 23 Ⓡ Your company has been selected to construct Aquarine Garden Condominium, a new high-end…
A: The question has been answered in step2
Q: Write a program that is given two doubles for comparison and a third double that is a differen three…
A: C++ program:#include <iostream>#include <math.h>using namespace std; int main(){…
Q: Exercises: Write a VB6.0 program to find the sum of first 10 numbers (1,2,3, to 10).
A: To start with the code, there must be a variable initialized with 0 and that will keep on adding all…
Q: Explain peer-peer networking. Write its advantages and disadvantages.
A: Networking is the exchange of information and ideas among people with a common profession or special…
Q: The Darby Company manufactures and distributes meters used to measure electric power consumption.…
A: As this is required in excel, i ll be pasting the screenshot from excel sheet and explaining the…
Q: Talk about the importance of database backup and recovery procedures and what they do. Then, go over…
A: The significance of database data backup and methods have been suggested, as well as their…
Q: What do you mean by software? Write the difference between application software and system software.…
A: Software is programs and other routines for the computer system to make it run. The examples of the…
Q: Give example of String Constant?
A: It is asking for examples of string constant in programming.
Q: Assume for a moment that you are a developer of software and that you have created a system that…
A: Web administration on which we centering is should be free at it's beginning stage and paid for…
Q: c++ problem Write a main function that does the following. 1. Store the words Computer Science into…
A: The c++ code for storing Computer science and to remove the string Computer is: #include…
Step by step
Solved in 3 steps with 1 images
- In Java, a real estate office handles 50 apartment units. When rent is $600 per month, all the units are occupied. However, for each $40 increase in rent, one unit becomes vacant. Each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: A. The number of apartment units B. The rent to occupy all the units C. The increase in rent that results in a vacant unit. D. Amount to maintain a rented unit. The program then outputs the number of unidts to be rented to maximize the profitWrite a java program to calculate the Gross, Tax, Net for 10 employees. Assuming: The input is First Name, Middle Initial, Last Name, Id number, Hours worked, Rate per Hour. constant state tax percentage 7%, Fed tax percentage 15% hours worked must be between 0 and 60 hours Rate per hour must be between $15.00 and $35.00 Gross calculations: If hours worked are 0 to 40 (Gross= Hours worked * Rate per Hour) If hours greater than 40 (Gross= 40 * Rate per Hour + ( Hours worked - 40 )* Rate per Hour hours * 1.5)) State Tax = Gross * State Tax percentage Fed Tax = Gross * Fed Tax percentage Net = Gross - (State Tax + Fed Tax) Output: Display: MUST BE FORMATTED and as a table Last Name First Name MI Id# Rate Per Hour Hours Worked State Tax Fed tax Gross Net Smith mike x 123 $10.00 40 $28.00 $60.00 $400,00 $312.00 : Directions: 1) submit…Write a program in java that completes the following prompt: You are a fundraising distributor who needs to to pre-sell a limited number of doughnut coupon books. Each buyer can buy as many as 4 coupon books. No more than 100 coupon books can be sold. Implement a program called Fundraiser that prompts the user for the desired number of coupon books and then displays the number of remaining coupon books. Repeat until all coupon books have been sold, and then display the total number of buyers.
- in Java Write a program that establishes two savings accounts with saver1 having account number10002 with an initial balance of $2,000, and saver2 having account 10003 with an initialbalance of $3,000. Set a common rate of interest at 5% per year. At the end of each month,update the balance by adding one month’s interest to the balance, so that the balancecompounds monthly. Print an output that displays the month number and the account numberand the balance for each of the two accounts. Use month 0 to display the initial balances, month1 to display the balances after the first month’s interest, and so on. At the end of the year,display the total balance for both accounts combined, like this:Output:Monthly balances for one year with 0.05 annual interest:Month Account # Balance Account # Balance----- --------- ------- --------- ------- 0 10002 2000.00 10003 3000.00 1 10002 2008.33 10003 3012.50 2 10002 2016.70 10003 3025.05 3 10002 2025.10 10003 3037.66 4 10002 2033.54 10003 3050.31 5…Write a program in java which display the burger Sizes and its prices in tabular form as display below. Program display a message “Sir/Madam Welcome and Which type burger do you want to buy! Please press your choice” . If user want to buy only one burger the bill should be display according to given price, but when user want to buy more burgers , your java program will provide facility to user to buy more burgers and add prices of all burgers and display total price. If user don’t want to buy more burgers your program will display a message.(Thank you sir/Madam) .(Hint use switch and do while loop). Berger Price Press S for small 100 Press M for medium 200 Press L for large 500Create a Java program that can be used to calculate the average weekly and monthly grocery bill for a family of four: Prompt the user for the coupon amount as a decimal (example, .10). Ensure the value is set to 10% if the value exceeds 100% or is less than or equal to zero. Prompt the user for 2-4 weeks of grocery bills. Calculate the monthly and weekly average for groceries. Display monthly total and weekly average without the coupon. Display monthly total and weekly average with the coupon.
- Write a java program that asks the user to enter the coordinates of 4 points that draw two different lines. The program has to display whether these two lines are parallel, perpendicular, or neither according to the following formula: Slope y2-y1 x2-x1 If the slopes of both lines are equal, the two lines are parallel If the product of both slopes is equal to -1, the 2 lines are perpendicular. Otherwise, the two lines are neither parallel nor perpendicular.In Java program, this is the output of this program Enter MICHAEL JORDAN's grade in Physics101: 99Enter KOBE BRYANT's grade in Physics101: 90Enter LEBRON JAMES's grade in Physics101: 85 Enter MICHAEL JORDAN's grade in Algebra101: 90Enter KOBE BRYANT's grade in Algebra101: 85Enter LEBRON JAMES's grade in Algebra101: 99 Enter MICHAEL JORDAN's grade in Programming 2: 75Enter KOBE BRYANT's grade in Programming 2: 74Enter LEBRON JAMES's grade in Programming 2: 71 Which student would you like to check? [1] Michael Jordan [2] Kobe Bryant [3] Lebron James [0] Exit Student Name: Lebron JamesGrade Physics101: Algebra101: Programming 2:General Weighted Average: Passed:Write a java program that asks for the name, hours worked, and hourly rate of an employee. The program will then compute for the basic salary as hours worked times hourly rate and the bonuses if: Number of hours greater than 45 gets a Bonus of 100Number of hours > 40 and <= 45 gets a Bonus of 50Number of hours > 35 and <= 40 gets a bonus of 25 Display the basic salary, bonus, and total salary (basic + bonus) for the day.
- Create a Java class that accepts a number The input number must be between 10 and 99. You must validate this. If the input number is outside of this range, output a message "Invalid Input" and exit the program. If its a valid number: Check if the square of the sum of its digits is equal to the input number If the square of the sum of its digits is not equal to the input number, find the reverse of the number and display it. For example: Input: 81 Output: 81 because 81 = (8 + 1)2 Input: 23 Output: 32 because 23 is not equal to (2 + 3)2A patient suffering from asthma needs to keep a diary of their "peak flow" breathing readings. This is just a number between 0 and 800 measuring how well they can blow air from their lungs. Their peak flow reading is the greatest of three readings taken at one time. Write a Java program to help the patient record their peak flow to show their doctor. The program should first ask the patient for the number their doctor has given them as being a dangerous reading. Any peak flow reading recorded that is less than the danger level should lead to a message that they need to go to hospital immediately. Once entered, this value should not be changed. After storing this number, the program should go into a loop that only stops when they type 0 instead of a day. It should repeatedly ask them for the day of the month which is a number from 1 to 31 (they may skip days) and then the three readings taken that day. All the peak flow readings (ie the largest of each set of three readings) should be…You are asked to write a java program to prepare for the Lebanese parliament elections. Your program asks the voter to enter his name, age, record number and gender. Based on the below table, your program should inform the voter about his voting location. Remember that in Lebanon the legal voting age should be greater than 20. Gender Voting Location Record Number Between 1 and 100 Male Female Male Between 1 and 100 Between 101 and 200 Between 101 and 200 Between 201 and 300 Zahret El Ihsan | Room number 1 Zahret El Ihsan | Room number 2 Ali Ben Abi Taleb Room number 7 Ali Ben Abi Taleb | Room number 8 Al Akhtal El Saghir | Room number 1 Female Both Using java Your program should execute exactly as the below sample run. Sample Run 1: Enter Your name, Gender (M or F), Age and Record Number Elie M 21 105 Dear Elie You vote : Ali Ben Abi Taleb | Room number 7 Sample Run 2: Enter Your name, Gender (M or F), Age and Record Number Ali M 20 200 Sorry Ali, You are not allowed to vote! Sample…