Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class named Weeks0ld that will ask the user for their many seconds they have been alive. Here is a sample run for the

image text in transcribed
Create a class named Weeks0ld that will ask the user for their many seconds they have been alive. Here is a sample run for the test case where the user inputs 1057: age as a whole number caw outpeut how many entire years the person has been alilve and how How many weeks old? 1057 You are 20 years old. You have been alive for 639273600 seconds Enhanced Lab 2.4 [2 lab points] Your job on this exercise is to create class named Add6 that will ask the user for 6 integer values and print their total. But, to make it more interesting, you are only allowed to declare and use two int variables, say named something like input and sum. Here is a sample run for the test case where the user enters 1, 3, 5, 7, 9, and 11: enter a number: 1 enter a number 3 enter a number: 5 enter a number: 7 enter a number: 9 enter a number: 11 total-36

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions