Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code In C++ 1.2 Button (1.2 - Calculate minutes] A school dance has many leamers participating. The organisers need to determine how long it will

Code In C++image text in transcribed

1.2 Button (1.2 - Calculate minutes] A school dance has many leamers participating. The organisers need to determine how long it will take to introduce all the participants. The time allocated to introduce each participant will depend on the total number of participants. The following criteria will be used: Number of participants Number of minutes per participant Less than or equal to 20 2.5 minutes More than 20 and less than or 2.3 minutes equal to 50 More than 50 2.0 minutes The user must enter the number of participants in the edtParticipants edit box. Write code to do the following: Extract the number of participants from the edtParticipants edit box. Calculate the total number of minutes that will be required to introduce ALL the participants. Display the value in the edt Minutes edit box to TWO decimal places. Round up the calculated number of minutes and display the result in the edtMinsRounded edit box. Use the following test data: Number of participants Minutes Minutes rounded 13 32.50 33 21 48.30 49 50 115.00 115 51 102.00 Example of output if the number of participants is 17: 102 Question 12 Number of participants 17 12 - Calculate minutes Minutes Minutes rounded 42.50 43 (13)

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_2

Step: 3

blur-text-image_3

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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions