Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

src=”/qa/attachment/9516223/” alt=”1.PNG” />HI, This is Ruby Languages, the assignment based

Question src=”/qa/attachment/9516223/” alt=”1.PNG” />HI, This is Ruby Languages, the assignment based on Functions, parameters and return values. I cannot find my course on Course hero but I hope you can help me with the solutions for this questions, Thank you. My subject is introduction to programming (Ruby) Attachment 1 Attachment 2 Attachment 3 ATTACHMENT PREVIEW Download attachment 1.PNG ATTACHMENT PREVIEW Download attachment 2.PNG ATTACHMENT PREVIEW Download attachment 3.PNG

Question Week 2B :Build on “starter” code to make a

Question Question Week 2B :Build on “starter” code to make a Java™ program that prompts the user for input, accepts user input, and produces both console and file output.Copy the linked code to a JAVA file.Add Java® code based on the comments inside the code.Note: Refer to this week’s Individual “Week Two Analyze Assignment” for model code you can adapt to meet this assignment’s requirements.Test, debug, and run your code using the NetBeans editor to make sure it meets the program requirements..txt extension.///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////text file:package demo;import java.util.Scanner;             // scanner is a predefined class for taking inputs from userpublic class Startercode{ public static void main(String[] args) {// prompts and accepts user inputScanner input= new Scanner(System.in);double data;System.out.println(“Enter value “);              // accepts file input   String fileName = “input.txt”;        // name of the file to open   String line = null;                                                         // will reference one line at a time   try {     FileReader fileReader =                               // FileReader reads text file        new FileReader(fileName);                                 // reads in data from the file     // produces both console and file output   try {                                                                                  // coding block to output data to file      fileStdout = new PrintStream(new FileOutputStream(“data.txt”)); // output file name is data.txt        System.out.println(“==============”);  // output to console, numbers 0 through 9                 fileStdout.println(“” i);Week 2 Analysis text below:Week Two Analyze Assignment/*********************************************************************** Program: FileOut * Purpose: Demonstrate the coding to produce output to a file.  * Programmer: I am student * Class: PRG/421r13, Java Programming II * Instructor: * Creation Date: 01/03/2018 ************************************************************************/package fileout;  import java.io.*;  public class FileOut {  public static void main(String[] args) {            InputStream istream;      OutputStream ostream=null;   // FileOutputStream creates an OutputStream that you can use to write bytes to a file.    int c;  // character stream     final int EOF = -1;  // EOF indicator    istream = System.in;           // If the Data.txt file already exists, present its contents on the console.    String fileName = “Data.txt”;      // name of the file to open.    String line = null; // will reference one line at a time    try {      FileReader fileReader =      // FileReader reads text file         new FileReader(fileName);    //  reads in data from the file       // always wrap FileReader in BufferedReader (to verify)      BufferedReader bufferedReader =         new BufferedReader(fileReader);      System.out.println(“Here are the contents of the current file named ” fileName “:n”);      while((line = bufferedReader.readLine()) != null) {        System.out.println(line);              // verify / display what is read in by the program      }            bufferedReader.close();        // close file       }     catch(FileNotFoundException ex) { // coding to verify file can be opened       System.out.println( // if not open, error message to display         “Unable to open file ‘”           fileName “‘”);              }     catch(IOException ex) { // exception, when there is an error in reading       System.out.println(        “Error reading file ‘”           fileName “‘”);               }             // Now, let’s construct a new file containing user input.    System.out.println(“nType characters to write to file. After you finish, press Ctrl Shift Del to end.”);      File outFile = new File(“Data.txt”);       // new file             try {  // try block for EOF indicator        ostream = new FileOutputStream(outFile);        while ((c = istream.read()) != EOF)  // look for end of file in istream          ostream.write(c);      } catch (IOException e) {        System.out.println(“Error: ” e.getMessage());      } finally {        try {  // try block for file error – file did not close        istream.close();  // close input and output        ostream.close();         } catch (IOException e) {          System.out.println(“File did not close”);        }      }    }  }  

Before you can perform data output, you must first decide

Question Before you can perform data output, you must first decide the form in which you want the output data to appear. Onscreen and flat-file output are sometimes appropriate in a small system, such as a modest inventory application in which updated results display on a screen to be analyzed by a user, and in which output is designed for little more than backup on a local, secure machine. Displaying information onscreen can be a benefit, since the user does not have to produce and review a program-generated report, while saving small amounts of data to an easily-read file with no requirement to manage a database can be the best approach if program requirements do not dictate otherwise. However, in high-volume scenarios where one program “feeds” large amounts of data to another program, console output and flat-file data storage may not make practical sense.Can you think of two scenarios for which console or flat file output would not be appropriate. For each scenario, describe why console/flat file output would not be appropriate, and identify an alternative approach that might make more sense.

