Questions
Suppose 8 bits are used to store signed integers. The largest value that can be represented...

  1. Suppose 8 bits are used to store signed integers. The largest value that can be represented is 0111 1111. What is the decimal value of that number?

127

128

177

178

  1. 2.Suppose a 6-bit storage unit is used to store unsigned integers. What is the binary representation of the decimal number 67?

01000011

1000011

010000

000011

In: Computer Science

Using HTML and JAVASCRIPT Create a Content area on the main entry page will include inputs...

Using HTML and JAVASCRIPT

Create a Content area on the main entry page will include inputs for customer entry for the following:

  • Entry field (with labeling) for the Customer's name
  • Entry field (with labeling) for the Customer's email address
  • Entry field (with labeling) for which room the customer is planning on painting
  • Entry field (with labeling) for the width of the room
  • Entry field (with labeling) for the length of the room
  • Entry field (with labeling) using a colour box so the customer can pick the colour they want to paint the room
  • A selection list so the user can decide whether they want standard paint (24.99 per can) or premium paint (39.99 per can)
  • A button to create a quote for the customer

On the next page create content on the quote page (a separate page) will include the following:

  • Customer's contact information (name and email)
  • Room to be painted
  • Square footage of the room based on length and width
  • A colour swatch showing the colour the customer picked
  • The number of paint cans that will be needed to paint the room based on each can cover approximately 400 sq ft of wall space (rounded up)
  • The final price for the number of cans based on which type of paint was selected plus 13% HST

Data from the entry page MUST be pulled from local storage in order to fill in quote page and ES6 concepts used where applicable.

In: Computer Science

Explain in your own word about the "bwdist" function in MATLAB. Compare the different between Euclidean,...

Explain in your own word about the "bwdist" function in MATLAB.

Compare the different between Euclidean, City block, Chessboard, and Quasi-Euclidean in "bwdist" function

In: Computer Science

JAVA Write a program that prompts the user to enter a matrix number of rows and...

JAVA

Write a program that prompts the user to enter a matrix number of rows and number of columns.
In main method create 2D matrix based on the number of rows and columns input by the user; randomly fills the matrix with 0s and 1s and prints it.
Create method sumColumns that takes only the matrix you created in main method and find the sum of each column with even index and prints it. Do not use global variables.

Here is a sample run of the program:

Enter number of rows and columns 4 6
1 0 0 0 1 0
0 0 0 0 1 0
1 0 1 0 1 1
1 1 1 1 0 1
3 2 3
Process finished with exit code 0

In: Computer Science

JAVA posted multiple times Write a program that prompts the user to enter a matrix number...

JAVA posted multiple times

Write a program that prompts the user to enter a matrix number of rows and number of columns.
In main method create 2D matrix based on the number of rows and columns input by the user; randomly fills the matrix with 0s and 1s and prints it.
Create method sumColumns that takes only the matrix you created in main method and find the sum of each column with even index and prints it. Do not use global variables.

Here is a sample run of the program:

Enter number of rows and columns 4 6
1 0 0 0 1 0
0 0 0 0 1 0
1 0 1 0 1 1
1 1 1 1 0 1
3 2 3
Process finished with exit code 0

In: Computer Science

JAVA posted multiple times Write a program that prompts the user to enter a matrix number...

JAVA posted multiple times

Write a program that prompts the user to enter a matrix number of rows and number of columns.
In main method create 2D matrix based on the number of rows and columns input by the user; randomly fills the matrix with 0s and 1s and prints it.
Create method sumColumns that takes only the matrix you created in main method and find the sum of each column with even index and prints it. Do not use global variables.

Here is a sample run of the program:

Enter number of rows and columns 4 6
1 0 0 0 1 0
0 0 0 0 1 0
1 0 1 0 1 1
1 1 1 1 0 1
3 2 3
Process finished with exit code 0

In: Computer Science

