Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
8 views
Hands-On Assignment For Flow Control Statements
kkkj
Uploaded by
Musiclover Huu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Hands-On Assignment For Flow Control Statements For Later
Download
Save
Save Hands-On Assignment For Flow Control Statements For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
8 views
Hands-On Assignment For Flow Control Statements
kkkj
Uploaded by
Musiclover Huu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Hands-On Assignment For Flow Control Statements For Later
Carousel Previous
Carousel Next
Save
Save Hands-On Assignment For Flow Control Statements For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 4
Search
Fullscreen
Hands-on Assignments for Flow Control Statements ‘Complete tne below hands-on assignments betore proceeding with the next Tope 18) Write @ program to check if © given integer number is Positive, Negative, or Zero. B) Given two non-negative int values, print true if they have the sane last digit, guch a2 with 27 ane 57. 1 Statement = C) lastoigit(7, 17) + true lastoigit(e, 17) > false Iestoigit(3, 113) > true > lirite 2 program to check if a given integer nurber is odd or even. statement) lirite o program to check if the program has received comand Line arguments or not. 1 the pragran has not received arguments then print "No Values", else print all the values in a single Line separated by (comma) exanplel) java example 3S oP: No values Statement) exemple?) java Example Mumbai Bengelor= (o/e: runbal ,sangalore [Hints You cen use length property of on array to check its length] Initialize two character vartablas in a program and display the characters in alphabetical order. [xonplel) if the first cherecter is “2° and second cherecter is “e* then the output ae Statement) exenple2) Af the first character Le ‘a! and second character 4 ‘e', then the output should be 3,2Initialize 2 character variable in 2 progcon end) print “Alghabhet’ 4f the initialized value dz an slghabnet, Statement print “bigit” 4f the initialized value {2 = number, and print ‘"spectal character’, If the initlalized value 1s anything else. lirite a pragean to accept gender ("Hale” or “Fansle”) and age tron comand Line argunents and print the percentage of interest based on the given conditions. If the gender iz ‘Female’ and age dz betieen 1 and 58, the percentage of interest iz 2.28. If the gender is "Fenele’ and oge is between 58 and 100, the percentage of interest is cet Statement If the gender iz “Male” and age iz between 1 and S8, the percentage of interest i 8.48, Xf the gender is ‘Male’ and age is betucen 59 and 100, the percentage of interest is 430.5%. Initielize 9 character vardoble with an alghabhet in 9 program If the character value Is tn lowercase, the output should be displayed In uppercase tn ‘the following format. example) If the character value ts fn uppercase, the output should be displayed in lowercase in ‘the following format. example) pst ofpsA- rite @ progres to receive 9 color code From the user (an Alphabhet). ‘The program should then print the colar nave, Gazed on the colar code given. ‘Swen ‘The following are the color codes and their corresponding color names. ‘Stotoment R->Red, 8->Blue, G->Green, O-DOrange, Y->Yelloa, U-rhnite. If color code provided by the user is not valid then print "Invalid Code™. It statement a alirite @ program to receive @ nurber end print the corresponding month none. ‘xanplel) crlofava Sample 12 O/P Expected : Decenber exanple2) es Crlojeve Semple o/p expected + Please enter the month in nuners Exenple3) cr\sgove Sample 15 o/p expected + invelid month 40S Write 2 program £2 print nunbers from 1 to 10 in e single rou with one tab specs lirite @ program to print even numbers between 23 and 57. Each number should be " printed in 2 separate row. 2 rite @ progran to check if @ given runber is prine or not. 43. S| UPite = program to print erine muntere betneen 10 and 99. lurize program co pednt the cue of all the digits of = given cunber. 44 Exonglet) wyP:1234 o7Ps10) ‘Switen ‘Statement For Loop For Loop, For Loop, For Loop. For Loop.8 6 a lirite program to print = in Floyds format (using for and while loop) example) c\zjave Sample O/P: Please enter an integer ounber Exomple2) Ce\>jave Sample 3 ore: lirite 2 program to reverse a given nunber and print Example) a/P: 234 oves4s24 example?) 1/P:1008 o7e:4001 lipite 2 Java progran to find if the given number iz palindrone or not exanple2) C:\pjava Sample 122011 o/P: 110011 is a palindrome exanple2) C:\pjava Sample 1234 O/P: 1234 is not @ palindrome For Loop, While Loop While Loop | oO
You might also like
Programming Assignment 3
PDF
No ratings yet
Programming Assignment 3
6 pages
Assignment 2 - Flow Conrtrol Statement
PDF
0% (1)
Assignment 2 - Flow Conrtrol Statement
8 pages
Java Assignment
PDF
50% (2)
Java Assignment
5 pages
ICpEP CpE Challenge Programming
PDF
No ratings yet
ICpEP CpE Challenge Programming
3 pages
MileStone1-Flow Control
PDF
No ratings yet
MileStone1-Flow Control
7 pages
Wipro Practice Qs
PDF
100% (1)
Wipro Practice Qs
35 pages
Learning Material For Flow Control Statements
PDF
No ratings yet
Learning Material For Flow Control Statements
7 pages
Wipro Practice Qs
PDF
100% (2)
Wipro Practice Qs
65 pages
Assessment Milestone
PDF
100% (1)
Assessment Milestone
37 pages
Java Notes
PDF
No ratings yet
Java Notes
37 pages
Wipro Training Day 2 Assignments
PDF
No ratings yet
Wipro Training Day 2 Assignments
22 pages
Adobe Scan 10-Jan-2024
PDF
No ratings yet
Adobe Scan 10-Jan-2024
68 pages
Variables and Data Type: Hello Dara!
PDF
No ratings yet
Variables and Data Type: Hello Dara!
75 pages
Computer Study Plan (STD 9)
PDF
No ratings yet
Computer Study Plan (STD 9)
7 pages
Python File Codes Set 1
PDF
No ratings yet
Python File Codes Set 1
1 page
Java 1 - 6 Practicals
PDF
100% (1)
Java 1 - 6 Practicals
17 pages
Program:: Q1. Write A Program That Accepts Two Strings As Command Line Arguments and Generate The Output
PDF
No ratings yet
Program:: Q1. Write A Program That Accepts Two Strings As Command Line Arguments and Generate The Output
39 pages
Lab 02 Conditional Flow Charts and Pseudo Code Fall 2019-20
PDF
No ratings yet
Lab 02 Conditional Flow Charts and Pseudo Code Fall 2019-20
12 pages
Lab 02 Conditional Flow Charts and Pseudo Code Fall 2019-20
PDF
No ratings yet
Lab 02 Conditional Flow Charts and Pseudo Code Fall 2019-20
6 pages
Baisc of Programming
PDF
No ratings yet
Baisc of Programming
14 pages
WORKSHOP_2_CONDITION
PDF
No ratings yet
WORKSHOP_2_CONDITION
3 pages
Assignment1 JavaScript
PDF
No ratings yet
Assignment1 JavaScript
5 pages
Command Line Argument: Assignment 1
PDF
No ratings yet
Command Line Argument: Assignment 1
14 pages
Directions: For Information On EOF Refer To Question Bank #1, Part-A, Q4
PDF
No ratings yet
Directions: For Information On EOF Refer To Question Bank #1, Part-A, Q4
9 pages
4
PDF
No ratings yet
4
72 pages
Java Programming Tutorial
PDF
No ratings yet
Java Programming Tutorial
48 pages
Pseudocode Guide 0478 Example
PDF
No ratings yet
Pseudocode Guide 0478 Example
21 pages
Unit 3
PDF
No ratings yet
Unit 3
19 pages
Workshop 01
PDF
No ratings yet
Workshop 01
35 pages
Workshop 01
PDF
No ratings yet
Workshop 01
15 pages
while,nested,dowhile-practice
PDF
No ratings yet
while,nested,dowhile-practice
18 pages
COMPUTER-PROGRAMMING-PRACTICE-QUESTIONS
PDF
No ratings yet
COMPUTER-PROGRAMMING-PRACTICE-QUESTIONS
4 pages
Class 5++++++
PDF
No ratings yet
Class 5++++++
31 pages
Basic Java PracticeCode Set 3
PDF
No ratings yet
Basic Java PracticeCode Set 3
48 pages
Java Excersize
PDF
No ratings yet
Java Excersize
10 pages
Unit 8 Programming
PDF
No ratings yet
Unit 8 Programming
122 pages
Computer.
PDF
No ratings yet
Computer.
6 pages
Method Practice
PDF
No ratings yet
Method Practice
50 pages
عقد
PDF
No ratings yet
عقد
6 pages
Apcompa - Control Statements Loops Classwork Homework - 2022 02 11
PDF
No ratings yet
Apcompa - Control Statements Loops Classwork Homework - 2022 02 11
23 pages
Python Questions
PDF
No ratings yet
Python Questions
14 pages
System Software Lab Manual
PDF
100% (1)
System Software Lab Manual
27 pages
2
PDF
No ratings yet
2
4 pages
02 - Practice Questions of Selection
PDF
No ratings yet
02 - Practice Questions of Selection
2 pages
Python Fundamentals
PDF
No ratings yet
Python Fundamentals
100 pages
Java 1and 2
PDF
No ratings yet
Java 1and 2
11 pages
Java Exercise 1
PDF
No ratings yet
Java Exercise 1
12 pages
IntroCS Part 4
PDF
No ratings yet
IntroCS Part 4
5 pages
Piyush
PDF
No ratings yet
Piyush
25 pages
JAVA For Beginners: Decrements by 5 (X X - 5)
PDF
No ratings yet
JAVA For Beginners: Decrements by 5 (X X - 5)
12 pages
P2ALLINONE
PDF
No ratings yet
P2ALLINONE
161 pages
Programming Notes 2023
PDF
No ratings yet
Programming Notes 2023
24 pages
02_control_flow_statements
PDF
No ratings yet
02_control_flow_statements
9 pages
Lab AllWeeks
PDF
No ratings yet
Lab AllWeeks
9 pages