Chapter 2: Programming Project 2 Unlimited tries (Find the number of years) Write a program that prompts the user to enter the minutes (e.g., 1 billion) and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Sample Run Enter the number of minutes: 1000000000 1000000000 minutes is approximately 1902 years and 214 day:
Q: PROBLEM 9 The Darby Company manufactures and distributes meters used to measure electric power…
A: Managerial Report 1. Distribution plan and costs will be as follows Total cost = $ 620,770
Q: Illustrate the benefits that may be gained by using information systems in a variety of a company's…
A: Indeed, even the least difficult utilization of innovation can decisively work on your business'…
Q: Is access to the internet helpful for those who have impairments, whether those impairments be…
A: Here is the solution:
Q: How many systems are included here, and how many are not?
A: A system is described as a set of rules, an arrangement of items, or a group of interrelated…
Q: Write a program that will: • Select a random number between 1 and 100. • Test if the number is prime…
A: Written code in Python since no programming language was mentioned - from random import *…
Q: If your database system supported both a static and a dynamic tree index (say, ISAM and B+ trees),…
A: Introduction A data structure is a specific organization for coordinating, handling, recovering,…
Q: Investigate how the Von Neumann Architecture compares to that of the Little Man computer. What are…
A: Computer for the Little Man: The LMC, which stands for Little Man Computer, is shown here.
Q: Draw the recurrence tree for the following functions
A:
Q: Given 4 integers, output their product and their average, using integer arithmetic. Ex: If the input…
A: Java code for above problem is provided below:
Q: Develop a (7,4 hamming code) if the data bit given is 0010. Develop the data which will be send from…
A:
Q: Make this C language code into modular code (functions) #include #include main() { char choice; int…
A: #include <stdio.h>#include <math.h>#include <conio.h> int adds(int num1,int num2){…
Q: Which of the following languages is defined by this DFA a) Accept any string of 1s and 0s until…
A: Introduction: In this question, there is a DFA given and we are asked to give the correct output…
Q: Is the internet a good example of ICT in any particular way? It's easy to explain and demonstrate.
A: Information and communication technology (ICT) is another name for IT. This highlights the…
Q: In what ways have computers and the internet as we know them today been shaped by various…
A: Introduction: US research and development activities to set up and link computer networks…
Q: How are databases different from excel or word or other productivity applications?
A: ANSWER:
Q: Problem 2 In the INSERTIONSORT implementation we showed in class we compared the element we were…
A: Insertion Sort implementation: Iterative insertion sort consumes one input element per repetition…
Q: Describe the difference between symmetric and asymmetric multiprocessing. What are the advantages…
A: Multiprocessing: As a broad word, "multiprocessing" may refer to either the dynamic assignment of a…
Q: An ISP is granted the block 80.70.56.0/21. The ISP needs to allocate addresses for two organization…
A: The prefix length is 21 for the given ISP address of 80.70.56.0/21.
Q: Problem: A 1024 × 1024 array of 32-bit numbers is to be normalized as follows. For each column, the…
A:
Q: need help urgent
A: The program starts by asking the user to enter a number n. sqrt() function in "math.h" library is…
Q: c) ( >) If a CPU has 24 address lines and 24 bit data bus. Show the design of L3 (direct mapped…
A: please check the solution below
Q: How are databases different from excel or word or other productivity applications?
A: Introduction: It is a coordinated assortment of data set up for simplicity and speed of search and…
Q: If the system fails repeatedly during recovery, what is the maximum number of log records that can…
A:
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: What do you mean by the me computer? Delineate the
A: Memory Of A Computer Memory is a device or system that is used in computing to store information for…
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: Which of the following statements gives the best description of the relationship between regular…
A: In the given question Regular expression is the language which is used to describe the language and…
Q: What challenges may arise as a result of a relationship's vertical partitioning, as well as the…
A:
Q: (a) Rewrite the following if/else statement using conditional operator: if (score>=70&&score=56)…
A: Java is a object based programming language and it's software runs on multiple platform. Conditional…
Q: An investment firm has $1 million to invest in stocks, bonds, certificates of deposit, and real…
A: The answer for the above question is given in the following steps
Q: Can the internet be used to promote health in a manner that benefits the individual? When it comes…
A: Internet: The Internet, commonly known as "the Net," is a global system of computer networks. It is…
Q: instruction Source operand of MOV BL, [SI+ BP - 9H]. If you know that (ES) = 1A00H
A: The answer is
Q: PROBLEM 9 The Darby Company manufactures and distributes meters used to measure electric power…
A: The answer for the question is available in the below steps for your reference
Q: How much does cracking owe the microcomputer revolution?
A: Inspection: Around this time, some people began using the AT&T phone network for unauthorized…
Q: ID 1001 1002 1003 1004 1005 1006 Employee Employee Name Salary ename Eman Ali Moosa innan Hessa Alaa…
A: To Do: To find number of employees in each department which salaries total greater than or equal to…
Q: Problem 7 For the CRC error detection scheme, consider the 5-bit generator G = 10101, and suppose…
A:
Q: (b) Write the flowchart and C program to compute the decay constant K = 2.303 t log No N
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of main function.…
Q: How are databases different from excel or word or other productivity applications?
A: A database is a program that is used to store, manipulate and retrieve information from a certain…
Q: Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to…
A: Java Code is given below:
Q: Write a C++ program to multiply two matrix using pointers. How to input and multiply two matrix…
A: Write a C++ program to multiply two matrix using pointers. How to input and multiply two matrix…
Q: Consider the following sets: A={2,4,5} B = {4,9,10,12} C = {1,3,8,9,10,12,14} I)…
A: Answer: Given that A = { 2,4,5 } B = {4,9,10,12} C = {1,3,8,9,10,12,14} Here we will get for AUB is…
Q: Which of the following strings is accepted by the following automaton? 10100 001 0110101…
A: All the above is the correct answer I have provided the images below for the path taken by the…
Q: ercise 3.1 Define the following terms: relation schema, relational database schema, nain, attribute,…
A: Here in this question we have given some terminology realated to database and we have asked to…
Q: Why is the return statement is required in a function body?
A:
Q: Write a program that generates a random number between 1 and 500 and asks the user to guess what the…
A: C++ Program: #include <iostream>#include<cstdlib> using namespace std; //Main…
Q: What is the new sematic elements in HTML5? i. ii. iii. iv. a. i and iv b. ii and iii c. i, iii…
A: In the given question HTML stand for hiper text markup language. HTML was originally created as a…
Q: Q4. In a restaurant, whenever customers visit, they are provided with items from two categories, one…
A: Source codeBattery classpackage com.company;public class Battery { //instance variable…
Q: Why is the return statement is required in a function body?
A: return Statement: A return statement ends the execution of a function and returns control to the…
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: IN C++ NOTE: do not use classes or pointers for Lab 6 - Part B. You are only to use struct data to…
A: ANSWER:-
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount of the gas (n), and the temperature (T). The equation is:V = nRT / PSince we only have used integer arithmetic, all numbers will be integer values with no decimal points. The constant R is 8.314 and will be specified as (8314/1000). This gives the same result. Implement the idea gas law program where the user is prompted for and enters values for n, T, and P, and V is calculated and printed out. Be careful to implement an accurate version of this program. Your program should include a proper and useful prompt for input, and print the results in a meaningful manner.The body mass index, BMI, is a measure used to determine if a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person.The formula for calculating BMI is:BMI = (weightInPounds * 703) divided by (heightInInches squared)In this problem, you will develop a Java program as a BMI calculator, that reads the user’s weight in pounds and height in inches, then calculates and displays the user’s body mass index BMI. Also, display the following information {from the US Department of Health} so the user can evaluate his/her BMI:BMI values:Underweight: less than 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterWrite a program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of ice costs $2.5, but the price varies with the amount that he purchases. The following table shows the discount that Jacob receives. Order Volume Discount Rate >= 200 bags 25% off 120 - 199 bags 20% off 60 - 119 bags 15% off 40 -59 bags 10% off 20 – 39 bags 5.5% off 0-19 bags No discount (1) Inyourprogram,definevariableswithmeaningfulnamestoacceptuserinputonordervolume, and calculate total ordering cost based on the order volume inputted. Use if-else statements to handle the calculations for different order volumes as shown in the above table. (2) Yourprogramshouldprintoutuserordervolume,discountrate,andtotalorderingcostinconsole (similar to the following sample outputs)
- THIS IS MEANT TO BE IN JAVA So far we've learned variables, branches, loops, and some array. The assignment is: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. 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. This doesn't make sense to me.... Please show the end result and explain why you added what you added. This is what I have so far: import java.util.Scanner; public class LabProgram {public static void main(String[] args) {}}Write a program that reads a student’s name together with his or her test scores. The program should thencompute the average test score for each student and assign the appropriate grade. The grade scale is asfollows:90-100, A; 80-89, B; 70-79, C; 60-69, D; 0-59, FYour program must use the following methods:(a) A value-returning method, calculateAverage, to determine and return the average of fivetest scores for each student. Use a loop to read and sum the five test scores. (This method doesnot output the average test score. That task must be done in the method main.)(b) A value-returning method, calculateGrade, to determine and return each student’sgrade. (This method does not output the grade. That task must be done in the method main.)Test your program on the following data. Read the data from a file and send the output to a file. Do notuse any global variables. Use the appropriate parameters to pass values in and out of methods.Johnson 85 83 77 91 76Aniston 80 90 95 93 48Cooper 78…**CODE IS IN JAVA** Modify the BarChart program from Chapter 6 Exercise 13 to accept the number of points scored by each player in a season. The bar chart displays one asterisk for each 10 points scored by a player. For example, if a player has scored 48 points, then display 4 asterisks. An example of the program is shown below: Enter points earned for the season by Art >> 10 by Bob >> 20 by Cal >> 30 by Dan >> 40 by Eli >> 50 Points for Season (each asterisk represents 10 points) Art * Bob ** Cal *** Dan **** Eli ***** The code to modify: Scanner input = new Scanner(System.in); int artPoints; int bobPoints; int calPoints; int danPoints; int eliPoints; final int AMT_EACH_ASTERISK = 10; System.out.println("Enter points earned for the season"); System.out.print(" by Art >> "); artPoints = input.nextInt(); System.out.print(" by Bob >> "); bobPoints =…
- 7) The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount ofthe gas (n), and the temperature (T). The equation is:V = nRT / PSince we only have used integer arithmetic, all numbers will be integer values with nodecimal points. The constant R is 8.314 and will be specified as (8314/1000). This givesthe same result. Implement the idea gas law program where the user is prompted for andenters values for n, T, and P, and V is calculated and printed out. Be careful toimplement an accurate version of this program. Your program should include a properand useful prompt for input, and print the results in a meaningful mannerbasic java please Write a method called findTip that finds the value of a meal as a double after adding the tip to the cost. Then return this value to the calling function. For example findTip(120.10, 5) would 126.105 because that is a 5% tip. While findTip(48.0, 15) would return 55.2 because that is a 15% tip. Note that the bill is a double while the tip is an int. Don’t worry about rounding to two decimal places, just return the full value as a double.in Java, Write a program that reads student scores, gets the best score, and then assigns grades based on the following scheme:• Grade is A if score is ≥ best − 10• Grade is B if score is ≥ best − 20;• Grade is C if score is ≥ best − 30;• Grade is D if score is ≥ best − 40;• Grade is F otherwise.The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. Here is a sample run: number of students: 4 scores are: 40.0, 55.0, 70.0, 58.0 Student 0 score is 40.0 and grade is C Student 1 score is 55.0 and grade is B Student 2 score is 70.0 and grade is A Student 3 score is 58.0 and grade is B
- Hi, I need help with the following assignment. Implement a program that reads in a year and outputs the approximate value of a Ferrari 250 GTO in that year. Use the following table that describes the estimated value of a GTO at different times since 1962. Year Value 1962-1964 $18,500 1965-1968 $6,000 1969-1971 $12,000 1972-1975 $48,000 1976-1980 $200,000 1981-1985 $650,000 1986-2012 $35,000,000 2013-2014 $52,000,000Python programming In a department store sale, customers who purchase over 2000 are given 10% discount. Write a program that will accept for the purchase amount of a customer, solve for his/her discount if there’s any, ask for the money he/she is going to pay, then output the discounted price and the change of the customer.”Shpresa Fondation collects money from its donors. And then it distributes the collected money to the people who need. The money is collected directly from people or people donates through different banks. This year, they want to present certificates to their Top N Donors and thus they need to put the donors in descending order according to their total donation. Write a program in java that is going to read m donors' name surname and the amount donated, and then the program is going to list top n donors in descending order.Use merge sort and quick sort.