Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Session 2 January 22, 2018 Core Lab 2.3 (6 lab points] Create a class named Weeks01d that will ask the user for their age as

image text in transcribed
Session 2 January 22, 2018 Core Lab 2.3 (6 lab points] Create a class named Weeks01d that will ask the user for their age as a whole number of weeks and will then output how many entire year many seconds they have been alive. s the person has been alive and how Here is a sample run for the test case where the user inputs 1057: 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 number7 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 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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions