[SOLVED] CPT121-Task 1.2.3 Strings, Input and Output

24.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product
  1. Write a program which reads in values for the user’s name, day, time, temperature (to one decimal place), weather conditions (eg. sunny, cloudy, rain, storms, etc) and rain in the past 25 hours (value in mm to one decimal place) and prints out this information in a neat, labelled and tabulated format (ie. all labels and values are aligned in columns).

The input values must be prompted for and read in the order specified and you may find the printf() method useful when printing your output.

 

  1. Write a program that will read the marks of three students as integer values using the Scanner class and display the following:
    1. average mark across the three students (to two decimal places)
    2. the maximum mark obtained
    3. the minimum mark obtained
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.