Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i dont know what i am doing wrong. my actual ouput are all different from the expected output. it making me fail the tests. pleases

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
i dont know what i am doing wrong. my actual ouput are all different from the expected output. it making me fail the tests. pleases answer all 4 thanks
/ 2 numbers/04/11 Ap... Run README.md Preview Cons # Statement 1 2 3 Sy he N students take apples and distribute them among each other evenly. The remaining (the indivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket? 4 5 The program prompts the user to enter the number of students (N) followed by the number of apples (K)". It then print the answers to the two questions above. 6 7 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 8 9 10 11 12 #8 Example 1 input 6 58 output 13 14 15 16 17 18 19 20 Each student will get 8 apples 2 apples will remain in the basket ** Example 2 input 22 o . Console Shell Buchan 2.8.2 de Fau X Test results: 1 orint rest int(FE -int(" match Actual output Expected output 1 2 Each student will get 6 apples. 1 1 apples will remain in the bask 2 Each student will get 6 apples 1 apples will remain in the bask a README.md Preview 1 # Statement 2 3 Given a year (as a positive integer), find the respective number of the century. Note that, for example, 20th century began with the year 1901. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 # Example 1 input 8 9 19 1817 SI 11 12 output I I 14 15 Century = 19 17 18 Example 2 input 913 output 2 25 O a se Input/Output Test Test results: 1 Results 9 else 10 print match 031 2 Failed Actual output Expected output Results century - 1 Century - 8 3 Failed Results 4 Falled Results a RI 1 Type here to search O C Coi By 3 README.md Preview 1 # Statement 2 A cupcake costs A dollars and Bcents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: 'A', 'B', 'N. It should print two numbers: total cost in dollars and cents. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 #*# Example 1 8 input 7 9 10 10 15 2 output 12 13 14 15 16 17 18 The total cost is 20 dollars and 30 cents ### Example 2 input 28 21 22 23 2 75 14 20 o a /12/8-Tolm ahmid Console Pytandem It should print X Test results: 3 Examples o Notice the match Example input 10 15 2 Actual output Expected output The total cost is 85 dollars and 1 The total cost is 85 dollars and 2 3 4 output The total cost is 20 dollars and 30 cents 8 9 ce #*# Example 2 input 2 23 2 75 25 0:0 a w w # Statement 1 2 3 Given a positive real number, print its first digit to the right of the decimal point. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 ### Example 1 input- INS 8 9 10 I 1.79 output The digit after the decimal is 7 ### Example 2 input 20 992549245 22 output N The digite after the decimal is 4 25 umbers 13h9-Digit-after-decimal-point-lifeofbrola#README.md Run pychan 3.1.2 (defnd Examples on Notice the x Test results: 1 # Example input match 1.79 output Actual output Expected output 1 The digit after the decimal is The digit after the decimal is 2 The digit # Example input 9925.49245 output The digit after the decimal is 4 a w

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions