Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make a program that can be used to determine the self - cleaning of the carpet. Washing costs 6 . 0 0 euros per square

Make a program that can be used to determine the self-cleaning of the carpet. Washing costs 6.00 euros per square metre from 0-16 and from 17-23 washing costs 7.00 euros per square metre.
Make two functions for the solution in addition to the function for the button
CalculateThis function calculates the price per square metre for washing. The function takes the time of day as a parameter and returns the price per square metre (6.00 or 7.00).
The calculatePrice function calculates the price of washing a carpet. The function takes as parameters the width, length and price per square metre of the carpet and returns the price of the wash.
Note: The above functions must be named exactly as their names are given. You cannot change the names of the functions in your solution or the code will not test in Viope. You are free to choose the names of the function parameters.
If the assignment contains only a function for a button, the maximum number of points you can get for the assignment is three.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

How is the funding cost computed for a CFD contract?

Answered: 1 week ago