The price of an item you want to buy is given in dollars and cents. You pay for it in cash by giving the clerk d dollars and c cents. Write specifications for a function that computes the change, if any, that you should receive. Include a statement of purpose, the preconditions and postconditions, and a description of the arguments.

Answers

Answer 1

Answer:

Get the actual price of the item and convert it to cents, also get and convert the amount paid to cents.

subtract the actual price of the item from the paid amount ( which is in cents), if the result is greater than zero, covert the result back to dollars and output the result.

Explanation:

The program converts the actual price of the item and the amount paid to cents (where a dollar is equal to 100 cents). The variables are subtracted to get the change to be refunded, the result is converted back to dollars as the actual change to be paid.


Related Questions

Which sort tool will reorganize the numbers so they are listed from largest to smallest? A.sort ascending B.custom sort-background color C.sort descending D.custom sort-font color

Answers

Answer:

C Sort Descending

Explanation:

100% on edg

Answer:

C.) Sort descending

Explanation:

got it correct on edge!!!

You can find synonyms and disciplinary jargon in the ______, _______, and ______ in your search results. You can then use these as keywords in additional searches.

Answers

Answer:

1. Title

2. Abstract

3. Subject Headings

Explanation:

To carry out a project or research survey, a researcher needs an appropriate title that satisfies the technical keywords relating to the content and expected outcome of the research.

Hence, in this case, to find an appropriate title for a research survey "You can find synonyms and disciplinary jargon in the TITLE, ABSTRACT, and SUBJECT HEADINGS in your search results. you can then use these as keywords in additional searches."

. When attempting to minimize memory usage, the most efficient way to do group processing when using the MEANS procedure is to use: A. the BY statement. B. GROUPBY with the NOTSORTED specification. C. the CLASS statement. D. multiple WHERE statements.

Answers

Answer:

A. the BY statement.

Explanation:

The BY statement aids the procedure MEANS to develop the tree for the current BY group only, thereby analyze the stats, and clean the tree prior to the start and development of the next BY group.

However, without the BY statement, procedure MEANS develops its AVL tree for both the whole file and all sector estimates crossings established in CLASS.

Hence, in this case, the correct answer is the BY Statement.

und bedding
200
Question 2
A Column is 0.5 m diameter and carries a load of 600 Kofker from the controid by
0.1. calculate the extemes of stresses.
Question 3​

Answers

Answer:

The stress for tensile edge is 1.834 MPa

The stress for compressive edge is -7.945 MPa

Explanation:

Given that,

Force = 600 kN

Diameter = 0.5 m

[tex]y=\dfrac{D}{2}=\dfrac{0.5}{2}=0.25\ m[/tex]

Distance from the centroid to the edge of the column x= 0.1  m

We know that,

Stress for column :

The stress is equal to the sum of banding stress and direct compressive stress.

[tex]\sigma=\sigma_{b}+(-\sigma_{d})[/tex]

The value of binding stress will be positive for tensile and negative for compressive stress.

We need to calculate the stress for tensile edge,

Using formula of stress for tensile edge,

[tex]\sigma=\dfrac{Fxy}{I}-\dfrac{F}{A}[/tex]

Put the value into the formula

[tex]\sigma=\dfrac{600\times1000\times0.1\times0.25}{\pi\times\dfrac{(0.5)^4}{64}}-\dfrac{600\times1000}{\pi\times\dfrac{(0.5)^2}{4}}[/tex]

[tex]\sigma=1.834\ MPa[/tex]

We need to calculate the stress for compressive edge,

Using formula of stress for compressive edge,

[tex]\sigma=-\dfrac{Fxy}{I}-\dfrac{F}{A}[/tex]

Put the value into the formula

[tex]\sigma=-\dfrac{600\times1000\times0.1\times0.25}{\pi\times\dfrac{(0.5)^4}{64}}-\dfrac{600\times1000}{\pi\times\dfrac{(0.5)^2}{4}}[/tex]

[tex]\sigma=-7.945\ MPa[/tex]

Hence, The stress for tensile edge is 1.834 MPa

The stress for compressive edge is -7.945 MPa

Which option is used to ensure the integrity and authenticity of a Word document but requires additional services to be available on the internal network? digital encryption digital signature password protection protected view

Answers

Answer:

Digital signature.

Explanation:

Digital signature is used to ensure the integrity and authenticity of a Word document but requires additional services to be available on the internal network.

This is important as it makes sure that the file is authentic and not malware.

Answer:

digital signature

Explanation:

got it right on edge

please help me please help me​

Answers

Explanation:

in C++

#include<iostream.h>

#using namespace std;

main()

{

int array[8];

int oddSum=0;

for(int i=0; i<8;i++)

{

if(array[i]%2==1)

{

oddSum=oddSum+array[i];

}

else()

{ //do nothing }

}

cout<<"The sum of odd numbers are:"<<oddSum;

getch();

return 0;

}

write a valid HTML + Python page that will count numbered from 1 to 1,000,000?​

Answers

Answer:

I remember before the corona virus we used to do math at school

Which of the following is one of the first steps in implementing a comprehensive security program? Setting up a Guest account Creating hierarchical directory structures Setting a strong password policy Establishing forests

Answers

Answer:

Setting a strong password policy

Explanation:

In implementing a comprehensive security program, one of the first steps would be to set up a strong password policy.

It is important to understand what the company is trying to protect from third parties.

Setting up a password policy is going to increase the security of the system through the use of strong passwords.

1. What is the primary tool that Windows Server administrators use to create and manage user accounts

Answers

Answer to you questions is: Active Directory

What are some of the issues that create conflict in the future and why?

Answers

111111111111111111111

When adding color to an html document, you can use the color name or
the color number
Choose
False
True

Answers

Answer:

True

Explanation:

Think about the ways new communication technologies can make certain tasks easier for
users with disabilities. For two categories of individuals with disabilities (e.g., the blind,
deaf, restricted mobility, etc.), explain one way that everyday technology helps them.
Describe the specific way the technology improves their lives.

Answers

Technology gives them the ability to do things that they normally couldn’t do. Like deaf people could get a cochlear implant to make them hear, people without a leg can get a prothetic leg to help them walk. Even something as simple of being colorblind, there are glasses to help them see color. It’s amazing.

Which functions are part of the array module? Select 2 options. Assume you have already entered these
lines of code.
import array
arr = array array('b',[5, 1, 2, 7, 6])
arr.sort()
arr.search(3)
O arr.index(3)
arr.append(3)
arr.find(3)

Answers

Answer:

arr.index(3)

arr.append(3)

Explanation:

Edge2020

This can change the fit of your respirator. A) A mustacheB) A beardC) Weight gainD) All of the above

Answers

Answer:

D) All of the above

Explanation:

"Fit testing" is important when it comes to respirators. This ensures the respiratory safety of the wearer. When it comes to tight-fitting respirators, a good fit is very important. This means that the respirator will seal to the skin, so it is important not to have any facial hair like beards, mustache, or stubble. OHSA requires that the person should be clean-shaven.

Fit testing is also done annually in order to adjust to any physical changes such as weight gain or dental work. So, all of the choices above can change the fit of the respirator.

Cards in a pack are black or red in the ratio
black: red = 2 : 5
What fraction of the cards are red?​

Answers

Answer:

[tex]Fraction = \frac{5}{7}[/tex]

Explanation:

Given

[tex]black: red = 2 : 5[/tex]

Required

Determine the fraction of red

First, we calculate the total ratio.

[tex]Total = black + red[/tex]

Substitute values for black and red

[tex]Total = 2 + 5[/tex]

[tex]Total = 7[/tex]

The fraction of red is then calculated as:

[tex]Fraction = \frac{Red}{Total}[/tex]

[tex]Fraction = \frac{5}{7}[/tex]

During Globalization 2.0, there was a huge overinvestment in: Question 10 options: 1) telecommunications infrastructure 2) computing hardware 3) robots 4) machinery

Answers

Answer: 1) telecommunications infrastructure

Explanation:

Globalization 2.0 came after the second world war at a time where the world was yarning for opportunities that would connect it better.

They turned to telecommunications infrastructure and invested heavily into it to carry messages from one part of the globe to the other. This led to a fall in telecommunications cost and a rise in new technologies like the mobile phone.

Pls due soon



Directions: Answer these questions as you navigate through the modules of the Computer Basics Tutorial.



Define computer:

What are the functions of a computer?

Name three ways in which you can use a computer?

Define hardware:

Define software:

Name at least four different types of computers.

What are the two main styles that personal computers come in?

What is the purpose of the operating system?

Name the three most common operating systems for PCs.

What does GUI stand for and what is its purpose?

In what year did Microsoft create Windows?

What is MAC OS?

What is Linux?

Name three operating systems designed specifically for mobile devices?

What is an App?

What are apps for mobile devices called?

Name six types of desktop applications?

Name three examples of mobile apps (does not have to come from the tutorial)?

What is the Cloud?

Name three services that use the Cloud?

Give at least one reason why someone would want to use the Cloud.

Give three examples of web apps?

What are the basic parts of a desktop computer and what purpose does each one serve?

Name two common mouse alternatives?

Name at least five peripherals?

What is the CPU/Processor of a computer?

How is the processor’s speed measured?

What is the motherboard and what purpose does it serve?

What does the power supply unit do?

What is RAM and what is it measured in?

What is a hard drive and what purpose does it serve?

What is the purpose of each of the following:

expansion card

video card

sound card

network card

Bluetooth card

What is a laptop computer and how is it different from a desktop computer?

What is a mobile device? Give three examples.

What is a smartphone?

What are 3G, 4G, and LTEs?

How is a tablet computer different from a laptop? What are some advantages and disadvantages of using a tablet?

What is the desktop and what features does it usually contain?

What is the purpose of using folders on the computer?

What is the purpose of the Recycle Bin?

Name three things you need to access the Internet?

Describe each of the following common types of Inter services:

Dial-up

DSL

Cable

Satellite

3G and 4G

What are some things you should consider when you are choosing and Internet Service Provider?

What is a modem?

What is a router?

What is a network card?

What does Wi-Fi stand for?

What is a web browser and what is its main job?

What is the World Wide Web?

Name three different types of web browsers?

Explain the following security terms:

SSID:

Encryption password

Encryption

Passphrase

What steps do you need to take to keep your computer healthy?

How do you deal with spilled liquid on your keyboard?

How do you clean the mouse and the monitor?

What is malware and what does it include? What is the best way to guard against malware?

In what ways can you back up your computer?

Name several techniques to maintain your computer?

Define computer ergonomics.

What are four general tips to keep in mind when troubleshooting your computer?

What is a flash drive?

What is Cloud storage?

What is the proper way to safely remove a flash drive from the computer?

Name three free popular services that allow you to save data to the Cloud?

What are accessibility features? Name three?

Name three assistive technology devices and what they are used for?

Answers

Answer:

Software for personal computers is typically developed and distributed independently from the hardware or operating system manufacturers. Many personal computer users no longer need to write their own programs to make any use of a personal computer, although end-user programming is still feasible. This contrasts with mobile systems, where software is often only available through a manufacturer-supported channel. And end-user program development may be discouraged by lack of support by the manufacturer.

Explanation:

What is the proper order for the fetch-execute cycle?

A) fetch, decode, execute, store
B) store, fetch, execute, decode
C) fetch, execute, decode, store
D) fetch, store, decode, execute

Answers

Answer:

A. fetch, decode,execute, store

The fetch-execute cycle is a computer's fundamental operation cycle. The correct option is A.

What is a fetch-execute cycle?

The fetch-execute cycle is a computer's fundamental operation (instruction) cycle (also known as the fetch decode execute cycle). The computer obtains a software instruction from memory during the fetch execute cycle. It then establishes and executes the activities necessary for that instruction.

The proper order for the fetch-execute cycle, decode, execute, store.

Hence, the correct option is A.

Learn more about the fetch-execute cycle:

https://brainly.com/question/17412694

#SPJ2

What will be the output of the following code?
#include
void fun(int);
int main()
{
int a=3;
fun(a);
return 0;
}
void fun(int n)
{
if(n>0)
{
fun(--n);
printf("\n%d",n);
fun(--n);
}
}

Answers

Answer:

The output is 0, 1, 2, 0

Explanation:

The C source code defines a void function called 'fun'. The fun function is a recursive function that is used to recursively count through a number excluding the last number, the function accepts an integer value to be counted.

Answer:

to be honest I don't know

where do you access to header section in excel?​

Answers

Answer:

On the Insert tab, in the Text group, click Header & Footer. Excel displays the worksheet in Page Layout view. Click the left, center, or right header or footer text box at the top or the bottom of the worksheet page.

Explanation:

Debug the code in the main method of this class, which is intended to initialize an array named arr to hold 3 ints, fill this with 3 inputs from the user, then print the contents of the array in order followed by the sum.
Here's the code that needs to be fixed:

import java.util.Scanner;

public class U6_L1_Activity_One{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] arr = new int(3);
arr[1] = scan.nextInt();
arr[2] = scan.nextInt();
arr[3] = scan.nextInt;
System.out.println("Contents: " + arr{1} + " " + arr{2} + " " + arr{3});
System.out.println("Sum: " + arr[1] + arr[2] + arr[3]);
}
}

Answers

Answer:

import java.util.Scanner;

public class U6_L1_Activity_One{

 public static void main(String[] args){

   Scanner scan = new Scanner(System.in);

   int[] arr = new int[4];

   arr[1] = scan.nextInt();

   arr[2] = scan.nextInt();

   arr[3] = scan.nextInt();

   System.out.println("Contents: " + arr[1] + " " + arr[2] + " " + arr[3]);

   int Sum = (1 + 2 + 3);

   System.out.println("Sum: " + Sum);

 }

}

Explanation:

Debugging a code involves locating and correcting the errors in the code.

The errors in the code are:

Invalid array declaration and indexingImproper usage of the scanner objectIncorrect syntax of sum

So, the corrected code segment is as follows:

        int [] arr = new int[3];

       arr[0] = scan.nextInt();

       arr[1] = scan.nextInt();

       arr[2] = scan.nextInt();

       System.out.println("Contents: " + arr[0] + " " + arr[1] + " " + arr[2]);

       System.out.println("Sum: " + (arr[0] + arr[1] + arr[2]));

Read more about debugging at:

https://brainly.com/question/18844825

11) A single inheritance model means: * A) A class can only have one parent class (superclass) B) A class can only have one child class (subclass) C) A class cannot have a parent class (superclass) D) A class cannot have a child class (subclass) E) A class can have multiple parent classes (superclasses)

Answers

Answer:

The correct answer is Option A (A class can only have one parent class (superclass))

Explanation:

The inheritance model is a computer program used in Javascript. This model aimed to make code that has been programmed already still relevant to be used again at any time minimizing errors associated with typing a new code. Inheritance  makes the attributes of a particular class valid while still possible to use the attributes of another class.

A child class (subclass) inherits from the parent class (superclass). So, it is a single inheritance once the child class (subclass) inherits from a single parent class (superclass) creating a subclass. A parent class (superclass) is the class that gives its attributes for inheritance.

In a binary search, which formula is used to find the index of the middle value?


middle = (first + last) * 2


middle = (first + last) // 2


middle = first + last // 2


middle = first + last * 2

Answers

Answer:

middle = (first + last) // 2

Explanation:

In binary search algorithm, the searching begins at the middle index and if the value searched for is not the middle element, it progresses to the left or right of the element depending on the size of the value compared to the middle element.

To determine the middle index, you add the first index to the last index and divide the result by 2. By doing this you eliminate half of the elements you have to search through.

Subsequent divisions eventually gets you to the element you're searching for in lesser time compared to if you had to search through every element in the array.

please help me please help me.​

Answers

Answer:

Earth. Wind. Water. Fire

Explanation:

These are elements right or is it metal plastics and all the other object materials sorry if this question isn't what you asked for just that I don't get the question

your teacher has accidentally put the wrong names of the students on her excel science results sheet. What method can be used to change the names to the correct names why is it better to do these result sheet on the computer rather than on paper answer by brainly​

Answers

Answer:

Explanation:

Excel has a built-in function that allows you to type in a word, letter, or number and it will automatically find every one of that entry and replace it with whatever you want. To do this you simply click on Home > Find & Select > Replace and fill out the information. Once the info is completed click Replace All. This shows exactly why it is way better to do these result sheets on the computer as opposed to on a piece of paper, it allows you to automate everything and fix multiple mistakes with a simple button click.

How many total cells can a worksheet window contain? If columns are labelled alphabetically, what will be the label for the cell in row 1, column 16,384?

Answers

Answer:

[tex]5815 {20 \frac{55}{ \\ hii \: \\ \\ } }^{?} [/tex]

Where are functions stored?

in the development environment or on the Internet

in the development environment or in an individual program

in an individual program or on a computer’s hard drive

in an individual program or in a lookup table

Answers

Answer:

In the development environment or in an individual program

Explanation:

A function in programming is a code or lines of code that perform a particular function.

They are stored in the development environment or in an individual program so they can be called up and execute when needed.

What is the top anime shows? <3

Answers

Answer:

This is personally based on my opinion.

My top 10 favorites

Toradora

Darling in the franxx

Lucky Star

My Melody

Death note

Attack on titans

One piece

The Promise neverland

Kaguya-sama: love is war