Put together a program with a method that will accept

Question Put together a program with a method that will accept as input a scanner object. Prompt the user for three individual string input values (e.g., Red, Blue, and Green). Use Try..Catch error handling. The method should print the contents of the user input and return a string value to the calling method indicating “Success” or “Failure” based on the program flow through the try..catch error handling (see Chapter 13 in the text). Print the return message. Call the method from the main program to demonstrate its functionality.Portray your source code and screenshots of the application executing the application and the results in a single document using java

I have a main Class Resource and few other classes

Question I have a main Class Resource and few other classes like Dagger , Sword which extends Resource.Using Java and inheritance with following requirements.  All resources should have a number on hand.   Each resource should be able to return its name and number of resources of that type. Each resource should have a method to increase the number of resources and another to decrease the number of resources.All resources should be able to be written to disk via a method call boolean saveToDisk(filename) and return true if successful. All resources should have a static method called Resource readFromDisk(filename), which will read a resource from the disk and return it to the caller. Test Class has code:    System.out.println(“Testing File Input and Output”);   System.out.println(“Next time lines are identical”);   //check to see if sword can be written to disk and read back   sword1.increaseResources(923);   System.out.println(sword1);   sword1.saveToDisk(“sword.bin”);   Sword sword2 = (Sword) Resource.readFromDisk(“sword.bin”);   System.out.println(sword2); Output is:Testing File Input and OutputNext time lines are identicalSword number Remaining 2 Null Please help in save to disk and read from disk methods.

why is programming efficiency important?

Question  why is programming efficiency important?

rite a flowchart (flowgorithm), and C code for a program

Question rite a flowchart (flowgorithm), and C code for a program that does the followingAsks a user for a number.Multiplies that number by itself.Outputs the number and the result, using descriptive language to tell the user what they’re seeing

flowchart (FLOWGORITHM), and C code for a program that does

Question flowchart (FLOWGORITHM), and C code for a program that does the following:Asks a user for their age.Uses an “if” statement to determine if the user is under age 18.Has appropriate output telling the user if they can vote or not. ATTACHMENT PREVIEW Download attachment Unit 1 Graded Exercise 1 Output_LI (2).jpg Enter a number: 5 The value of number1 is 5 5 multiplied by 5 is 25 Process exited after 4.489 seconds with return value 0

  1. Get the trDFgrouped data starting from the May heavy day

Question

  1. Get the trDFgrouped data starting from the May heavy day counts to the August heavy counts
  2. Group xyz customers using BUYER_STATUS, heavyCat, and ZIP, and apply np.sum function on the aggregated data for YTD_SALES_2009 and LTD_SALES columns

Can some please help me with my code everytime I

Question Can some please help me with my code everytime I do it i get a bunch of errors. />Instructions: A windows console application that holds data about an item in a retail store. Your class should be named Retail Item and should hold data about an item in a retail store. The class will have the following member variables. The program should display all three Retail Items. Finally, the program should tally the inventory for all three items and display it.Welcome to the Retail store!Price must be greater than 0.Please enter the price for item 1: 33Inventory must be greater than 0.Please enter the units on hand for item 1: 10Please enter the description for item 1: shirtDisplay all itemsDescription: shirtUnits on hand: 10Price: $33.00Description: JeansUnits on hand: 40Price: $34.95Description: Long sleeve shirtUnits on hand: 20Price: $24.95Display the total inventory.The total inventory is 70.Press any key to continue.My code: #include#includeusing namespace std;class RetailItem{ //declaring variables private: string description; int unitsOnHand; double price; //functionspublic: RetailItem() {  description = desc;  unitsOnHand = unit;  price = p; } string getDescription() {  return description; } int getUnitsOnHand() {  return unitsOnHand; } double getPrice() {  return price; } void setDecription(string desc) {  description = desc; } void setUnitsOnHand(int unit) {  unitsOnHand = unit; } void setPrice(double p) {  price = p; }};int main(){ RetailItem r[3]; string desc; int unit = 0; double price = 0.0; cout << "Welcome to the Retail storen" << endl; cout << "Price must be greater than 0n" << endl; for (int i = 0; i < 3; i ) {  cout << "Please enter the description for item" << i 1 << ":";  getline(cin, desc);  while (unit <= = 0)  {   cout << "Please enter the units on hand for item" << i 1 <> unit;   if (unit <= 0)    cout << "unit cannot be 0 please enter again" << endl;  }  while (price <= 0.0)  {   cout << "please enter the price for item" << i 1 <> price;   cin.ignore();   if (price <= 0)    cout << "price cannot be 0 please enter again" << endl;  }  cout << endl;  r[i].getDescription(desc);  r[i].setUnitsOnHand(unit);  r[i].setPrice(price);  unit = 0;  price = 0; } cout << "Display items…n" << endl; int totalInventory = 0; for (int i = 0; i < 3; i ) {  cout << "Description:" << r[i].getDescription() << endl;  cout << "Units on hand:" << r[i].getUnitsOnHand() << endl;  totalInventory = r[i].getUnitsOnHand();  cout << "Price :" << r[i].getPrice() << "$" << endl;  cout << "nn"; } cout << "Total Inventory" << endl; cout << "Total Inventory is:" << totalInventory << endl; return 0;}}

