Off Campus Job Update
Python 10 Jan 1 c 2 d 3 a 4 a 5 b 6 d 7 d 8 d 9 c 10 a 11a 12b 13b 14 a 15-3 16-c 17-b 18-a 19-b 20-b 21 b 22 a 23d 24 b 25 a 26-c 27 d 28 b 29c 30c 31 a 32 b 33 b 34 c 35 b 36-b 37-c 38-a 39 b 40-d 41 b 42-a 43 c 44 a 45 a 46 a 47-a 48-b 49 a 50 c htβ¦
Correct python πβ€οΈ answers
class Food:
def init(self,name,protien,fat,carb):
self.name=name
self.protien=protien
self.fat=fat
self.carb=carb
class Nutrition:
def init(self,status,lfood):
self.status=status
self.lfood=lfood
def setEnergy(self):
result=[]
for i in lfood:
for k,v in status.items():
temp=(i.protien+i.fat+i.carb)
if(temp>=v[0] and temp<=v[1]):
result.append(str(i.name)+" - "+str(temp)+" - "+k)
if(len(result)==0):
return None
else:
return result
def getEnergyRichFood(self,checkenergy):
ans=[]
for i in lfood:
temp=(i.protien+i.fat+i.carb)
if(temp<=checkenergy):
ans.append(i.name+" : "+str(temp))
if(len(ans)==0):
return None
else:
return ans
n=int(input())
lfood=[]
for i in range(n):
name=input()
protien=float(input())
fat=float(input())
carb=float(input())
lfood.append(Food(name,protien,fat,carb))
status={}
cnt=int(input())
for i in range(cnt):
st=input()
l=[]
l.append(int(input()))
l.append(int(input()))
status[st]=tuple(l)
checkenergy=int(input())
obj=Nutrition(status,lfood)
result=obj.setEnergy()
ans=obj.getEnergyRichFood(checkenergy)
if(result!=None):
print("Energy of Food:")
for i in result:
print(i)
if(ans!=None):
print("Food within given criteria:")
for i in ans:
print(i)
else:
print("No Food Found")
https://t.me/Coding_solution_0
def init(self,name,protien,fat,carb):
self.name=name
self.protien=protien
self.fat=fat
self.carb=carb
class Nutrition:
def init(self,status,lfood):
self.status=status
self.lfood=lfood
def setEnergy(self):
result=[]
for i in lfood:
for k,v in status.items():
temp=(i.protien+i.fat+i.carb)
if(temp>=v[0] and temp<=v[1]):
result.append(str(i.name)+" - "+str(temp)+" - "+k)
if(len(result)==0):
return None
else:
return result
def getEnergyRichFood(self,checkenergy):
ans=[]
for i in lfood:
temp=(i.protien+i.fat+i.carb)
if(temp<=checkenergy):
ans.append(i.name+" : "+str(temp))
if(len(ans)==0):
return None
else:
return ans
n=int(input())
lfood=[]
for i in range(n):
name=input()
protien=float(input())
fat=float(input())
carb=float(input())
lfood.append(Food(name,protien,fat,carb))
status={}
cnt=int(input())
for i in range(cnt):
st=input()
l=[]
l.append(int(input()))
l.append(int(input()))
status[st]=tuple(l)
checkenergy=int(input())
obj=Nutrition(status,lfood)
result=obj.setEnergy()
ans=obj.getEnergyRichFood(checkenergy)
if(result!=None):
print("Energy of Food:")
for i in result:
print(i)
if(ans!=None):
print("Food within given criteria:")
for i in ans:
print(i)
else:
print("No Food Found")
https://t.me/Coding_solution_0
Guys Add Your Friends or Share with them β€οΈ
I'll send all the solution After 10K Subscriber on this channel https://t.me/Coding_solution_0
I'll send all the solution After 10K Subscriber on this channel https://t.me/Coding_solution_0
Forwarded from Off Campus job Updates- Placement Material
#include"stdio.h"
void main() {
int n;
scanf("%d", &n);
if (n >= 30 && n <= 50)
printf("D");
elseif(n >= 51 && n <= 60)
printf("C");
elseif(n >= 61 && n <= 80)
printf("B");
elsif(n >= 81 && n <= 100)
printf("A")
}
C language
E-Commerce Code
Wipro
Telegram -
https://t.me/Coding_solution_0
void main() {
int n;
scanf("%d", &n);
if (n >= 30 && n <= 50)
printf("D");
elseif(n >= 51 && n <= 60)
printf("C");
elseif(n >= 61 && n <= 80)
printf("B");
elsif(n >= 81 && n <= 100)
printf("A")
}
C language
E-Commerce Code
Wipro
Telegram -
https://t.me/Coding_solution_0
Forwarded from Coding Solutions Group
Please open Telegram to view this post
VIEW IN TELEGRAM
PRIVATE GROUP FOR WIPRO EXAM SOLUTION ππβ€οΈ
Group
https://t.me/solution_exam
Channel
https://t.me/Coding_solution_0
Group
https://t.me/solution_exam
Channel
https://t.me/Coding_solution_0
Warehouse Ecommerce company
#include <stdio.h>
#include <string.h>
int main() {
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram- https://t.me/Coding_solution_0
#include <stdio.h>
#include <string.h>
int main() {
char s[100];
int i;
printf("\nEnter a string : ");
gets(s);
for (i = 0; s[i]!='\0'; i++) {
if(s[i] >= 'a' && s[i] <= 'z') {
s[i] = s[i] - 32;
}
}
printf("\nString in Upper Case = %s", s);
return 0;
}
Warehouse Code
Telegram- https://t.me/Coding_solution_0