1. Write a program that calculates the maximum and minimum values of a set of positive integers. The program should prompt for each integer and print the two values after the user enters 0 or after 10...


1. Write a program that calculates the maximum and minimum values of a set of positive integers. The program should prompt for each integer and print the two values after the user enters 0 or after 10 integers have been input.


2. Write a program using a for loop that determines the number of students from user input before accepting the total marks for each student. Using the guide A: 90-100, B: 80-89, C: 60-79, D: 0-59, print a statement that shows the number of students placed in each of these categories.


3. Write a program using while that converts a binary integer to decimal without using an array.


4. Design the skeleton of a program that uses a nested loop. For a certain condition (say, x = 0), control must break out of both loops using break twice. Is the goto statement a better alternative here?



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here