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
Nesterboy
6 days ago
7

The dealer's cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer's

cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car.
Computers and Technology
1 answer:
zubka84 [945]6 days ago
5 0
The Python code provided defines a function named minPrice. This function prompts the user for the vehicle's list price, calculates the dealer's cost by multiplying that price by 0.85, adds $500 to that cost, and returns the resulting minimum price that the dealer will accept for the car.
You might be interested in
Here is a super challenge for you if you feel up for it. (You will need to work this out in Excel.) In 2017 the Islamic month of
8_murik_8 [892]

Response:

7/73

Clarification:

May consists of 31 days. By calculating 31 - 26, we find 5 days remaining until June. Therefore, Muslims fasted for a total of 35 days. In 2017, there were 365 days, leading to 365 - 35 = 330 days without fasting. Consequently, the fraction representing the fasting period is 35/365, which simplifies to 7/73.

4 0
29 days ago
A company operates on two types of servers: 2 large servers (L) and 4 smaller servers (S), with a combined total of 64GB RAM. Th
oksian1 [804]

Reasoning:

Let's denote the size of a large server as L and the size of a smaller server as S.

According to the data provided, we have two equations:

2L + 4S = 64.............(1)

and

L + 3S = 40...............(2)

To solve the equations, we proceed as follows:

2(2)-(1)

2L - 2L + 6S - 4S = 2*40 - 64

2S = 16

thus, S = 8..................(3), which indicates the size of the small server

Using (3) in (2) yields

L + 3(8) = 40

L = 40 - 24 = 16..............indicating the size of the large server

8 0
8 days ago
When handling project scope creep, which are two things that all parties involved need to be aware of?
zubka84 [945]

Additional resources required for the projects

Added time necessary for the project

Clarification:

In any project management scenario, there will naturally be unexpected changes and additional needs, hence to successfully complete a project, one must allocate more time and resources. It is advisable that, based on the project specifics, the end user should maintain a sufficient buffer to accommodate any variations in human resources and the extra time necessary for project completion.

When planning the project, a consideration of extra time per each task is essential.

Every task within project management is categorized under distinct scopes of work.

3 0
27 days ago
What type of operating system runs a dedicated electronic device such as a smart thermostat?
Natasha_Volkova [897]

Answer:

Typically, these operate on IOS or Android platforms. (Similar to what smartphones use. However, it’s often a simplified or modified version.)

Explanation:

Numerous small electronic gadgets, including the one mentioned, function using IOS or Android operating systems. Generally, it serves basic purposes yet is compact, quick, and user-friendly.

5 0
1 month ago
Input a number [1-50] representing the size of the shape and then a character [x,b,f] which represents the shape i.e. x->cros
Harlamova29_29 [932]

Response:

C++ code provided below with suitable annotations

Clarification:

pattern.cpp

#include<iostream>

using namespace std;

void printCross(int n)

{

int i,j,k;

if(n%2) //odd number of lines

{

for(int i=n;i>=1;i--)

{

for(int j=n;j>=1;j--)

{

if(j==i || j==(n-i+1))

cout<<j;

else

cout<<" ";

}

cout<<"\n";

}

}

else //even number of lines

{

for(int i=1;i<=n;i++)

{

for(int j=1;j<=n;j++)

{

if(j==i || j==(n-i+1))

{

cout<<" "<<j<<" ";

}

else

cout<<" ";

}

cout<<"\n";

}

}

void printForwardSlash(int n)

{

if(n%2)

{

for(int i=n;i>=1;i--)

{

for(int j=n;j>=1;j--)

{

if(j==n-i+1)

{

cout<<j;

}

else

cout<<" ";

}

cout<<"\n";

}

}

else

{

for(int i=1;i<=n;i++)

{

for(int j=1;j<=n;j++)

{

if(j==(n-i+1))

{

cout<<j;

}

else

cout<<" ";

}

cout<<"\n";

}

}

}

void printBackwardSlash(int n)

{

if(n%2) // odd number of lines

{

for(int i=n;i>=1;i--)

{

for(int j=n;j>=1;j--)

{

if(j==i)

{

cout<<j;

}

else

cout<<" ";

}

cout<<"\n";

}

}

else //even number of lines

{

for(int i=1;i<=n;i++)

{

for(int j=1;j<=n;j++)

{

if(j==i)

{

cout<<j;

}

else

cout<<" ";

}

cout<<"\n";

}

}

}

int main()

{

int num;

char ch;

cout<<"Create a numberes shape that can be sized."<<endl;

cout<<"Input an integer [1,50] and a character [x,b,f]."<<endl;

cin>>num>>ch;

if(ch=='x' || ch=='X')

printCross(num);

else if(ch=='f' || ch=='F')

printForwardSlash(num);

else if(ch=='b' || ch=='B')

printBackwardSlash(num);

else

cout<<"\nWrong input"<<endl;

return 0;

}

4 0
20 days ago
Other questions:
  • Why were the practitioners of alternative software development methods not satisfied with the traditional waterfall method?
    9·1 answer
  • The Pentium 4 Prescott processor, released in 2004, had a clock rate of 3.6 GHz and voltage of 1.25 V. Assume that, on average,
    8·1 answer
  • An author is preparing to send their book to a publisher as an email attachment. The file on their computer is 1000 bytes. When
    6·1 answer
  • Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with a
    5·1 answer
  • When adopting and implementing a Software as a Service (SaaS) platform such as Salesforce for your business, which responsibilit
    7·1 answer
  • The principal that users have access to only network resources when an administrator explicitly grants them is called __________
    6·1 answer
  • A wireless network does not benefit like a wired network does, when it comes to collision reduction. Which device reduces collis
    6·1 answer
  • Your computer uses 4 bits to represent decimal numbers (0, 1, 2, 3 and so on) in binary. What is the SMALLEST number for which a
    8·1 answer
  • Which of the following does not describe local alignment algorithm?
    9·1 answer
  • hard disk drive has 16 platters, 8192 cylinders, and 256 4KB sectors per track. The storage capacity of this disk drive is at mo
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!