When the function below is called with 1 dependent and $400 as grossPay, what value is returned?

double computeWithholding (int dependents, double grossPay)

{
double withheldAmount;
if (dependents > 2)
withheldAmount = 0.15;
else if (dependents == 2)
withheldAmount = 0.18;
else if (dependnets == 1)
withheldAmount = 0.2;
else // no dependents
withheldAmount = 0.28;
withheldAmount = grossPay * withheldAmount;
return (withheldAmount);
}

a. 60.0
b. 80.0
c. 720.0
d. None of these

Answers

Answer 1

Answer:

b. 80.0

Explanation:

Given

[tex]dependent = 1[/tex]

[tex]grossPay = \$400[/tex]

Required

Determine the returned value

The following condition is true for: dependent = 1

else if (dependnets == 1)

withheldAmount = 0.2;

The returned value is calculated as:

[tex]withheldAmount = grossPay * withheldAmount;[/tex]

This gives:

[tex]withheldAmount = 400 * 0.2[/tex]

[tex]withheldAmount = 80.0[/tex]

Hence, the returned value is 80.0


Related Questions

Please Fix This For Me


print ("Please enter a number between 1 and 100")
n = input

if = n < 1 and n > 100:

if = (n // 2 == 0):
print (n, "is even")

if = (n // 3 == 0):
print (n, "is odd")

else:
print("You have not entered a number between 1 and 100.")

Answers

Answer:

The correction is as follows:

n = int(input("Please [tex]enter\ a[/tex] [tex]number\ between\ 1[/tex] and 100: "))

if n < 1 or n > 100:

   print("You [tex]have\ not[/tex] entered a [tex]number\ between\ 1[/tex] and 100.")

elif n % 2 == 0:

   print (n, "is even")

else:

   print (n, "is odd")

Explanation:

See attachment for explanation

Which Fiber implementation is often referred to as Fiber To The Premises (FTTP)? Check all that apply.

Answers

Answer:

FFTH Fiber to the home, FFTB Fiber to the building.

Which function deletes the first occurence of 3 in a list named listB ?
listB.clear(3)
listB(3)
listB delete(3)
listB.remove(3) ​

Answers

Answer:

[tex]listB.remove(3)[/tex]

Explanation:

Given

Options A to D

Required

Which deletes the first occurrence of 3

The options show that the question is to be answered using the knowledge of Python.

So, we analyze each of the options using Python syntax

(a) listB.clear(3)

In python, clear() is used to delete all elements of a list, and it does not take any argument i.e. nothing will be written in the bracket.

Hence, (a) is incorrect

(b) listB(3)

The above instruction has no meaning in Python

(c) listB delete(3)

The above instruction as written is an invalid syntax because of the space between listB and delete.

Also, it is an invalid syntax because lists in Python do not have the delete attribute

[tex](d)\ listB.remove(3)[/tex]

This removes the first occurrence of 3

Answer: listB delete(3)

Explanation: got it right on edgen

Describe and evaluate the working memory model of memory (16 marks)​

Answers

Answer: The working memory model is a cognitive model of short term memory comprised of three main components; the central executive, the visuo-spatial sketchpad and the phonological loop. ... they suggests the components of working memory all have limited capacity.

One view of intrusion detection systems is that they should be of value to an analyst trying to disprove that an intrusion has taken place. Insurance companies and lawyers, for example, would find such evidence invaluable in assessing liability. Consider the following scenario. A system has both classified and unclassified documents in it. Someone is accused of using a word processing program to save an unclassified copy of a classified document. Discuss if, and how, each of the three forms of intrusion detection mechanisms could be used to disprove this accusation.

Answers

Answer:

What kind off question is this wich programm do u use?

What is artificial Intelligence ?

Answers

Answer:

Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen. 'Strong' AI is usually labelled as artificial general intelligence (AGI) while attempts to emulate 'natural' intelligence have been called artificial biological intelligence (ABI). Leading AI textbooks define the field as the study of "intelligent agents": any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals.Colloquially, the term "artificial intelligence" is often used to describe machines that mimic "cognitive" functions that humans associate with the human mind, such as "learning" and "problem solving".

As machines become increasingly capable, tasks considered to require "intelligence" are often removed from the definition of AI, a phenomenon known as the AI effect.A quip in Tesler's Theorem says "AI is whatever hasn't been done yet." For instance, optical character recognition is frequently excluded from things considered to be AI,having become a routine technology. Modern machine capabilities generally classified as AI include successfully understanding human speech,]competing at the highest level in strategic game systems (such as chess and Go), and also imperfect-information games like poker,[11] self-driving cars, intelligent routing in content delivery networks, and military simulations.

Artificial intelligence was founded as an academic discipline in 1955, and in the years since has experienced several waves of optimism,followed by disappointment and the loss of funding (known as an "AI winter") followed by new approaches, success and renewed funding.[ After AlphaGo successfully defeated a professional Go player in 2015, artificial intelligence once again attracted widespread global attention.For most of its history, AI research has been divided into sub-fields that often fail to communicate with each other. These sub-fields are based on technical considerations, such as particular goals (e.g. "robotics" or "machine learning"),the use of particular tools ("logic" or artificial neural networks), or deep philosophical differences. Sub-fields have also been based on social factors (particular institutions or the work of particular researchers

Explanation:

Hopefully u will satisfy with my answer of ur question..!!

Please Mark on brainleast please..!!

Have a nice day ahead dear..!!

Answer:

Uhm

Explanation:

What the other person said.

Peter is explaining the steps to create a fire effect in an image to his class. Help Peter pick the correct word to complete the explanation.
After your text is created, duplicate the layer so that you have two versions. Next, apply a number of blank
options to the duplicated text layer.

Answers

Answer:

The answer would be "Blending"

Explanation:

I took the test and checked over my answers

What is one advantage of using the Option Group Control for data validation? It works best with fields that use the date data type. It alerts the user when the database is about to close. It applies to numeric fields only, eliminating text errors. The data entry is restricted to specific fields, reducing errors.

Answers

Answer:

The Data Entry is Restricted to Specific Fields, Reducing Errors

Explanation:

Answer:

D

Explanation:

edge2021

A real estate office handles 50 apartment units. When the rent is $600 per month, all the units are occupied. However, for each $40 increase in rent, one unit becomes vacant. Each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximise the profit?

What is the code for Python?

Answers

Answer:

452

Explanation:

Earth, Wind & Fire were NOT known for combining many different styles of music together.Required to answer. Single choice.
(1 Point)

True

False

Answers

Answer:

false

Explanation:

Cause I don't believe you can't use earth, wind,and fire to create music.

**PLEASE AN IPO CHART AND A C++ PROGRAM FOR EACH QUESTION**
20. When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2 / 12 5 0.6%. The first month’s interest on $1,000 is 1000 3 0.006 5 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 2 6 5 19. This means after making the first payment, the loan amount is 1, 000 2 19 5 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 3 0.006 5 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 2 5.89 5 19.11 and the remain- ing balance after the second payment is 981 2 19.11 5 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then out- puts the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first month’s interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)

28. (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit?

Write a program that prompts the user to enter:

a. The total number of units.

b. The rent to occupy all the units.

c. The increase in rent that results in a vacant unit.

d. Amount to maintain a rented unit.

The program then outputs the number of units to be rented to maximize the profit.

30. Let n be an integer. The value of the expression lim (1 1 1 ) is n→` n written as e. This number e appears in many places in mathematics. For example, it appears in the formula A 5 Pert to compute the total mount accumulated when the interest is compounded continuously. It also appears in problems relating to exponential growth and decay. It is known that e is an irrational number. The value of e to nine decimal places is e 5 2.718281827. Write a program that computes the value n of the expression lim (1 1 1 ) between certain values of n and then n→` n compare the values with e. For example, you can compute the values of the expression between 100 and 10,000 with an increment of 100, or between 1,000 and 1,000,000 with an increment of 1,000.

Answers

answer is b

rtyujhygtrcdxrtgyhgtfr

ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP​

Answers

Answer:

13.c

14.d

15.b

16.a

17.c

Explanation:

please brainleist please ☺️♨️

What are the advantages and disadvantages of the lenses used on cameras in capturing black and white film?

Answers

The lenses that are used on cameras in capturing black and white film are vital for creating timeless pictures and highlighting the shape and pattern in the image.

Black and white photography is an image where all the colors have been removed. This can be by choice of the photographic film.

The advantage of the lenses used on cameras in capturing black and white film:

It's vital for creating a timeless picture.It highlights form, shape, and pattern.It's vital in distancing the content material from reality.

The disadvantage of the lenses used on cameras in capturing black and white film is that it lacks emotions which a colored photograph will have reflected.

Read related link on:

https://brainly.com/question/22250013

Advantages that can be associated with the lens of of camera that is utilized in capturing black and white film are:

It helps to give the highlight of the pattern and shape of the content.

It can be stored for longer time ( timelessness).

disadvantages that can be associated with the lens of of camera that is utilized in capturing black and white film is that it doesn't portray emotions.

Black and white photography can be regarded as one that doesn't contain variety of color.

It is a photography that doesn't portray an emotion, emotions in this sense means color, which serves a disdvantage.

We can conclude that this type of photography give room fir a picture that can remain for long time, it's timeless and this serve as one of the advantage.

Learn more at:

https://brainly.com/question/20176933?referrer=searchResults

Do you use commas or periods in Terms Of Conditions?


For example,

in the following terms of conditions should be a comma or a period?

- Professionalism is required, (or period)

- You may not breach this document, (or period)

Furthermore, if a period is used, is the rest of the contract useless?

Answers

Answer:

yes u should use a period

Explanation:

Suppose you are given a relation R with four attributes ABCD. For each of the following sets of FDs, assuming those are the only dependencies that hold for R, do the following: (a) Identify the candidate key(s) for R. (b) Identify the best normal form that R satisfies (1NF, 2NF, 3NF, or BCNF). (c) If R is not in BCNF, decompose it into a set of BCNF relations that preserve the dependencies.
1. C → D, C → A, B → C
2. B → C, D → A
3. ABC → D, D → A
4. A → B, BC → D, A → C
5. AB → C, AB → D, C → A, D → B

Answers

Solution :

1.

a). Candidate keys : [tex]$B$[/tex]

b). R is in [tex]$2F$[/tex] but not [tex]$3NF$[/tex]

c). C → [tex]$D$[/tex] and C → [tex]$A$[/tex], both causes violations of [tex]$BCNF$[/tex]. The way to obtain the join preserving decomposition is to decompose [tex]$R$[/tex] into [tex]$AC, BC$[/tex] and CD.

2.

a). Candidate keys : [tex]$BD$[/tex]

b). [tex]$R$[/tex] is in [tex]$1NF$[/tex] but not [tex]$2NF$[/tex].

c). Both B → [tex]$C$[/tex] and D → [tex]$A$[/tex] cause [tex]$BCNF$[/tex] violations. The decomposition : [tex]$AD $[/tex], [tex]$BC, BD$[/tex] is [tex]$BCNF$[/tex] and lossless and the join preserving.

3.

a). Candidate keys : [tex]$ABC, BCD$[/tex]

b). R is in [tex]$3NF$[/tex] but not [tex]$BCNF$[/tex]

c).[tex]$ABCD$[/tex] is not in [tex]$BCNF$[/tex] since D → [tex]$A$[/tex] and [tex]$D$[/tex] is not a key. But if we split up the [tex]$R$[/tex] as [tex]$AD,BCD$[/tex] therefore we cannot preserve dependency [tex]$ABC$[/tex] → D. So there is no [tex]$BCNF$[/tex] decomposition.

4.

a). Candidate keys : [tex]$A$[/tex]

b). R is in [tex]$2NF$[/tex] but not [tex]$3NF$[/tex]

c). BC → [tex]$D$[/tex] violates [tex]$BCNF$[/tex] since [tex]$BC$[/tex] does not contain the key. And we split up R as in [tex]$BCD, ABC$[/tex].

5.

a). Candidate keys : [tex]$AB, BC, CD, AD$[/tex]

b). [tex]$R$[/tex] is in [tex]$3NF$[/tex] but not [tex]$BCNF$[/tex].

c). C → [tex]$A$[/tex] and D → [tex]$B$[/tex] both causes a violations. The decomposition into [tex]$AC,BCD$[/tex] but this will not preserve [tex]$AB$[/tex] → C and [tex]$AB$[/tex] → D, and [tex]$BCD$[/tex] is still not [tex]$BCNF$[/tex] because [tex]$D$[/tex] → [tex]$B$[/tex]. So we need to decompose further into [tex]$AC,BD,CD$[/tex] However when we try to revive the lost functional dependencies by adding [tex]$ABC$[/tex] and [tex]$ABD$[/tex], we that these relations are not in [tex]$BCNF$[/tex] form. Therefore, there is no [tex]$BCNF$[/tex] decomposition.

Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?

A. tails has a value of O and heads has a value of 100
B. tails has a value of 100 and heads has a value of O
C. tails has a value of 20 and heads has a value of 20
D. tails has a value of 50 and heads has a value of 50

Answers

Answer:

Definitely D

Explanation:

When you flip a coin it’s a 50/50 chance. Meaning it’s equal.

Given that they are familiar with what the tails have a value of 50 variables stand for and heads have a value of 50, programmers will find it simpler to read and comprehend the code, hence option D is correct.

What is a combination of values of the variables?

Almost all programming languages use a similar technique for saving values in variables: we place the variable name on the left side of the equal sign (=), and the value we wish to store on the right.

Print the variables in reverse order in addition to the entered order by typing the variables backward.

In addition to printing the sequence in reverse, print the double's int casting value by placing (int) before the variable name, tails has a value of 50 and heads has a value of 50, hence option D is correct.

Learn more about variables, here:

https://brainly.com/question/18090442

#SPJ6

What is one benefit of using electronic flash cards?

Answers

Answer:

They can be searched using keywords. they may have a different alarm settings. they provide a personal organizer.

Explanation:

Hope this helped Mark BRAINLIEST!!!

Answer:

One benefit would be that you can study them anytime without losing an actual paper flash card.

Explanation:

Hope this helps!

3) Many people use the World Wide Web (Web) regularly, and search engines
provide vital access to Web resources. Textual and multimedia content is
accessible via web search engines. Informational, navigational, and
transactional intent are the three types of user intent classified for Web
searching. What is meant by navigational, informational, and transactional
search? Provide a comprehensive explanation with examples for each.

Answers

Answer: See explanation

Explanation:

Navigational search - This occurs when the user is looking for a certain website. Then the name of the website will be entered into the search bar.

Informational search - This occurs when the user wants to get a certain information. For example, if user enters "what is computer" into the search bar, different results relating to the word "computer" will be gotten.

Transactional search - This occurs when the user wants a website that is interactive it which possess more interaction. An example is when the user wants to buying something, register for something or maybe download something

The following text is encoded in rot13. "Qba'g gel gb or yvxr Wnpxvr. Gurer vf bayl bar Wnpxvr. Fghql pbzchgref vafgrnq." - Wnpxvr Puna Decode it, and paste the decoded text here: * How can I decide rot13

Answers

Answer: "Don't try to be like Jackie. There is only one Jackie. Study computers instead." - Jackie Chan

Explanation:

the more you take the more you lose ​

Answers

.....................

Now you are ready to implement a spell checker by using or quadratic. Given a document, your program should output all of the correctly spelled words, labeled as such, and all of the misspelled words. For each misspelled word you should provide a list of candidate corrections from the dictionary, that can be formed by applying one of the following rules to the misspelled word:
a) Adding one character in any possible position
b) Removing one character from the word
c) Swapping adjacent characters in the word
Your program should run from the command line as follows:
% ./spell_check
You will be provided with a small document named document1_short.txt, document_1.txt,
and a dictionary file with approximately 370k words named wordsEnglish.txt.
As an example, your spell checker should correct the following mistakes.
deciive -> decisive (Case A)
deciasion -> decision (Case B)
ocunry -> counry (Case C)
//spell_check.cc file
#include "quadratic_probing.h"
#include
#include
#include
using namespace std;
int testSpellingWrapper(int argument_count, char** argument_list) {
const string document_filename(argument_list[1]);
const string dictionary_filename(argument_list[2]);
// Call functions implementing the assignment requirements.
// HashTableDouble dictionary = MakeDictionary(dictionary_filename);
// SpellChecker(dictionary, document_filename);
return 0;
}
// Sample main for program spell_check.
// WE WILL NOT USE YOUR MAIN IN TESTING. DO NOT CODE FUNCTIONALITY INTO THE
// MAIN. WE WILL DIRECTLY CALL testSpellingWrapper. ALL FUNCTIONALITY SHOULD BE
// THERE. This main is only here for your own testing purposes.
int main(int argc, char** argv) {
if (argc != 3) {
cout << "Usage: " << argv[0] << " "
<< endl;
return 0;
}
testSpellingWrapper(argc, argv);
return 0;
}

//quadratic_probing.h file
#ifndef QUADRATIC_PROBING_H
#define QUADRATIC_PROBING_H
#include
#include
#include
namespace {
// Internal method to test if a positive number is prime.
bool IsPrime(size_t n) {
if( n == 2 || n == 3 )
return true;
if( n == 1 || n % 2 == 0 )
return false;
for( int i = 3; i * i <= n; i += 2 )
if( n % i == 0 )
return false;
return true;
}
// Internal method to return a prime number at least as large as n.
int NextPrime(size_t n) {
if (n % 2 == 0)
++n;
while (!IsPrime(n)) n += 2;
return n;
}
} // namespace
// Quadratic probing implementation.
template
class HashTable {
public:
enum EntryType {ACTIVE, EMPTY, DELETED};
explicit HashTable(size_t size = 101) : array_(NextPrime(size))
{ MakeEmpty(); }
bool Contains(const HashedObj & x) const {
return IsActive(FindPos(x));
}
void MakeEmpty() {
current_size_ = 0;
for (auto &entry : array_)
entry.info_ = EMPTY;
}
bool Insert(const HashedObj & x) {
// Insert x as active
size_t current_pos = FindPos(x);
if (IsActive(current_pos))
return false;
array_[current_pos].element_ = x;
array_[current_pos].info_ = ACTIVE;
// Rehash; see Section 5.5
if (++current_size_ > array_.size() / 2)
Rehash();
return true;
}
bool Insert(HashedObj && x) {
// Insert x as active
size_t current_pos = FindPos(x);
if (IsActive(current_pos))
return false;
array_[current_pos] = std::move(x);
array_[current_pos].info_ = ACTIVE;
// Rehash; see Section 5.5
if (++current_size_ > array_.size() / 2)
Rehash();
return true;
}
bool Remove(const HashedObj & x) {
size_t current_pos = FindPos(x);
if (!IsActive(current_pos))
return false;
array_[current_pos].info_ = DELETED;
return true;
}
private:
struct HashEntry {
HashedObj element_;
EntryType info_;
HashEntry(const HashedObj& e = HashedObj{}, EntryType i = EMPTY)
:element_{e}, info_{i} { }
HashEntry(HashedObj && e, EntryType i = EMPTY)
:element_{std::move(e)}, info_{ i } {}
};
std::vector array_;
size_t current_size_;
bool IsActive(size_t current_pos) const
{ return array_[current_pos].info_ == ACTIVE; }
size_t FindPos(const HashedObj & x) const {
size_t offset = 1;
size_t current_pos = InternalHash(x);
while (array_[current_pos].info_ != EMPTY &&
array_[current_pos].element_ != x) {
current_pos += offset; // Compute ith probe.
offset += 2;
if (current_pos >= array_.size())
current_pos -= array_.size();
}
return current_pos;
}
void Rehash() {
std::vector old_array = array_;
// Create new double-sized, empty table.
array_.resize(NextPrime(2 * old_array.size()));
for (auto & entry : array_)
entry.info_ = EMPTY;
// Copy table over.
current_size_ = 0;
for (auto & entry :old_array)
if (entry.info_ == ACTIVE)
Insert(std::move(entry.element_));
}
size_t InternalHash(const HashedObj & x) const {
static std::hash hf;
return hf(x) % array_.size( );
}
};
#endif // QUADRATIC_PROBING_H

