Skip to content

Course home

Develop code

Develop code

EasyMediumHard
1234567891011121314151617181920212223242526
Question 4

Write a program to display the double (multiplied by 2) and the half (divided by 2) of an integer between 10 and 100 inclusive entered by the user.

The program must:

  • Prompt the user to enter an integer between 10 and 100 inclusive.
  • Keep asking for a number and performing the calculation until a number outside the range 10 to 100 is entered.
  • For each valid number entered, calculate and display the original number, its double, and its half, with appropriate descriptive labels.
[6]
Markscheme

Develop code Questions

  1. IGCSE
  2. /Computer Science
  3. /Develop code

62 exam-style questions on Edexcel IGCSE Computer Science Develop code. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank