answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
balandron [24]
2 years ago
12

Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price,

the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.045) / 12. in coral
Engineering
1 answer:
grandymaker [24]2 years ago
6 0

Complete Question

Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.045) / 12. Ex: If the input is 200000 210000, the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $750.

Use Coral Programming Language

Answer:

// Program is written in Coral Programming Language

// Comments are used for explanatory purpose

// Program starts here

// Variable declaration

int currentprice

int prevprice

int change

float mortgage

Put "Enter current price to output" to output

currentprice = Get next input

Put "Enter last month price to output" to output

prevprice = Get next input

// Calculate Change since last month

change = currentprice - prevprice

// Calculate Monthly Mortgage

mortgage = currentprice * 0.045 / 12

// Print Results

Put "This house is $" to output

Put currentprice to output

Put "\n" to output

Put "This change is $" to output

Put change to output

Put "\n" to output

Put "This house is $" to output

Put currentprice to output

Put "since last month\n" to output

Put "This estimated monthly mortgage is $" to output

Put mortgage to output

// End of Program

You might be interested in
When should you exercise extreme caution around power lines?
Elis [28]

<em>You should take note and exercise extreme precautions when you are near power lines and consider the following: </em>

<em> </em>

<em>1. Make sure that you have a good distance away from the lines. The minimum distance you can get is 10 feet away from the lines. Be cautious as well when you see broken lines as they could still harm you and electrified you. </em>

<em>2. Do not make ladders, equipments and things around you touch the power lines as it may harm you as well. </em>

<em>3. Clear everything and ensure that no things are near you before you lift your hands and other tools.</em>

6 0
2 years ago
Poles are values of Laplace transform variable, s, that make denominator of transfer function zero. Zeros are values of Laplace
Ostrovityanka [42]

Answer:

Zero 1 = -1

Zero 2 = -3

Pole 1 = 0

Pole 2 = -2

Pole 3 = -4

Pole 4 = -6

Gain = 4

Explanation:

For any given transfer function, the general form is given as

T.F = k [N(s)] ÷ [D(s)]

where k = gain of the transfer function

N(s) is the numerator polynomial of the transfer function whose roots are the zeros of the transfer function.

D(s) is the denominator polynomial of the transfer function whose roots are the poles of the transfer function.

k [N(s)] = 4s² + 16s + 12 = 4[s² + 4s + 3]

it is evident that

Gain = k = 4

N(s) = (s² + 4s + 3) = (s² + s + 3s + 3)

= s(s + 1) + 3 (s + 1) = (s + 1)(s + 3)

The zeros are -1 and -3

D(s) = s⁴ + 12s³ + 44s² + 48s

= s(s³ + 12s² + 44s + 48)

= s(s + 2)(s + 4)(s + 6)

The roots are then, 0, -2, -4 and -6.

Hope this Helps!!!

3 0
2 years ago
A three-point bending test was performed on an aluminum oxide specimen having a circular cross section of radius 3.5 mm (0.14 in
RideAnS [48]

To resolve this problem we have,

R=3.5mm\\F_f1=950N\\L_1=50mm\\b=12mm\\L_2=40mm

F_{f2} is unknown.

With these dates we can calculate the Flexural strenght of the specimen,

\sigma{fs}=\frac{F_{f1}L}{\pi R^3}\\\sigma{fs}=\frac{(950)(50*10^{-3})}{\pi 3.5*10^{-3}}\\\sigma{fs}=352.65Mpa

After that, we can calculate the flexural strenght for the square cross section using the previously value.

\sigma{fs}=\frac{F_{f2}L}{\pi R^3}\\(352.65*10^6)=\frac{3Ff(40*10^{-3})}{2(12*10^{-10})}\\F_{f2}=\frac{352.65*10^6}{34722.22}\\F_{f2}=10156.32N\\F_{f2}=10.2kN

6 0
2 years ago
Fix the code so the program will run correctly for MAXCHEESE values of 0 to 20 (inclusive). Note that the value of MAXCHEESE is
GarryVolchara [31]

Answer:

Code fixed below using Java

Explanation:

<u>Error.java </u>

import java.util.Random;

public class Error {

   public static void main(String[] args) {

       final int MAXCHEESE = 10;

       String[] names = new String[MAXCHEESE];

       double[] prices = new double[MAXCHEESE];

       double[] amounts = new double[MAXCHEESE];

       // Three Special Cheeses

       names[0] = "Humboldt Fog";

       prices[0] = 25.00;

       names[1] = "Red Hawk";

       prices[1] = 40.50;

       names[2] = "Teleme";

       prices[2] = 17.25;

       System.out.println("We sell " + MAXCHEESE + " kind of Cheese:");

       System.out.println(names[0] + ": $" + prices[0] + " per pound");

       System.out.println(names[1] + ": $" + prices[1] + " per pound");

       System.out.println(names[2] + ": $" + prices[2] + " per pound");

       Random ranGen = new Random(100);

       // error at initialising i

       // i should be from 0 to MAXCHEESE value

       for (int i = 0; i < MAXCHEESE; i++) {

           names[i] = "Cheese Type " + (char) ('A' + i);

           prices[i] = ranGen.nextInt(1000) / 100.0;

           amounts[i] = 0;

           System.out.println(names[i] + ": $" + prices[i] + " per pound");

       }        

   }

}

7 0
2 years ago
Tech A says that as moisture levels increase in brake fluid, the boiling point of the brake fluid decreases. Tech B says that fi
dezoksy [38]

Answer: Both Technician A and B are correct.

Explanation:

Technicians A and B are both right about their diagnosis. The Society of Automotive Engineers performed extensive research on vehicle brake fluids and found that there is typically a 2% moisture content in the brake fluid after a year of operating a vehicle. And as the moisture content of the brake fluid rises, the boiling point of the brake fluid decreases as well.

4 0
2 years ago
Other questions:
  • The pressure drop across a valve through which air flows is expected to be 10 kPa. If this differential were applied to the two
    11·1 answer
  • Pam Jones worked for 41 years at the same company and had positive performance ratings and personnel records. She needed a calcu
    9·1 answer
  • (3) Calculate the heat flux through a sheet of brass 7.5 mm (0.30 in.) thick if the temperatures at the two faces are 150°Cand 5
    9·1 answer
  • Two metallic terminals protrude from a device. The terminal on the left is the positive reference for a voltage called vx (the o
    9·2 answers
  • Given a 5x5 matrix for Playfair cipher a. How many possible keys does the Playfair cipher have? Ignore the fact that some keys m
    6·1 answer
  • A spherical tank for storing gas under pressure is 25 m in diameter and is made of steel 15 mm thick. The yield point of the mat
    5·2 answers
  • NEEDS TO BE IN PYTHON:ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d910d11d12d13 . The la
    15·1 answer
  • Question 14<br> Which of these is true of a spray wash cabinet?
    6·1 answer
  • Why is it so dangerous to use a ground lift on a metal cased power tool
    6·1 answer
  • Problema sobre programacion orientada a objetos!!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!