1answer.
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
AveGali [126]
3 years ago
12

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.0.
Computers and Technology
1 answer:
jeka943 years ago
5 0
Say a house is about 300000 and last month he/she lowers it not enough money so you basically just divide the 2 numbers left like a mix lmk if you need more help
You might be interested in
Given a one-dimensional array named yearlySalesTotals that contains decimal values, code the first line of a for statement that
VashaNatasha [74]

Answer:

for(int i =0; i<yearlySalesTotals.length;i++)

Explanation:

The for statement in has the syntax as given above, it has an int variable indicating the starting index, then a boolen condition ensuring that you don't get out of the array bounds, and an increment operator.

See below a complete program in java that will output all elements of the array  assuming the array yearlySalesTotals contains only ten elements and all indexes has been assigned values.

public class ANot {

   public static void main(String[] args) {

double []yearlySalesTotals = new double[10];

for(int i = 0; i<yearlySalesTotals.length; i++){

   System.out.println(yearlySalesTotals[i]);

   }

}

}

7 0
3 years ago
See the lseek_example.c file. Modify the lseek_example.c, such that it reads from an input file (named "start.txt") and will pri
andre [41]

Answer:

See the lseek_example.c file. Modify the lseek_example.c, such that it reads from an input file (named "start.txt") and will print to an output file (named "end.txt") every (1+3*i)th character, starting from the 1st character in the input file. In other words, it will print the 1st character, then skip 2 characters and print the 4th one, then skip 2 characters and print the 7th one, and so on.

For instance, for input file:

ABCDEFGHIJKLM

It will output:

ADGJM

Iseek_example.c file contant:

// C program to read nth byte of a file and

// copy it to another file using lseek

#include

#include

#include

#include

void func(char arr[], int n)

{

// Open the file for READ only.

int f_read = open("start.txt", O_RDONLY);

// Open the file for WRITE and READ only.

int f_write = open("end.txt", O_WRONLY);

int count = 0;

while (read(f_read, arr, 1))

{

// to write the 1st byte of the input file in

// the output file

if (count < n)

{

// SEEK_CUR specifies that

// the offset provided is relative to the

// current file position

lseek (f_read, n, SEEK_CUR);

write (f_write, arr, 1);

count = n;

}

// After the nth byte (now taking the alternate

// nth byte)

else

{

count = (2*n);

lseek(f_read, count, SEEK_CUR);

write(f_write, arr, 1);

}

}

close(f_write);

close(f_read);

}

// Driver code

int main()

{

char arr[100];

int n;

n = 5;

// Calling for the function

func(arr, n);

return 0;

}

Explanation:

3 0
3 years ago
Which symbols identify cpt codes that are also listed in specific cpt appendices?
aksik [14]

The symbols which  identify CPT codes that exist also listed in specific CPT appendices are plus, forbidden, star.

<h3>What is CPT codes?</h3>

Current Procedural Terminology (CPT) exists as a medical code set that is used to report medical, surgical, and diagnostic techniques and services to entities such as physicians, health insurance companies, and accreditation institutions.

Appendix N exists a list of CPT codes that do not emerge in their respective numerical sequence in the listing in the CPT book. The sequenced codes will be located close but not in proper numerical sequence. This appendix is included to avoid deleting and including to renumber a series of codes to fit in a new one.

The Current Procedural Terminology (CPT®) codes offer doctors and health care professionals a uniform terminology for coding medical services and techniques to streamline reporting, and increase accuracy and efficiency.

Hence, The symbols which  identify CPT codes that exist also listed in specific CPT appendices are plus, forbidden, star.

To learn more about CPT codes refer to:

brainly.com/question/12596394

#SPJ4

8 0
2 years ago
Can a user account be used to log in to the system before its password is set?
-Dominant- [34]
No it can not it needs to have a password to log in.
6 0
3 years ago
Read 2 more answers
Design a program that asks the user to enter a month (in numeric form), a day, and a two-digit year. The program should then det
Irina-Kira [14]

Answer:

#include <iostream>

using namespace std;

int main()

{

   int mt, day, yr, magic;

   cout << "Enter a month(numeric form)"<< endl;

   cin >> mt;

   cout << "please enter a day"<<endl;

   cin >> day;

   cout << "please enter a year"<< endl;

   cin >> yr;

   // Input Validation

   if (mt<1 || mt>12){

       cout<<"Invalid Month";

   }

   else if (day<1||day>31){

       cout<<"Invalid Day";

   }

   else if (yr>99||yr<0){

       cout<<"Invalid Year";

   }

   else{

   // Calculates magic

   magic = (mt * day);

   if (magic == yr)

   {

   cout << "it is a magic year"<<endl;;

   }

   else

   cout << "It is not a magic year" << endl;

   }

   return 0;

}

Explanation:

Using C++ we request the user to enter values for Month, day and year (two digits). We carry out input validation to ensure the user enters a valid month, day and year. Using if/elseif/if statements we ensure the conditions given in the question.

7 0
3 years ago
Other questions:
  • A drowsy cat spots a flowerpot that sails first up and then down past an open window. The pot is in view for a total of 0.50 sec
    13·1 answer
  • How does a light bulb work
    7·2 answers
  • Which of the following is not something that consumers need to pay attention to order to make rational choices
    6·2 answers
  • 6. Consider a circle of diameter d cm.
    11·1 answer
  • Suppose that a program asks a user to enter multiple integers, either positive or negative, to do some calculation. The data ent
    13·1 answer
  • In a systems development life cycle (SDLC) model, the purpose of the _____ is to create a physical model that will satisfy all d
    10·1 answer
  • Identify the correct answer in each item. Write your answer on the blank provided before
    13·1 answer
  • How is the pattern matching done in the SQL?
    5·2 answers
  • Why not to use settimeout in angular.
    13·1 answer
  • When did Microsoft released MS-Word 2016? S When did Microsoft released MS - Word 2016​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!