By using the following: -Python(you can use the filter function) -Data class -Functional Programming(don't use while...

By using the following:

-Python(you can use the filter function)

-Data class

-Functional Programming(don't use while & for loops but you can use if statement)

Write a program that reads table with given columns from input stream. Columns are name, amount, debt.(ONLY 3 columns, the person's first name and surname is under the column 'name'). Then filter the table (condition: debt is equal to 0). After that increase debt by 14% then output the results.

-----------------------------------------

Example.

User's Input:

3 - No. of People

Sam Hill 411889 36881

Angela Smith 121877 0

Nicholas Ander 783887 591951


Expected Output:

Sam Hill  411889 52371.02
Nicholas Ander 783887 840570.42

-----------------------------------------------------

NOTE: Don't use dataframes(panda,etc) and the code should enable user to input their details.

**Please also explain your answer*

In: Computer Science

New Century Wellness Group offers a holistic approach to health care with an emphasis on preventive...

New Century Wellness Group offers a holistic approach to health care with an emphasis on preventive medicine as well as traditional medical care. In your role as an IT consultant, you will help New Century develop and plan the implementation of a new information system.

Phase 5

Background

You began the systems analysis phase by conducting interviews, reviewing existing reports, and observing office operations.

The New Century medical team performs services and medical procedures, which are coded according to the American Medical Association’s Current Procedure Terminology (CPT). CPT codes consist of five numeric digits and a two-digit suffix, and most insurance payers require the codes to be included with billing information.

The new system must be able to handle the new ICD-10 procedure coding system, which has been required by the Centers for Medicare & Medicaid Services (CMS) beginning October 1, 2014. ICD-10 codes consist of seven alphanumeric characters, which can be electronically transmitted and received. New Century’s information system must interface with 25 California health insurance providers. The new system represents an opportunity for significant cost saving for New Century, and more convenience for patients, who will be able to go online to update medical information, schedule appointments, and request medical records (Future System Interface).

During your fact-finding, in addition to meeting Compliance requirements (NC3), you learned that the clinic requires various reports, as follows:

• Daily appointment list for each provider. The list shows all scheduled appointment times, patient names, and services to be performed, including the procedure code and description.

• Daily report call list, which shows the patients who are to be reminded of their next day’s appointments. The call list includes the patient name, telephone number, appointment time, and provider name.

• Weekly provider report that lists each of the providers and the weekly charges generated, plus a month-to-date (MTD) and a year-to-date (YTD) summary as well as profit distribution data for the partners.

• Monthly patient statement, which includes the statement date, head of household name and address, previous month’s balance, total household charges MTD, total payments MTD, and the current balance. The bottom section of the statement shows activity for the month in date order. For each service performed, a line shows the patient’s name, the service date, the procedure code and description, and the charge. The statement also shows the date and amount of all payments and insurance claims. When an insurance payment is received, the source and amount are noted on the form. If the claim is denied or only partially paid, a code is used to explain the reason. A running balance appears at the far right of each activity line (they are willing to accept a vertical package’s suggestions for these and any additional report recommendations will be considered as well).

• Weekly Insurance Company Report.

• Monthly Claim Status Summary.

In addition to these reports, the office staff would like automated e-mail and text messaging capability for sending reminders to patients when it is time to schedule an appointment.

Data also needs to be maintained on employers who participate in employee wellness training. This information can be used for marketing purposes throughout the year with a CRM Packaged System which you will select from those available as well.

Also, the new system needs to track employee schedules, attendance, vacation time, and paid time off as part of the Payroll application module that is currently used as a service for that requirement.

Finally, the New Wellness Training System must allow for both wellness, exercise, and nutrition training classes in multiple locations as New Century wants to be able to offer classes off-site at local businesses, schools, and other suitable locations.

Now you are ready to organize the facts and prepare a system requirements document that represents a logical model of the proposed systems. Your tools will include DFDs, a data dictionary, and process descriptions.

Tasks

Q1: Prepare a data dictionary entry and process description for one of the Wellness Training System’s functional primitives.

In: Computer Science

( C programming ) Write a program that will process an arbitrary number of grades each...

( C programming ) Write a program that will process an arbitrary number of grades each time the program is run. (Hints: sentinel-controlled iteration.) If grade >= 90, its corresponding letter grade is A. If 80 <= grade < 90, its corresponding letter grade is B. If 70 <= grade < 80, its corresponding letter grade is C. If 60 <= grade < 70, its corresponding letter grade is D. If grade < 60, its corresponding letter grade is F. (a) After get all grades, calculate average.

(b) Count the numbers of all letter grades.

(c) Display a summary of the grade results indicating the number of each letter grade and the class average.

Using the following input sequence for checking: 78 68 34 85 89 96 86 91 68 81 54

In: Computer Science

Exercise Define a function that generates a random code. The functions takes in a string colors...

Exercise Define a function that generates a random code. The functions takes in

  • a string colors whose characters represent distinct colors to choose from, and
  • a positive integer code_length representing the length of the code.

For instance, get_code('ROYGBP',4) returns a code of 4 code pegs randomly with colors chosen from 'R'ed, 'O'range, 'Y'ellow, 'G'reen, 'B'lue, and 'P'urple. One possible outcome is 'ROYY'.

Following is my python code, and I don't know how to continue, can someone help me to finished it?

And I want to know how to random the colors code length time(s) ,such as random.choice(''ROYGBP") by code length time to get particular numbers of colors, e.g.code length is 4 and 4 random colors, code length is 2 and get 2 random colors.

Thus, the hints given that''In each iteration, generate a random (integer) position in range 0 to len(colors)-1.'', I want to ask why isn't it the range from 1 to 6?

 
import random
def get_code(colors, code_length):
    code = ''
    """
    The function body will iterate code_length times.
    In each iteration, generate a random (integer) position in range 0 to len(colors)-1. 
    From color, get the character at that random position and append the character to code
    """
    colors = 'ROYGBP'
    code_length = (random.randint(1,6))
    return code

Do you mean the possible outcome?

In: Computer Science

Rewrite following Java program using use List and not arrays. public class Shoes { private String...

Rewrite following Java program using use List and not arrays.

public class Shoes {

    private String name;
    private int size;
    private String model;

    public Shoes() {
    }

    public Shoes(String name, int size, String model) {
        this.name = name;
        this.size = size;
        this.model = model;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Override
    public String toString() {
        return "name='" + name + '\'' + ", size=" + size + ", model='" + model + '\'';
    }

    public static void main(String[] args) {
        Shoes[] shoes = new Shoes[5];
        shoes[0] = new Shoes("Nike1", 9, "Nike");
        shoes[1] = new Shoes("ASICS2", 12, "ASICS");
        shoes[2] = new Shoes("Adidas8", 11, "Adidas");
        shoes[3] = new Shoes("Saucony7", 6, "Saucony");
        shoes[4] = new Shoes("Brooks5", 8, "Brooks");

        for (int i = 0; i < shoes.length; i++) {
            System.out.println(shoes[i]);
        }
    }
}

In: Computer Science

A vehicle’s VIN is very important for any and all paperwork, such as lease agreements, insurance...

A vehicle’s VIN is very important for any and all paperwork, such as lease agreements, insurance details, servicing schedule etc. However it is easy to mistype a long sequence of characters, and so we’d like to add some validation to ensure that anything entered into this field at least has the right format to be a VIN.

• A VIN is a string of exactly 17 characters

• Each character in a VIN is a digit or an uppercase letter

• A VIN can contain any of the digits 0 to 9

• A VIN can contain any uppercase letter except I, O and Q

• The 9th character of a VIN is either a digit from 0 to 9 or the letter X.

(These are all true facts about a VIN, but in real VINs the 9th character acts a check digit and must satisfy an equation involving the other 16 characters.).

Now, the code needed to be written in SQLITE to check a 17-digit VIN can be very cumbersome. So instead, we’ll use a simplified version of a VIN for this project, which is defined as follows:

• A VIN is a string of exactly 5 characters

• Each character in a VIN is a digit or an uppercase letter

• A VIN can contain any of the digits 0 to 9 6

• A VIN can contain any uppercase letter except I, O and Q

• The 3rd character of a VIN is either a digit from 0 to 9 or the letter X

In: Computer Science

java programming Create a class named Money. It should have member variables for Member Variables Store...

java programming

Create a class named Money. It should have member variables for
Member Variables
Store dollars and cents as members (both should be int). They should be
accessible from only inside the class.
Methods
 Write a default constructor that sets members to 0.
 Write a two-parameter constructor that sets members to the parameter
values.
 Write get/set methods for the member variables.

 Write an override method for toString. The returned string should be
formatted as a normal money string. For example, if dollars is 2 and cents is
5 then it should return $2.05. If dollars is 3 and cents is 50 then it should
return $3.50.
 Write an override method for equals. It should return true if both the
dollars and cents are equal and false otherwise. This means you compare
the dollars in the current to the dollars in the other and you compare the
cents in one to the cents in another.

Class – Main
The main method should be in this class.
 Declare an array of Money in main. The array should have 20 elements.
 Populate the array with data from a file. Use a loop to read data from the
input file. Use the input file data given at the end of this document.
 Write a loop that will print all elements of the array on screen. You should
have read all data from the input file before doing this.
 Write a loop that will add up all the money in the array and store the total
in another Money instance. After the loop print the total money on screen
using the Money instance that has the total. You should use toString to get
the formatted money string. The total money that gets print should not
have a cents value over 99. For example, 7 dollars and 160 cents should be
8 dollars and 60 cents. You should have read all data from the input file
before doing this.
 Add two calls to the Money equals override. One to demonstrate that the
instances are equal and another to demonstrate that they are not equal.

In: Computer Science

in C++ In the main function, declare a two-dimensional matrix array 5 by 5, read data...

in C++

In the main function, declare a two-dimensional matrix array 5 by 5, read data from a file named “data.txt”. Suppose the data in the file are integers between 0 and 9. Write your main function to print out the left bottom below the diagonal of the matrix and keep the triangle shape. Note the numbers on the diagonal are not included in the output. An example is given as follows. (25 points)

Suppose the original matrix is

1 2 3 4 5

1 2 3 4 5

1 2 3 4 5

1 2 3 4 5

1 2 3 4 5

The output should be like as follows.

1

1 2

1 2 3

1 2 3 4

#include <iostream>

#include <iomanip>

#include <fstream>

using namespace std;

const int NUM = 5;

int main()

{

      // I - Declaring a five by five array

      /* II - Read data from data.txt and use them to create

             the matrix in the previous step*/

/* III – print out the left bottom below the diagonal of the matrix and keep the triangle shape. Note the numbers on the diagonal are not included in the output.

       read.close();

       return 0;

}

In: Computer Science

Pixel data is not necessarily arranged into a rectangular grid. E.g., a smiley face is a...

Pixel data is not necessarily arranged into a rectangular grid. E.g., a smiley face is a round image

true or false?

In: Computer Science