Answers

Answer:

Sorry po idont know po ehhh sorry

Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 30 the output is: -15 -5 5 15 25

Answers

Answer:

Explanation:

The following program is written in Python. It asks the user for two number inputs. Then it creates a loop that prints the first number and continues incrementing it by 10 until it is no longer less than the second number that was passed as an input by the user.

number1 = int(input("Enter number 1: "))

number2 = int(input("Enter number 2: "))

while number1 < number2:

   print(number1)

   number1 += 10

What is computer? Give short answer for this ​

Answers

Answer:

electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program.

Explanation:

..

what can a user modify on a business card using the Edit Business card in the dialog box?​

Answers

Answer: layout,image,font,background color,

Write a program that asks the user to enter their yearly income. The program should display the user's tax bracket according to the following guidelines: Income below $50,000: Tax Bracket 1 Income of $50,000 - $99,999.99: Tax Bracket 2 Income of $100,000 or above: Tax Bracket 3 The program should then output the amount of federal taxes they will have to pay given that the Federal Tax Rate is 15% (for all tax brackets).

Answers

Answer:

Explanation:

The following Python code asks the user for their yearly income as an input, saves it into a variable called income. Then it analyzes that value and outputs their correct Tax Bracket using IF statements. Then it calculates the amount of tax they must pay and outputs that value.

income = input("Enter your yearly income: ")

if int(income) < 50000:

   print("You are in Tax Bracket 1")

elif (int(income) >= 50000) and (int(income) <= 99999.99):

   print("You are in Tax Bracket 2")

else:

   print("You are in Tax Bracket 3")

tax = int(income) * 0.15

print("You need to pay a total of $" + str(tax) + " in income tax")

The process of converting an input file (stream of characters) into an understandable format is called syntax analysis.

a. True
b. False

Answers

Answer:

The given statement is "True".

Explanation:

The framework for considering a string of characters, throughout the basic language, database management system, or DS by formal grammatical codes or syntax, is considered as a Syntax analysis.During a lexical analysis stage, everything just accepts or considers the tokens created as an input as well as creates a parse tree as an output or outcome.

Thus the above is the correct response.

63. Name the 4 main lights & and their primary purpose.

Answers

I don’t know this !!

The hostel in which you plan to spend the night tonight offers very interesting rates, as long as you do not arrive too late. Housekeeping finishes preparing rooms by noon, and the sooner guests arrive after noon, the less they have to pay. You are trying to build a C program that calculates your price to pay based on your arrival time. Your program will read an integer (between 0 and 12) indicating the number of hours past noon of your arrival. For example, 0 indicates a noon arrival, 1 a 1pm arrival, 12 a midnight arrival, etc. The base price is 10 dollars, and 5 dollars are added for every hour after noon. Thankfully the total is capped at 53 dollars, so you'll never have to pay more than that. Your program should print the price (an integer) you have to pay, given the input arrival time.

Answers

Answer:

Answered below

Explanation:

// Python implementation

incrementAmount = 5

basePrice = 10

price = 0

