utput would be I will be 10000 days old on 2027-05-19.
Q: What is the value of m after executing the following code? int n = 123456789; int m = 0; while (n !=...
A: Here's the code: #include <iostream>using namespace std; int main() { // your code goes here i...
Q: Write pseudocode for each example (a through e) in Exercise 2, making sure your pseudocode is struct...
A: From the above flowcharts a) consider the modified flowchart a) Pseudo code of the flowchart: perfo...
Q: Write a program that will take user's three numbers and display them in ascending order. For example...
A: Program approach: Declare variables a, b, and c. Input values from the user. Print user input. The i...
Q: Write nested decision structures that perform the following: If amount1 is greater than 10 and amoun...
A: Since the programming language is not mentioned in the question, we will answer this question in the...
Q: Consider the employee database of Figure 2.17. Give an expression in the relational algebra to expre...
A: ONLY THREE PARTS ARE SOLVED. KINDLY SEND OTHER PARTS ON THE PORTAL AGAIN TO GET THE ANSWER.
Q: Consider the following three possible events that may be highlighted on SOC dashboards: a) A signif...
A: 1.a) i)A significant and unusual increase in the number of ARP responses on an internal network link...
Q: C++ Programming Instructions A room has one door, two windows, and a built-in bookshelf and it ne...
A: #include<iostream> using namespace std; int main(){ float length,width,height,temp,area=0;...
Q: Choose Create a new project and then select the template for C# Desktop app for the Windows Form App...
A: The user enters a numeric high school grade point average (for example, 3.2) and an admission test s...
Q: Briefly describe the what is meant by overflow and underflow conditions that might be produced after...
A: We know that floating point number are consist of addition,subtraction,multiplication and division a...
Q: How can AI help with network congestion?
A: Step 1: Introduction:- Artificial intelligence is defined as a revolution in the technology world. A...
Q: csc 231
A: import java.time.LocalDate; public class Elapsed_Days{ private long elapsed_days=0; public Elapsed_...
Q: Reflect on the difference among reporting systems, data mining systems, and Big Data Systems. What a...
A: Dfference between reporting systems , data mining systems and big data systems,-: Reporting tools ar...
Q: Multi-hop network: Given two hosts A and B, and one router between them. Packet size is L bits and...
A: Given Data : Packet Size(k) = L bits Bandwidth(b) = R bps One Router is in between A and B Numbe...
Q: Computer Science Question
A: (a) A bipartite graph is feasible if the graph coloring is feasible using two colors such vertices d...
Q: Thank you
A: EXPLANATION: - Main operations involved: - Reading the sorted text data file. Splitting the data ba...
Q: As stated, third party cookies usually do not contain in themselves, data that identifies you as a p...
A: A cookie is a little text file included in alphanumeric characters, which is generated on your compu...
Q: solve in python: Write a program that receives a series of numbers from the user and allows the user...
A: A required Python program is as follows, aSum = 0.0 # Store the number of terms entered by the user ...
Q: How do functional, structural, and behavioral models work together to describe a whole system?
A: Functional Model and Object Model - The four main parts of a Functional Model in terms of object mod...
Q: Differentiate between a traditional economy and a digital economy using FedEx as an example.
A: Traditional Economy: A traditional economy is a system that relies on customs, history, and time-hon...
Q: Write, compile, and test a class that displays at least four lines of your favorite song. Save the c...
A: I have written 2 codes for this question. Both codes output the same as per our requirement. I have ...
Q: a) List the balance factor for each Node in the BST. b) is the BST balanced or not? Why? 10 4 16 3 5
A: A balance factor of node is the difference between the heights of left and right child of a node.i.e...
Q: Question #3: Convert the following BNF to EBNF: <program> à begin <stmt_list> end <...
A: BNF (Backus-Naur notation) is a formal mathematical way to describe the syntax of the programming la...
Q: An older model car accelerates from rest to speed v in 10 seconds. A newer, more powerful sports car...
A: According to cube law, the power of a vehicle is proportional to the cube of velocity. So, Powe...
Q: Suggest and explain TWO (2) methods that can be used to ensure only authorized personnel can gain ac...
A: Ensuring that only authorized personnel can have access to the company system is a key challenge tha...
Q: Which below are true? (select all that are true) A) Inserting keys in random order into a Binary Sea...
A: When the keys are inserted in the random order, then it is possible that the random numbers can be s...
Q: Scaling. On the consumer side, your website sees an ever-expanding demand, in part from the surge in...
A: SCALING IN ONLINE PURCHASING: Scaling in online purchasing refers to handling the growing amount of...
Q: Assessment Information SIT716: COMPUTER NETWORK S AND SECURITY Assessment 1e: Bi -weekly Report ( We...
A: A Security Operations Center (SOC) improves security and consistence by solidifying key security sta...
Q: develop a scenario with a series of logical statements that can be "solved" using kmaps. Once you h...
A: kmap: (Karnaugh-map) is most suitable for minimizing Boolean functions of 2 variables to 5 variables...
Q: Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the var...
A: As per policy, only first question is answered. Since, no programming language is mentioned, We will...
Q: How to Use/Re-Use a Variable Explain how many variables to set up in order to solve a problem in the...
A: As you have not specified the lab problem or the language of programming. I will share how to re-use...
Q: Explain what check digits are and how they are used for validation. Please give three real-world app...
A: CHECK THE DEGREE - A check digit is a digit added to the string line for error detection purposes. U...
Q: C++ # Read in two number and display the ratio between the second value and the first value. Match t...
A: # This program reads in values into variables. Write a program to output the information in this for...
Q: Go to the cw_home.html and cw_styles.css files and enter your name and the date in the comment secti...
A: Styles Navigation List At the bottom of the home page is a navigation list with the id #bottom conta...
Q: use java The system that you will create is a Restaurant Menu Management System (RMMS). The RMMS is ...
A:
Q: For the pseudo-code below derive the simplified asymptotic running time in Q(?) notation. for i -&...
A: or the pseudo-code below derive the simplified asymptotic running time in Q(?) notation. for i -...
Q: Develop a c++ code that will accept two integer numbers (Minimum and Maximum). Theprogram should de...
A: #include<iostream> using namespace std; int main(){ int minimum,maximum; cout << ...
Q: Write a program called HW2_Q1.py that asks a shop owner for product information and creates amenu sy...
A: Objective: This program asks user input for shop detail and displays the menu information in the giv...
Q: Course : Big Data Processing Material : BIG DATA LAYER ARCHITECTURE Question : Why is the essence ...
A: Big Data is one of the major areas of focus in today’s digital world. There are tons of data generat...
Q: Briefly describe the purpose of solution explorer snd properties windows
A: Purpose of the Solution Explorer window: The Solution Explorer window is considered as one of the s...
Q: Thank you, make up a file if need be of sorted data
A: The function binary_search() will take two parameters- a filename and the value that has to be found...
Q: Show your all calculation
A: Programmatic Visualization tools: Data visualization is the process in which the data is viewed acc...
Q: Using Java,You are given an integer variable dollarAmount that will have an integer value of ten or ...
A: This can be achieved by following the below steps: Modulus with 10 results in one's place decimal M...
Q: Assume the two instructions below are executed.AND R4, R4, #0STR R4, R7, #-1Which one of the stateme...
A: STR is used to store something from the register to memory.For Example:STR r2,[r1] - The instruction...
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles...
A: PROGRAM: //Importing the required header file import java.util.Scanner; //Defining the class publi...
I am struggling on this one. This is the question - Write an application that computes and displays the day on which you become(or became) 10,000 days old. For example, if you we're born on January 1st, 2000, the output would be I will be 10000 days old on 2027-05-19.
This is the starting code -
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Help with JavaFX barchart: I have a program that allows a user to deposit and withdraw money while updating their balance based on the month the transaction occured, but I am having trouble with the programs class and am trying to make a bar chart that will have the total balance of that month, so as an example in May the bar would show $70, while the bar for June would show $100, even if the deposits were $20 and $50, then $30, $40 and $30.Java: A place to buy candy is from a candy machine. A new candy machine is bought for the gym, but it is not working properly. The candy machine has four dispensers to hold and release items sold by the candy machine and a cash register. The machine sells four products — candies, chips, gum, and cookies—each of which is stored in a separate dispenser. You have been asked to write a program for this candy machine so that it can be put into operation. The program should do the following: Show the customer the different products sold by the candy machine Let the customer make the selection Show the customer the cost of the item selected Accept money from the customer Return change Release the item, that is, make the sale Here is my provided code: import java.util.*; public class CandyMachine{// Each candy machine is made of 1 CashRegister and 4 DispensersCashRegister cashRegister;Dispenser candy;Dispenser chips;Dispenser gum;Dispenser cookies;//Default constructor to set the…Java: A place to buy candy is from a candy machine. A new candy machine is bought for the gym, but it is not working properly. The candy machine has four dispensers to hold and release items sold by the candy machine and a cash register. The machine sells four products — candies, chips, gum, and cookies—each of which is stored in a separate dispenser. You have been asked to write a program for this candy machine so that it can be put into operation. NOTE: Each method should be in a different class , NOT one big program! The program should do the following: Show the customer the different products sold by the candy machine Let the customer make the selection Show the customer the cost of the item selected Accept money from the customer Return change Release the item, that is, make the sale
- Write an java application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average. import java.util.*; public class QuizScoreStatistics { public static void main (String args[]) { // Write your code here } }Write a program in Java Object Oriented language that performs Addition, Subtraction, Multiplication and Division of two fractions.Make a program in Java Object Oriented language that performs Addition, Subtraction, Multiplication of two complex numbers (a+bi)Write a program in Object Oriented Java language that adds and subtracts two polynomials of the form ax2+bx+c In this case the menu will ask if you want to use fractions, complexes or polynomials and when you select the option, it will show all the requested operations. The operations in each problem must be functions and/or procedures that must be called in the main program.For this assignment, write a program called Payday.java that will compute and print a person's paycheck. The program will ask the user for the number of hours they worked and their hourly payrate. It will ask the person if they are a union member, in which case 5% of the salary will be withheld for union dues. It will ask the person if the percentage they wish to set aside for their medical savings account. It will then apply a sliding tax scale, defined as follows: Greater than or equal to $2,500 $1,500 up to $2,500 $500 up to $1,500 Less than $500 25% 15% 10% 5% The program must then print a formatted paycheck that shows their gross pay, union deduction, medical deduction, taxes withheld, and net pay. Use a function to determine the tax rate. Use a different function to print the nicely formatted paycheck. Your program should operate like this: ********** ********** Payday V1.0 ***: ******** Enter name: Ray Klump Enter hours worked: 43.25 Enter hourly pay rate: 17.50 Are you a union…
- Write an Java application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization or punctuation. For example, “Dot saw I was Tod”, “Was it a car or a cat I saw?”, and “Madam, I’m Adam” are palindromes. Display the appropriate feedback: You entered a palindrome or You did not enter a palindrome. import java.util.*; public class Palindrome { public static void main(String[] args) { // Write your code here } }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:Programming language: JAVA: Processing Exercise 2. In section 7.3, you made a ball orbit the mouse. Make the ball orbit in an ellipse instead of a circle. You can do this by using a different radius for the x and for the y calculations. Make multiple balls orbit the mouse at different speeds. E.g., make three. Make one move in the opposite direction (counter-clockwise). Example in 7.3 codes attached with a photo. Cannot use advanced coding! we have only learned active processing, user defined functions, float, simple trig so far
- Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even number, display the message “Good job!” and then ask for another input. When the user types an odd number, display an error message, "x is not an even number", and then ask for another input. When the user types the sentinel value 999, end the program. import java.util.*; public class EvenEntryLoop { public static void main (String args[]) { // Write your code here } }Write code for a Java class Rectangle with the following fields and methods: Rectangle width : double - height : double - area : double + perimeter : double + diagonal : double +Rectangle () : void + setRectangle (double w, double h) : void + printRectangle () : void + changeWidth (double w) : void + changeHeight (double h) : void static computeDiagonal (double w, double h) : double Fields Methods Methods: Rectangle: Constructor, creates a rectangle with width and height equal to zero. setRectangle: Sets the width and height equal to the two parameters. Computes and stores the rectangle area, perimeter and diagonal. printRectangle: Prints the width, height, area, perimeter and diagonal of the rectangle with labels. All values are printed with a maximum of 2 digits after the decimal. Extra Credit (+5): Include a visual representation of the rectangle: ##### #3 # #### Extra Credit (+2): Visual representation works with length of 1 for height and/or width. changeWidth: Changes the width…This is the question - Write an application that prompts a user for a month, day, and year. Then display the appropriate message: Y is not this year M was a month earlier this year M is a month later this year M is this month This is the code I have for it so far - import java.util.*; import java.time.*; public class PastPresentFuture { public static void main (String args[]) { LocalDate today = LocalDate.now(); LocalDate enteredDate; int mo, da, yr; int todayMo, todayDa, todayYr; Scanner input = new Scanner(System.in); System.out.print("Enter a month >> "); mo = input.nextInt(); System.out.print("Enter a day >> "); da = input.nextInt(); System.out.print("Enter a year (four digits) >> "); yr = input.nextInt(); } }