Rainfall Type Create a RainFall class that keeps the total rainfall in an array of doubles for each of the 12 months. Methods in the programme should return the following values: • the total annual rainfall; • the average monthly rainfall • the wettest month of the year • the month with the least amount of rain Demonstrate the class in its entirety. Validation of Input: Accepting negative amounts for monthly rainfall data is not permitted.
Q: nsider: lic static void printAll(int[] a) { N = a.length;
A:
Q: 1a) Pick any commercial CPUs available in state-of-the-art and identify their multilevel caches and ...
A: A central processing unit also know as central processor, the main processor is the electronic cir...
Q: Describe the structural characteristics of convolution codes. Describe the stop and wait ARQ methods...
A: Convolutional codes differ from block codes in that the encoder contains memory and the n encoder ou...
Q: How the MIPS assembly code manipulate bitwise NOT (~) ? Assume we want to implement NOT operation to...
A: Bitwise NOT(~) instruction does a 1's complement of a value in other words it makes a bit 0 to 1 and...
Q: 4. Write a C++ program to remove all adjacent equal elements from the array given below and print th...
A: Required:- 4. Write a C++ program to remove all adjacent equal elements from the array given below a...
Q: What is open source in computer science?
A: Lets see about open source in the next steps
Q: Develop a java code to save the following string {"Lab", "Assessment", "total. "Marks", "is 5"} in S...
A: According to this question, We have to implement stack in JAVA language Then we have to store stri...
Q: What Is SDLC?
A: This question comes from Software Engineering which is a paper of Computer Science. Let's discuss it...
Q: Let G be a directed graph with positive and negative weights. It is known that the shortest paths fr...
A: The algorithm is Bellman- ford.Time complexity is O(ne ),Where n is number of node ,e is number of e...
Q: Combinations Postindex EA = (A) + (R) %3D Preindex EA = (A+(R)) %3D (Draw the diagrams)???
A: A = base (R) = displacement
Q: The main distinction between business intelligence and analytics is ?
A: Introduction: The main distinction between business intelligence and analytics is
Q: converting infix to postfix 1. if you encounter an operand, append it to the output string postfixEx...
A: ope = {'(', ')','+', '-', '*', '/', '^'} associativity = {'-':1, '*':2,'+':1,'^':3, '/':2} def infi...
Q: Explain the use of static members using an example.
A: Introduction A static member function is a special member function, which is used to access only st...
Q: Create a function that takes the same group as number n and returns a list of two numbers from the a...
A: Step 1 : Start Step 2 : Define a function two_product() which accepts a list and a number n as param...
Q: What are the various methods for putting audio into PowerPoint slides?
A: There are three different ways to insert audio from the Audio menu. First, you need to click Insert ...
Q: hen we use the new operator to produce a String, where does it go? a. Stack b. String storage c...
A: Introduction: When we use the new operator to generate a String, the Java compiler will construct a ...
Q: What is the condition of the Internet of Things right now?
A: Introduction: The Internet of Things is a popular technology with numerous applications in today's w...
Q: Find the angular velocity from velocity and radius in python
A: The relationship between linear velocity and angular velocity is given as ω=v/r. where ω represents ...
Q: What is open source in computer science?
A: Introduction What is open source in computer science?
Q: Write a program to reverse a string except the special characters or numbers in JAVA NOTE : pls pro...
A: Algorithm: Let input string be 'str[]' and length of string be 'n'l = 0, r = n-1 While l is smaller ...
Q: Almost all modern appliances can communicate wirelessly thanks to technological advancements. Have t...
A: Introduction: The internet's relevance in business has grown as communication and information techno...
Q: Write a loop to display the powers of 2 exactly as shown below: 1 4 8. 16 32 64 128
A: C++ Program for above : #include <iostream>using namespace std; int main() { //loop for ab...
Q: ... Pl: tA = seq + 1; P2: seq = tA; Q1: tB Q2: seq = seq+ 2; = tB;
A: Here either of the process can execute first. Also a process can be preempted by another process. T...
Q: Network maintenance is an important task in organizations today who entirely rely on their network i...
A: In the third раrty mаintenаnсe (TРM) industry, netwоrk mаintenаnсe is essentiаlly whаt y...
Q: 1. Take ASCII values as input & print corresponding Character. Suppose, input 97 and output a Using ...
A: n=int(input("enter ascii value: "))a=chr(n)print(a)
Q: Write a program to ask user to enter number of codes. Assign a letter for each code and possibility....
A: Obtain the string and compute the frequency of each character in the string. Using the frequency, ob...
Q: The shift from face-to-face to virtual contact has had a variety of repercussions and restrictions o...
A: Introduction: The term "virtual communication" refers to how people connect while they are not in th...
Q: --Problem -3 -Create a flowchart design that depicts the solving of the following problem: Asks user...
A: Please refer to the following step for the complete solution of the problem above.
Q: 35. Develop a generic strategy for studying recursive algorithms.
A: Introduction Recursive algorithms break down a problem into smaller pieces which you either already ...
Q: what is octal cable computer networking? writes its Uses? advantages and Disadvantages?
A: Lets see the solution in the next steps
Q: in terms of security, privacy, dependability, and performance, what are the obligations that come al...
A: Introduction: Assisting living services on intelligent buildings is an everyday use of ambient intel...
Q: st technology Abstraction Layers used in the customization of ERP and Provide example.
A: Here are trends that will be important in the future of the ERP market:1. Cloud ShippingIn 2020, we ...
Q: Explain why video data demands and consumes more storage space than other forms of data.
A: The ask is to explain why video data require and use more storage size than any other data types.
Q: H.W:- Find the transpose to the following matrices [0.3 0.4 0.2 0. 13 0.4 0.3 -1 0.9 0. 12 -2 lo.8 -...
A: When the rows and the columns of a matrix are interchanged then it is known as it transpose.
Q: Do you know how to tell the difference between main and secondary memory?'
A: Given:
Q: Matlab Plot the signal in matlab software Need code and output
A: x = -20:0.01:20;% x data y = []; % y data for t = x if abs(t) < 1 % if |t| < 1 y(end + 1) = 1;...
Q: >> a=[1;4;7]l; b=[2;-1;5]; >> c=dot (a,b) C = 33 >> d=cross (a, b) d = 27 6. -9 > x=a;y=Db'3; >> z=d...
A: Since you took transpose of a and b as x and y ,hence cross product is also transpose. But as dot pr...
Q: Write a method to count all words in a string and print the most repeated word. Test Data: Input a s...
A: Php code for find total word and most of time repeated word.
Q: Declare variable and assign value, define function that returns text, return number of characters in...
A: Note: Here in the question programming language is not mentioned, I am doing this program in java. A...
Q: Create a program that contains a function pairs(x) where x is a list of integers. The function shoul...
A: Program to print the list which has pair: Note: Since you didn't mention any programming language, I...
Q: What does NoSql stand for? database management and NoSQL What are NoSQL technologies?
A: We have to understand what is NoSQL What is NoSQL in database management and understand the technolo...
Q: different teams. Each developer has her/his own laptop which runs Windows 10. The development enviro...
A: Case StudyPQS is an online retail shop in Sydney, Australia. Its website, where the users can explor...
Q: What is the role of current technology in effective communication and how is it used?
A: Introduction Communication is the most important expect of human life. To generate, pass and organiz...
Q: Suppose you have a Pascal-to-C translator written in C and a working C-to-M compiler written for the...
A: The Answer is given below step
Q: Excellent example of partitioning
A: Excellent example of partitioning is dividing hard disk
Q: Find the angular velocity from velocity and radius in python
A: Required:- In Python, you can compute the angular velocity given the velocity and the radius. Approa...
Q: In this problem you will implement a function called pagerank which will take as input a numpy array...
A: Editable source code: import numpy as np def page_rank(M,n): P = np.ones(M.shape) A = M for...
Q: Explain the difference between Machine Dependent and In-Dependent Optimization by examining the Repl...
A: Introduction The code optimization in the synthesis phase is a program transformation technique, whi...
Q: There are various trade-offs and challenges to consider while shifting from a custom solution to an ...
A: Introduction: In corporate level solutions, individual users must have some control over their data.
Q: What is open source in computer science?
A: This question comes from Internet Technologies which is a paper of computer science. Let's discuss i...
Step by step
Solved in 3 steps with 1 images
- Sultan Qaboos University Department of Computer Science COMP2202: Fundamentals of Object Oriented Programming Assignment # 2 (Due 5 November 2022 @23:59) The purpose of this assignment is to practice with java classes and objects, and arrays. Create a NetBeans/IntelliJ project named HW2_YourId to develop a java program as explained below. Important: Apply good programming practices: 1- Provide comments in your code. 2- Provide a program design 3- Use meaningful variables and constant names. 4- Include your name, university id and section number as a comment at the beginning of your code. 5- Submit to Moodle the compressed file of your entire project (HW1_YourId). 1. Introduction: In crowded cities, it's very crucial to provide enough parking spaces for vehicles. These are usually multistory buildings where each floor is divided into rows and columns. Drivers can park their cars in exchange for some fees. A single floor can be modeled as a two-dimensional array of rows and columns. A…Make Album in c++ You are going to develop a new class named Album. This class will has (at a minimum) teh following attributes and features: Attributes: Album Title Artist Name Array of song names (Track Listing) Array of track lengths (decide on a unit) At most there can be 20 songs on an album. Behaviors: Default and at least one argumented constructor Appropriate getters for attributes bool addTrack(string name, type duration) - adds track to album. You decide type on duration. Make sure you document what dis is. getAlbumLength() - method dat returns total length of album matching watever units / type you decide. getAlbumLength_string() - method dat returns total length of album in mm:ss format string. I would suggest using you're other getLength function here. string shuffleAlbum(int n) - method dat returns a formatted string made up of n random tracks from teh album. The string will be in the format [1] track_name (mm:ss), [2] track_name (mm:ss)... Well formatted print()…Make Album in c++ You are going to develop a new class named Album. This class will has (at a minimum) teh following attributes and features: Attributes: Album Title Artist Name Array of song names (Track Listing) Array of track lengths (decide on a unit) At most there can be 20 songs on an album. Behaviors: Default and at least one argumented constructor Appropriate getters for attributes bool addTrack(string name, type duration) - adds track to album. You decide type on duration. Make sure you document what dis is. getAlbumLength() - method dat returns total length of album matching watever units / type you decide. getAlbumLength_string() - method dat returns total length of album in mm:ss format string. I would suggest using you're other getLength function here. string shuffleAlbum(int n) - method dat returns a formatted string made up of n random tracks from teh album. The string will be in the format [1] track_name (mm:ss), [2] track_name (mm:ss)... Well formatted print()…
- Charge Account Validation Using Java programming Create a class with a method that accepts a charge account number as its argument. The method should determine whether the number is valid by comparing it to the following list of valid charge account numbers:5658845 4520125 7895122 8777541 8451277 13028508080152 4562555 5552012 5050552 7825877 12502551005231 6545231 3852085 7576651 7881200 4581002These numbers should be stored in an array. Use a sequential search to locate the number passed as an argument. If the number is in the array, the method should return true, indicating the number is valid. If the number is not in the array, the method should return false, indicating the number is invalid.Write a program that tests the class by asking the user to enter a charge account number. The program should display a message indicating whether the number is valid or invalid.Assignment:The BankAccount class models an account of a customer. A BankAccount has the followinginstance variables: A unique account id sequentially assigned when the Bank Account is created. A balance which represents the amount of money in the account A date created which is the date on which the account is created.The following methods are defined in the BankAccount class: Withdraw – subtract money from the balance Deposit – add money to the balance Inquiry on:o Balanceo Account ido Date createdTrue or False Objects that are instances of a class can be stored in an array.
- Employee class Write a Python program employee.py that computes the cumulative salary of employees based on the length of their contract and their annual merit rate. Your program must include a class Employee with the following requirements: Class attributes: name: the name of the employee position: the position of the employee start_salary: the starting salary of the employee annual_rate: the annual merit rate on the salary contract_years: the number of years of salary Class method: get_cumulative_salary(): calculates and returns the cumulative salary of an employee based on the number of contract years. Round the cumulative salary to two digits after the decimal point. Example: If start_salary = 100000, annual_rate = 5% and contract_years = 3: Then the cumulative salary should be : 100000 + 105000 + 110250 = 315250 Outside of the class Employee, the program should have two functions: Function name Function description Function input(s) Function output(s) / return…Please submit the pseudocode of your program for your project below. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…Book Donation App Create a book-app directory. The app can be used to manage book donations and track donors and books. The catalog is implemented using the following classes: 1. The app should have donors-repo.js to maintain the list of donors and allow adding, updating, and deleting donors. The donor object has donorID, firstName, lastName, and email properties. This module should implement the following functions: • getDonor(donorId): returns a donor by id. • addDonor(donor): adds a donor to the list of donors; donorID should be autoassigned a random number. • updateDonor(donor): updates the donor having the matching donorID. • deleteDonor(donorID): delete the donor with donorID from the list of donors, only if they are not associated with any books. 2. The app should have books-repo.js to maintain the list of donated books and allow adding, updating, and deleting books. The book object has bookID, title, authors, and donorID properties. • donorID references the book’s donor. This…
- Assignment: Enhancing Dice Roll Stats Calculator Program Introduction: The project involves creating a program to roll pairs of dice, gathering statistics on the outcomes. Probability differs in the roll of two dice compared to a single die due to varied combinations. Dice Roll Series: User greeted with "Welcome to the Dice Roll Stats Calculator!" and prompted to specify rolls. Java classes: DiceRoller, Indicator, Validator. DiceRoller: Arrays: rollSeries (captures results), statIndicators (stores statistical indicators). Constructor rolls dice as per user request. Methods collect stats and print the report. Indicator class: Contains dicePairTotal and dicePairCount. Displaying Results: Sort statIndicators array before display. Indicator objects sortable by dicePairCount (implements Comparable). Example output:-----------------------dicepair rolltotal count percent---- ------ --------7 5 50%10 2 20%4 2 20%2 1 10% Tasks:…Charge Account ValidationCreate a class with a method that accepts a charge account number as its argument. The method should determine whether the number is valid by comparing it to the following list of valid charge account numbers:5658845 4520125 7895122 8777541 8451277 13028508080152 4562555 5552012 5050552 7825877 12502551005231 6545231 3852085 7576651 7881200 4581002These numbers should be stored in an array. Use a sequential search to locate the number passed as an argument. If the number is in the array, the method should return true, indicating the number is valid. If the number is not in the array, the method should return false, indicating the number is invalid.Write a program that tests the class by asking the user to enter a charge account number. The program should display a message indicating whether the number is valid or invalid.Personal Information Program Using Python Develop a program, in which you'll design a class that holds the following personal data: name address age phone number As part of the program, you'll then create appropriate accessor and mutator methods. Also, set up three instances of the class. One instance should hold your information, and the other two should hold your friends’ or family members’ information. NOTE: The input data do not need to be real data. Input Data: Set up a loop and enter the following input data: data for the following attributes of 3 instances of the Personal Information Class: name, address, age, and phone number NOTE 1: The input data do not need to be real data. NOTE 2: they need to be entered at the keyboard, when program is run. Processing: Develop the following: Personal Information Class A program that creates three instances of the above class Output Data: Set up a loop and display data within each object: name, address, age, and phone number