What are your organisations procedures in regards to updating, modifying,

Question  What are your organisations procedures in regards to updating, modifying, maintaining and storing information? What are/is the name of this procedure/s?

Pseudocode code />Represent the logic of a program that allows

Question Pseudocode code />Represent the logic of a program that allows the user the decide if an employee is eligible for overtime pay. If the employee is hourly, then output “Eligible for overtime,” and if the employee is salaried, then output “Not eligible for overtime.”Represent the logic of a program decides which award to give an employee based on years of service. Someone with more than 25 years of service gets a gold watch, and someone with 25 years or less of service receives a pen and pencil set.Represent the logic of a program that allows the user to enter a value between 1 and 100. The program determines if the value is even or odd, and outputs either “The number is even,” or “The number is odd.”

Hello,I need help creating a short program in python that

Question Hello,I need help creating a short program in python that will prompt a user to enter 2 integers and then save them as the lower being x and the largest being y. I would also like to find a loop that will count from x to y by twos. I keep running in to issues, please help me.

Part 1: Classroom Management Strategies Misbehavior or Disruptive Behavior Examples

Question Part 1: Classroom Management Strategies Misbehavior or Disruptive Behavior Examples and Causes(Research, identify, and explain five possible causes of misbehavior or disruptive behavior in the inclusive classroom) Misbehavior or Disruptive Behavior Classroom Management Strategies(For each cause, describe two strategies for addressing and managing the misbehavior or disruptive behavior) 1.   1. 2.  2.    1. 2. 3.    1. 2. 4.    1. 2. 5.    1. 2.  Part 2: NarrativeCompose a word narrative assessing the connection between classroom management strategies and collaboration with students and colleagues to minimize disruptive behavior in the inclusion classroom. How can such collaboration help make a safe environment in which the students can engage in meaningful learning and social interactions?   References

a program and flowchart (FLOWGORITHM). The program should ask the

Question a program and flowchart (FLOWGORITHM). The program should ask the user how many customers they want to track. Then, it asks for customer numbers, and sales by customer. At the end, it prints out the customer number, the customer sales, and then the total sales and average sales. You must use two different arrays, one for customer number, and one for sales. These are, in effect, parallel arrays.  You must use a “while” loop to gather customer number and sales.You must use a”for” loop to output the customer number and sales by customer. ATTACHMENT PREVIEW Download attachment CIS126 Final Exam Part 1 Output – CORRECTED CALCULATED RESULTS_LI.jpg How many customers do you want to track? Enter the customer number. 1 Enter the sales for the customer 1000 Enter the customer number. 2 Enter the sales for the customer 2000 Enter the customer number. 3 Enter the sales for the customer 3000 Enter the customer number. 4 Enter the sales for the customer 4000 Sales for the Customer Customer Customer Number Sales 1000 2 2000 53 3000 4 4000 Total sales are $10000 Average sales are $2500.00 4th return value

I have 3 files. price.csv, auditors.csv, and stores.json i converted

Question I have 3 files. price.csv, auditors.csv, and stores.json i converted the json files into a csv file. prices.csv describes prices collected for products, represented as UPC, at specific physical store locations, represented as Store ID.auditors files has who collected prices at each store are represented as Auditor ID. Store attribute information is described in stores.json, and auditor information is shown in auditors.csv i need help creating a cross tabulation in python that shows the price for each product broken down by banner. it should look like this: here is also my code so far: Attachment 1 Attachment 2 ATTACHMENT PREVIEW Download attachment Capture.PNG ATTACHMENT PREVIEW Download attachment Capture2.PNG

a C program and flowchart (FLOWGORITHM). The program should ask

Question a C program and flowchart (FLOWGORITHM). The program should ask the user how many customers they want to track. Then, it asks for customer numbers, and sales by customer. At the end, it prints out the customer number, the customer sales, and then the total sales and average sales. You must use two different arrays, one for customer number, and one for sales. These are, in effect, parallel arrays.  You must use a “while” loop to gather customer number and sales.You must use a”for” loop to output the customer number and sales by customer ATTACHMENT PREVIEW Download attachment CIS126 Final Exam Part 1 Output – CORRECTED CALCULATED RESULTS_LI.jpg How many customers do you want to track? Enter the customer number. 1 Enter the sales for the customer 1000 Enter the customer number. 2 Enter the sales for the customer 2000 Enter the customer number. 3 Enter the sales for the customer 3000 Enter the customer number. 4 Enter the sales for the customer 4000 Sales for the Customer Customer Customer Number Sales 1000 2 2000 53 3000 4 4000 Total sales are $10000 Average sales are $2500.00 4th return value