arrivalHour = int(input("Enter arrival hour 0-12: ")

if arrivalHour < 0 or arrivalHour > 12:

print ("Invalid hour")

if arrivalHour == 0:

price = basePrice

else:

price = arrivalHour * incrementAmount

totalPrice = price + basePrice

if totalPrice > 53:

totalPrice = 53

print ("Your bill is $totalPrice")

Arrange the given binary numbers in increasing order of their decimal equivalent. 110111 101101 110010 111110 ​

Answers

Answer:

101101 <  110010<110111 <111110

Explanation:

We will convert binary number to their decimal equivalent

110111  - (1 × 2⁵) + (1 × 2⁴) + (0 × 2³) + (1 × 2²) + (1 × 2¹) + (1 × 2⁰) = (55)₁₀

101101 - (1 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (1 × 2²) + (0 × 2¹) + (1 × 2⁰) = (45)₁₀

110010 - (1 × 2⁵) + (1 × 2⁴) + (0 × 2³) + (0 × 2²) + (1 × 2¹) + (0 × 2⁰) = (50)₁₀

111110 - (1 × 2⁵) + (1 × 2⁴) + (1 × 2³) + (1 × 2²) + (1 × 2¹) + (0 × 2⁰) = (62)₁₀

Now, arranging the given binary numbers in increasing order of their decimal equivalent , we get -

101101 <  110010<110111 <111110

Answer: 101101<110010<110111<111011<111110

                  used a binary translator.

Explanation:

metals are the best materials for making shoes. what do you think?​

Answers

Answer: Leather is flexible yet durable, as sturdy as it is supple. Fabric is also quite commonly used for making shoes. .

Other Questions
name the following polynomial expression.[tex] {4x}^{2} + x - 3 [/tex] Need help ASAP with 1-3 Determine the figures speech used in the following expressions pamue has been teaching here since stone age. Rank these transition metal ions in order of decreasing number of unpaired electrons. If two ions have the same number of unpaired electronsFe^3 , Mn^4+ , V3+ , Ni^2+ , Cu^+ Please help Best answer gets BRAINLIEST A skier waits at the top of a 11.7m hill. He then skis down the slope at an angle of 27 degrees above horizontal. What will his velocity be at the bottom of the hill? Show work Nick and Jay emptied their piggy banks and found they had $11, all in nickels and dimes. How many of each did they have if they had 156 coins?Please show work, thank you! Convert this into Standard form 2x^2+5x-18x-2 How did changes in farming,such as the use of a seed drill and crop rotations,help to stimulate the industrial revolution???? Q5) Write C++ program to find the summation of sines of the even values that can be divided by 7 between -170 and -137. A pair of shoes that normally sells for $85.00 goes on sale for 35% off. Season thinks that the sale price should be $50.00 but Melanie disagrees and says the price should be $55.25. Aiyanna says they are both wrong and decides the price should be $29.75. Who is correct and why? Find the length of each side of its base of a square pyramid of volume 98 cm3 and height 6 cm.a)5 cm Please give me the correct answer.Only answer if you're very good at English.Please don't put a link to a website.Sweet T continues on his journey and starts to feel a little more confident.He says,"This isn't so bad.I bet just around this corner there's a way out of this place." Please help!! I will give brainliest!Q: Is the direction important when calculating speed? Explain. What was the dominant age group of the thousands of miners who flocked to Californiathe Gold Rush? A piece of art weighing 30 pounds is hung from two wires as shown below. Each wire is supporting half of the weight of the picture. However, since the wires extend out at an angle, they are also imparting force towards the left and right. Therefore, the force on each wire is greater than 15 pounds. Look at the diagram above with the vectors. Use trigonometry to find||ux||and||vx||. ||ux||=pounds ||vx||=pounds What is the total force (in pounds) exerted on each wire? ||u||=pounds ||v||=pounds You have data for Regions, Products, and Customers. Which option on a Pivot Table will you find in the fieldslist?Select an answer:RegionsRowsValuesFilters On a coordinate plane, how are the locations of the points (-1, 6) and (-1, -6) related? A. locations unrelated B. reflection across both axes C. reflection across the x-axis D. reflection across the y-axis In general, the time it takes from when in interstellar cloud fragment first begins collapsing until it gives birth to a main-sequence star is In general, the time it takes from when in interstellar cloud fragment first begins collapsing until it gives birth to a main-sequence star is shorter for less massive stars. about the same for all stars. dependent on the rotation rate of the star. longer for less massive stars. Avis purchased a Jeep for $12,480. Her down payment was $3,600. She paid the remainder in 48 monthly payments. Write a numerical expression that represents her monthly payment. * Population size can be regulated by a combination of reasons. Any cause for population growth to decrease is called a___________________. Question 9 options: carrying capacity density- dependent factor population growth factor limiting factor