Create pseudocode for a program for Stumpy's Cell Phone Company that accepts the number of text messages for a customer for one month and displays the bill for text messages.
If the user enters a negative number the program should display an error message.
If the user enters number greater than or equal to 0 your program should call a function that given the number of text messages, returns the amount to be charged. The program will then display a message stating the amount of the monthly bill for text messages.
Stumpy's charges customers a basic rate of $5 per month for their text message service. Additional rates are as follows:
The first 60 messages per month, regardless of message length, are included in the basic bill.
An additional five cents is charged for each text message after the 60th message, up to and including 180 messages.
An additional 10 cents is charged for each text message after the 180th message.
Federal, state, and local taxes add a total of 12 percent to each bill.
In: Computer Science
What is the Schwarzschild radius of the black hole at the center of the Milky Way? What
is the ratio of the gravitational acceleration the Sun feels from this black hole to the
gravitational acceleration the Sun feels from the entire Milky Way? Comment on the
gravitational significance the black hole has on our Solar System.
In: Physics
Instructions: Need proper and complete answer (containing minimum 500 words) for following question related to 'Principles of Marketing'. Please include an additional listing of any references or supplemental materials used. Feel free to use whichever reference style you prefer. If you reference information from the Web or from any other sources (e.g., journal articles, library books, textbook), make sure that you do not copy the material verbatim (i.e., copied exactly from the original word for word). You should paraphrase (i.e., write in your own words) the information.
Question: Analyze a consumer or business product or service. To what segment(s) of consumers/businesses do you think it is targeted? Discuss the positioning of the product or service relative to competitors. How successful or unsuccessful has this positioning been? Would you suggest an alternative positioning or a repositioning? Why or why not? Identify any niches that might lend themselves to new products or services in the same category..
In: Operations Management
You have been hired by a small company to install a simple LAN for their 18 Windows computers. Develop a simple LAN and determine the total cost; that is, select the cables, hubs/switches, and NICs and price them. Assume that the company has no network today and that the office is small enough that you don’t need to worry about cable length. (15).
In: Computer Science
At December 31, 2020, the available-for-sale debt portfolio for
Crane, Inc. is as follows.
Security |
Cost |
Fair Value |
Unrealized |
||||
A | $17,600 | $16,000 | $(1,600 | ) | |||
B | 11,100 | 15,500 | 4,400 | ||||
C | 24,000 | 25,800 | 1,800 | ||||
Total | $52,700 | $57,300 | 4,600 | ||||
Previous fair value adjustment balance—Dr. | 500 | ||||||
Fair value adjustment—Dr. | $4,100 |
On January 20, 2021, Crane, Inc. sold security A for $16,100. The
sale proceeds are net of brokerage fees.
Crane, Inc. reports net income in 2020 of $124,000 and in 2021 of $147,000. Total holding gains (including any realized holding gain or loss) equal $43,000 in 2021.
Prepare a statement of comprehensive income for 2020, starting with net income.
CRANE, INC |
||||
Comprehensive IncomeHolding GainsHolding LossNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainUnrealized Holding Loss |
$ |
|||
Comprehensive IncomeHolding GainsHolding LossNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainUnrealized Holding Loss |
||||
Comprehensive IncomeHolding GainsHolding LossNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainUnrealized Holding Loss |
||||
Comprehensive IncomeHolding GainsHolding LossNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainUnrealized Holding Loss |
$ |
Prepare a statement of comprehensive income for 2021, starting with net income.
CRANE, INC
Statement of Comprehensive Income
For the Year
Ended December 31, 2021For the Month Ended December 31,
2021December 31, 2021
Comprehensive IncomeNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainsUnrealized Holding Loss
$
Comprehensive IncomeNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainsUnrealized Holding Loss
Comprehensive IncomeNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainsUnrealized Holding Loss
$
Add Less: Comprehensive IncomeNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainsUnrealized Holding Loss
Comprehensive IncomeNet IncomeOther Comprehensive IncomeReclassification Adjustment for Gain Included in Net IncomeReclassification Adjustment for Loss Included in Net IncomeUnrealized Holding GainsUnrealized Holding Loss
$
Current Period Other Comprehensive income accumulated Other Comprehensive IncomeBeginning Balance, January 1, 2021Ending Balance, December 31, 2021Amount Reclassified from Accumulated Other Comprehensive IncomeUnrealized Holding Gains
Beginning Balance, January 1, 2021Amount Reclassified from Accumulated Other Comprehensive IncomeCurrent Period Other Comprehensive incomeEnding Balance, December 31, 2021Accumulated Other Comprehensive IncomeUnrealized Holding Gains
$
Accumulated Other Comprehensive IncomeCurrent Period Other Comprehensive income amount Reclassified from Accumulated Other Comprehensive IncomeEnding Balance, December 31, 2021Beginning Balance, January 1, 2021Unrealized Holding Gains
$
Beginning Balance, January 1, 2021Unrealized Holding GainsAccumulated Other Comprehensive IncomeAmount Reclassified from Accumulated Other Comprehensive IncomeEnding Balance, December 31, 2021Current Period Other Comprehensive income
Accumulated Other Comprehensive IncomeEnding Balance, December 31, 2021Unrealized Holding GainsAmount Reclassified from Accumulated Other Comprehensive IncomeBeginning Balance, January 1, 2021Current Period Other Comprehensive income
Amount Reclassified from Accumulated Other Comprehensive IncomeEnding Balance, December 31, 2021Current Period Other Comprehensive income accumulated Other Comprehensive IncomeBeginning Balance, January 1, 2021Unrealized Holding Gains
$
In: Accounting
Design a program using pseudocode to produce a report showing recommended sale prices. The program should ask the user to enter the item number, last sale date, number of items on hand, current date, item cost and the regular selling price. The program will output the item number, last sale date, days elapsed, number of item on hand, item cost, regular selling price and sales price. If the item has not been placed on sale for the last 30 days, the discount is 10% If the item has not been placed on sale for the last 31 to 60 days, the discount is 20% If the item has not been placed on sale for the last 61 to 90 days, the discount is 40% If the item has not been placed on sale in over 90 days, the discount is 50%
how can answer this question in the easiest way and simple way possible
In: Computer Science
PART 1- Identifications. Briefly identify 8 of the following items. Your answers should be no more than 1 or 2 sentences. (2 points each)
Charles V
Martin Luther
James Cook
Nicolaus Copernicus
Council of Trent
Treaty of Tordesillas
absolutism
Montezuma
Tenochtitlan
treasure fleet
Nzinga of Ndongo
Songhay
Phillis Wheatley
Middle Passage
In: Psychology
In: Accounting
Write a program in PERL language that does the following:
a. Generates 100 random numbers between -17 and +31.
b. Calculates the average of the square of the generated numbers using a function that you implement.
c. Calculates the number of numbers greater than the average using a function that you implement.
d. Prints the results single line separated by spaces using a print function that makes call to the previously defined functions in parts b) and c).
In: Computer Science
do an essay
Apply two sociology concepts to a topic related to your major
Provide two examples
my major is bussinesss managment and marketing
In: Psychology
A boy standing on top of a building throws a small ball from a
height of H1 = 45.0 m. (See figure.) The ball leaves
with a speed of 26.9 m/s, at an angle of 61.0 degrees from the
horizontal, and lands on a building with a height of H2
= 12.0 m. Calculate for how long the ball is in the air. (Neglect
air friction, and use g = 9.81 m/s2.)
In: Physics
Write a java program that prompts user to enter his name and KSU ID using format name-ID as one value, his gender as char, and his GPA out of 5. Then your program should do the following:
Print whether the ID is valid or not, where a valid ID should be
of length = 9, and should start with 4.
Calculate the GPA out of 100 which is calculated as follows GPA/5 *
100.
Update the name after converting the first letter to
uppercase.
Print “Mr.” before name if the gender is ‘M’, and print “Mrs.”
before name if the gender is ‘F’. Otherwise print message “invalid
gender” without name and GPA. Then print the new GPA.
In: Computer Science
Demand for oil changes at Garcia's Garage has been as follows:
Month |
Number of Oil Changes |
January |
33 |
February |
53 |
March |
56 |
April |
58 |
May |
69 |
June |
46 |
July |
62 |
August |
69 |
a. Use simple linear regression analysis to develop a forecasting model for monthly demand. In this application, the dependent variable, Y, is monthly demand and the independent variable, X, is the month. For January, let X=1; for February, let X=2; and so on.
The forecasting model is given by the equation Y =4 0.86 +3.31X.
(Enter your responses rounded to two decimal places.)
b. Use the model to forecast demand for September, October, and November. Here,
X=9, 10, and 11, respectively. (Enter your responses rounded to two decimal places.)
Month |
Forecast for the number of Oil Changes |
September |
|
October |
|
November |
In: Operations Management
Outcomes: • Write a Java program that implements linked list algorithms
can u also show thee testing code
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is the starter code
import java.util.NoSuchElementException;
// Put your prologue comments here
public class LinkedAlgorithms {
private class Node {
private String data;
private Node next;
private Node(String data)
{
this.data =
data;
this.next =
null;
}
}
public Node head;
public int numItems;
/**
* Creates the empty list.
*/
public LinkedAlgorithms() {
}
/**
* Creates a list containing all the elements of the
passed array.
* {@code data[0]} will be the first element of the
list, {@code data[1]} will
* be the second element of the list, and so on.
*
* @param data The array of values
* @throws NullPointerException - data is null
*/
public LinkedAlgorithms(String[] data) {
}
/**
* Constructs a deep copy of the linked list {@code
original}
*
* @param original The list to be copied
* @throws NullPointerException - original is
null
*/
public LinkedAlgorithms(LinkedAlgorithms original)
{
}
/**
* Returns array with all the elements.
*
* @return Array containing all elements.
*/
public String[] toArray() {
return null;
}
/**
* Formats the elements in the list using leading and
ending brackets (i.e., []), with the values comma separated.
* There will be one space between each of these but
none at the beginning nor at the end.
* Some examples:
* if the list is empty, toString() gives []
* if the list has these three elements in this order:
"hello", "world", "everyone", then the result should be
* [hello, world, everyone]
*/
@Override
public String toString() {
return null;
}
/**
* Returns the number of items in the list
*
* @return Number of items in the list
*/
public int size() {
return 0;
}
/**
* Determines if two lists contain exactly the same
values, in exactly the same
* order.
*
* @return {@code true} if and only if obj is an list
that is equivalent to the
* incoming list.
*/
public boolean equalsLinkedList(LinkedAlgorithms obj)
{
return false;
}
/**
* Determines if {@code key} is in the linked
list.
*
* @param key The value to be found
* @return true if and only if {@code key} is in the
list
*/
public boolean contains(String key) {
return false;
}
/**
* Determines the index of {@code key}. -1 is returned
if the value is not
* present in the linked list. If {@code key} is
present present more than once,
* the first index is returned.
*
* @param key The value to be found
* @return The index of the {@code key}
*/
public int find(String key) {
return 0;
}
/**
* Returns the value of the first element of the
list.
*
* @return The first element of the list.
* @throws NoSuchElementException the list is
empty
*/
public String getFirst() {
return null;
}
/**
* Returns the value of the last element of the
list.
*
* @return The last element of the list.
* @throws NoSuchElementException the list is
empty
*/
public String getLast() {
return null;
}
/**
* Returns the value of the {@code ith} element of the
list (0 based).
*
* @param i The target index
* @return The value of the ith element of the
list.
* @throws IndexOutOfBoundsException {@code i} is
illegal
*/
public String getAt(int i) {
return null;
}
/**
* Adds {@code data} to the beginning of the list. All
other values in the list
* remain but they are "shifted to the right."
*
* @param data The value to add to the list
*/
public void insertFirst(String data) {
}
/**
* Adds {@code data} to the end of the list. All other
values in the list remain
* in their current positions.
*
* @param data The value to add to the list
*/
public void insertLast(String data) {
}
/**
* Adds data to a specific spot in the list. The values
in the list remain
* intact but {@code data} is inserted in the list at
position {@code i}. When
* {@code i=0}, the result is the same as {@code
insertFirst}.
*
* @param i The target index
* @param data The value to add to the list
* @throws IndexOutOfBoundsException {@code i} is
illegal
*/
public void insertAt(int i, String data) {
}
/**
* Adds {@code newData} the position immediately
preceding {@code existingData}.
* If the {@code existingData} appears multiple times,
only the first one is
* used.
*
* @param newData The value to add to the list
* @param existingData The value used to control where
insertion is to take
* place
* @throws NoSuchElementException {@code existingData}
is not in the list
*/
public void insertBefore(String newData, String
existingData) {
}
/**
* Adds {@code newData} the position immediately after
{@code existingData}. If
* the {@code existingData} appears multiple times,
only the first one is used.
*
* @param newData The value to add to the list
* @param existingData The value used to control where
insertion is to take
* place
* @throws NoSuchElementException {@code existingData}
is not in the list
*/
public void insertAfter(String newData, String
existingData) {
}
/**
* Removes the first element of the list. The remaining
elements are kept in
* their existing order.
*
* @return The value removed from the list
* @throws NoSuchElementException if the list is
empty.
*/
public String removeFirst() {
return null;
}
/**
* Removes the last element of the list. The remaining
elements are kept in
* their existing order.
*
* @return The value removed from the list
* @throws NoSuchElementException if the list is
empty.
*/
public String removeLast() {
return null;
}
/**
* Removes the ith element of the list. The remaining
elements are kept in their
* existing order.
*
* @param i The target index
* @return The value removed from the list
* @throws IndexOutOfBoundsException i does not
represent a legal index
*/
public String removeAt(int i) {
return null;
}
/**
* Removes the first occurrence of data in the linked
list.
*
* @param data The value to be removed.
* @return {@code true} if and only if {@code data} was
removed
*/
public boolean removeFirstOccurrenceOf(String data)
{
return false;
}
/**
* Removes the all occurrence of {@code data} in the
linked list.
*
* @param data The value to be removed.
* @return The number of times {@code data} was
removed
*/
public int removeAllOccurrencesOf(String data) {
return 0;
}
/**
* Reverses the elements in the incoming linked
list.
*/
public void reverse() {
}
/**
* Puts all the elements in the list to
uppercase.
*/
public void toUpper() {
}
/**
* Returns the concatenation of all strings, from left
to right. No extra spaces
* are inserted.
*
* @return Concatenation of all string in the
list
*/
public String getConcatenation() {
return null;
}
/**
* Returns the alphabetically last value in the
list.
*
* @return The alphabetically last value in the
list
* @throws NoSuchElementException list is empty
*/
public String getAlphabeticallyLast() {
return null;
}
/**
* Returns the index where the alphabetically last
value value resides. If this
* value appears multiple times, the first occurrence
is used.
*
* @return Index value of where maximum value
resides
* @throws NoSuchElementException list is empty
*/
public int indexOfAlphabeticallyLast() {
return 0;
}
/*
* Determines if the two list contain elements that
have exactly the same
* value, with the same list sizes, but with the
elements perhaps in different order.
*
* @returns true only if the two lists are permutations
of one another.
*/
public boolean anagrams(LinkedAlgorithms other)
{
return false;
}
public static void main(String[] args) {
String[] items = { "hello", "world"
};
LinkedAlgorithms LL1 = new
LinkedAlgorithms();
LinkedAlgorithms LL2 = new
LinkedAlgorithms(items);
LinkedAlgorithms LL3 = new
LinkedAlgorithms(LL1);
}
}
In: Computer Science
In response to a growing awareness of gluten allergies, Carla Vista Bakery tried using gluten-free flour in its three most popular cookies. After several attempts and a lot of inedible cookies, the company perfected new recipes that yield delicious gluten-free cookies. The costs of producing a batch of 100 cookies are as follows:
Chocolate Chip |
Sugar |
Oatmeal Raisin |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Sales price | $129.20 | $111.00 | $131.60 | |||||||||
Variable cost | $80 | $63 | $89 | |||||||||
Fixed cost | 19 | 16 | 19 | |||||||||
Total cost | 99.00 | 79.00 | 108.00 | |||||||||
Gross profit | $30.20 | $32.00 | $23.60 | |||||||||
Pounds of flour | 2 | 2 | 1.5 |
Assuming no raw material constraints and unlimited demand for cookies, calculate contribution margin per batch for Chocolate Chip, Sugar, Oatmeal Raisin cookies. (Round answers to 2 decimal places, e.g. 52.75.)
Cookies | Contribution Margin | |
---|---|---|
Chocolate Chip | $Enter a dollar amount rounded to 2 decimal places | |
Sugar | $Enter a dollar amount rounded to 2 decimal places | |
Oatmeal Raisin | $Enter a dollar amount rounded to 2 decimal places |
What type of cookie would maximize the company’s contribution
margin?
Select a type of cookie SugarChocolate ChipOatmeal Raisin |
Assume that, based on typical customer demand, Carla Vista will sell 12,700 batches of chocolate chip cookies, 8,700 batches of sugar cookies, and 10,700 batches of oatmeal raisin cookies. What will the company’s contribution margin be?
The company’s contribution margin | $Enter the company’s contribution margin in dollars |
Carla Vista’s flour supplier has announced a shortage of
gluten-free flour. As a result, Carla Vista will only be able to
purchase 41,450 pounds of flour.
How many batches of each type of cookie should the company
bake?
Batches | ||
---|---|---|
Chocolate Chip | Enter a number of batches | |
Sugar | Enter a number of batches | |
Oatmeal Raisin | Enter a number of batches |
What will the company’s contribution margin be?
The company’s contribution margin | $Enter the company’s contribution margin in dollars |
If Carla Vista uses gluten-free flour in other products, will the allocation you recommend in part (c) change?
Select an option NoYes |
In: Operations Management