Suggest some other features you think could be useful to

Question Suggest some other features you think could be useful to help the user track the revision history of English words. Describe your proposed solution.  So basically I’ve created a program to add words into a history.txt file. So every time I add a new word into the history.txt file, it will always add a revision number beside it which will be printed as {apple:1} and every time I add an existing word to it, it will display as {apple:2}. These numbers are known as the revision number. However, I’ve been tasked to suggest some other features that might be useful in helping me to track the revision history of English words. Are there other better ways to track it beside putting in revision numbers of timing.

What is the correct way to code a list in

Question What is the correct way to code a list in python involving all 12 months of the year so it prints like: /> Month 1 is January Month 2 is February

Prompt the user to enter five numbers, being five people’s

Question Prompt the user to enter five numbers, being five people’s weights. Store the numbers in an array of doubles. Output the array’s numbers on one line, each number followed by one space. (2 pts) Ex:

Only do feature 4. src=”/qa/attachment/9516078/” alt=”Screen Shot 2019-08-25 at 3.56.17

Question Only do feature 4. src=”/qa/attachment/9516078/” alt=”Screen Shot 2019-08-25 at 3.56.17 PM.png” /> Attachment 1 Attachment 2 Attachment 3 Attachment 4 ATTACHMENT PREVIEW Download attachment Screen Shot 2019-08-25 at 3.56.03 PM.png Calculating height and distance of objects The basis for this app is the idea that by using the height of the phone off the ground (or the user’s height as a proxy for this) and the angle (beta) of the phone to either the base or apex (alpha) of an object, we should be able to compute the height of (and distance to) the object in question. You can assume the person and the object being measured are at right-angles to the ground, and the person and the object are on flat level ground. A simple application of trigonometry (refer to the resources section) can be used to determine the distance to the object (D) using the angle to the base of the object (B) along with the height of the camera (H1). The distance to the building (d) and the angle to the apex of the person object can be used, along with the camera height (M) to determine the height of the building being measured (h2). mm Angles obtained from the phone using device orientation When using absolute device orientation (AbsoluteDrientationSensor) there are four values that you have access to: x, y. z and w; where xvalue represents the forwards- backwards tilt as rotation quatem ions of the phone. We’ve done the math for you in the sensor test app. so you have the euler values (in degrees) as alpha, beta, and gamma. Feel free to use the calculation or to improve on it for accuracy. You an observe these values on the team phone using the ENG1003 Sensor Test app. For this assignment you should use the code provided through the sensor test app: hugs:f{_eng100_3.mona$hiapp_sfs_enmrte§tf ATTACHMENT PREVIEW Download attachment Screen Shot 2019-08-25 at 3.56.09 PM.png What you are provided with? The app skeleton can be downloaded from the ENG1003 Moodle site. The app skeleton is titled assignment1.zip. The code displays a page as shown below: Camera height Height Measurement App . Camera start/ Camera feed area stop SET BASE SET TOP CALCULATE. Height of the camera Top angle Base angle Height of the object Distance of the object Toast for error messages Cannot connect to the sensor. In the script folder, you will find camera.js file has the function initialiseCamera() to start the camera and stopCamera() to stop the camera. You will need to call these functions from their respective buttons. You do not need to understand the code written in these functions. You will write JavaScript code in HeightEstimate.js file and will need to make changes to the index.html and style.css. ATTACHMENT PREVIEW Download attachment Screen Shot 2019-08-25 at 3.56.17 PM.png What you need to do Getting started 1. As a team you should download a copy of the project skeleton and unzip this. 2. The ‘Skeleton.zip’ file contains the code of the web app. 3. You should open the entire skeleton folder in the Atom to understand the workings of the files for the assignment. 4. You should discuss within your team on the breakdown of coding features and responsibilities. It is recommended that you practice pair programming. 5. Plan to have steady progress rather than complete the assignment at one go, or to do it at the last minute. ATTACHMENT PREVIEW Download attachment Screen Shot 2019-08-25 at 3.56.23 PM.png Programming tasks The Programming component of this assignment is worth 7% of your overall unit mark. For the programming tasks, we suggest you begin by discussing how do all the features come together for the app to work before you begin coding. Feature 1: Sensing device orientation Write code to capture DeviceOrientation events and show these on the screen for the user. The important orientation component for us is the one representing tilt from front to back. Feature 2: Smoothing sensor data You may notice that the values you get from the sensors are very

The post src=”/qa/attachment/9516223/” alt=”1.PNG” />HI, This is Ruby Languages, the assignment based appeared first on Smashing Essays.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"