Black cover

Answer:

This is just my opinions as of rn

Explanation:

Attack on Titan

Hunter x Hunter

Saiki K

Haikyu!!

The Promised Neverland

Toilet Bound Hanako-kun (The manga is amazing.)

Ouran High School Host Club

Given

Yuri on Ice!!!

Hetalia

some close runner ups were

Toradora

A Silent Voice

Anohana

Kakegurui

and Black Butler

The other anime i've seen were either movies and shows I watched as a kid or I just couldn't think of them right away

1) If a robot has a 3 bit instruction set and needs 20 instructions to reach its destination, how many bits of memory are required?


2) A robot driven by a raspberry Pi has 256MB of memory. The robot has a 3 bit instruction set. What is the maximum number of instructions that can be loaded into the robot?

3) Imagine that the robot with 256MB of memory needs 500,000 4-bit instructions to perform a job. Would it be possible to load in all the 500,000 instructions into the memory of the robot?

Answers

Answer:

Explanat500,000ion:

the carbon fixation reaction converts?​

Answers

Answer:

Photosynthetic carbon fixation converts light energy into chemical energy. Photosynthesis reduces the carbon in carbon dioxide from OSC = +4 to OSC = +1 in the terminal carbon in glyceraldehyde-3-phosphate, the feedstock for simple sugars, amino acids, and lipids.

Other Questions
In Miami, Florida, there is an 80% probability of extreme high winds on a specific day. How was this probability most likely determined "Are you tired of the same old boring breakfast? Do you wish you had more energy throughout the day? Then you need to try the all new BoostBars! Guaranteed to put a pep in your step, and a smile on your face!"Group of answer choicesEthosLogosPathos Hal wants to buy a cake for his friend's birthday. When he went to the bakery, he found that price was marked down by 10%. If Hal pays $30, what was the original price?Help plzz Is the source a trustworthy source to use in a research paper? Why or why not? In your answer, make sure to clearly describe the standards you are using to evaluate it. Why have you determined that it is or is not a trustworthy one to use? Title: "Why Mesopotamia Was More Advanced than Ancient Egypt." Author: John Jones, ninth-grade student at William Penn Middle School. Location: My History Learning, a student-run website. pls help due in 15 mins a)F E60. The temperature of source and sink of cannot engine are 400Kand 300K respectively. What is its efficiency?h) 75%c) 33.3% d) 25% HELP ONLY ANSWER IF YOU ARE TODALLY SURE I WILL GIVE BRAINLEST TO WHOEVER IS RIGHT WORTH 18 POINTS DON'T JUST ANSWER BUT READ IT THEN ASWESR Which equation can be used to calculate the area of the shaded triangle in the figure below? A rectangle is shown with a width of 6 ft and a length of 16 ft. There is a diagonal line through the rectangle, and the bottom half is shaded in grey. 1. 2(16 6) = 192 square feet 2. 2(16 + 6) = 44 square feet 3. 1 over 2.(16 6) = 48 square feet 4. 1 over 2.(6 + 16) = 11 square feet 11. 3/4 of 12=12. 6/7 of 4915. 2/3x2716. 3/8 x 16 Anybody.....tell me about French Revolution? HELP!There are 5 clues, what country are they describing? if 12% = 54what does 100% = Brainliest to first correct answer :) What is the purpose of a forgery? PLEASE HELP WILL MARK BRAINLIEST!! I put math because I dont know what this goes under but PLEASE HELP simplify: 2(3x-2)-(2x-4) guys im freaking out right now help meeee please HELP FAST I WILL MARK BRAINLIEST FOR FIRST ANSWER What was one aspect of life for most enslaved people during the 1800s?They were not allowed to have children.Their marriages were not considered legal.They were not allowed to practice a religion.0 Their education was limited to learning how to read. Task 4Shelly started driving her own car for Uber. Shecharges a flat fee of $5.00 and $0.50 for everykilometer.Q: How many kilometers were travelled if shecharges $32.50? Which statement explains what Manifest Destiny is? WILL GIVE BRAILIEST IF YOU ANSWER!! The MTC Theater holds 250 people, and last nights performance sold out! Students under the age of 16 paid $2.50 per ticket, while everyone else paid $4.00 per ticket. Last nights show brought in $910.Write a system to represent the given equations.How many adult tickets were sold?How many under the age of 16 tickets sold Ernie and Lori are playing a game. The table shows their scores for the 5 times they have played the game. Which statement is true?