Движок не позволяет добавить архив с проектом
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp3
{
class Program
public class client
public string FIO;
public string phone;
public string adress;
public client()
}
public client(string FIO, string phone, string adress)
this.FIO = FIO;
this.phone = phone;
this.adress = adress;
public client(client NewClient)
this.FIO = NewClient.FIO;
this.phone = NewClient.phone;
this.adress = NewClient.adress;
public string PoluchitInfo()
return "ФИО: " + this.FIO + "\nтелефон: " + this.phone + "\nадрес: " + this.adress;
public class customer: client
public double Trovar;
public int Kolichestvo;
public double Stoimost;
public customer()
public customer(customer NewCostumer)
this.FIO = NewCostumer.FIO;
this.phone = NewCostumer.phone;
this.adress = NewCostumer.adress;
this.Trovar = NewCostumer.Trovar;
this.Kolichestvo = NewCostumer.Kolichestvo;
this.Stoimost = NewCostumer.Stoimost;
public customer(string FIO, string phone, string adress, double Trovar, int Kolichestvo)
this.Trovar = Trovar;
this.Kolichestvo = Kolichestvo;
this.SchitatStoimost();
public double SchitatStoimost()
return Stoimost = Trovar * Kolichestvo;
static void Main(string[] args)
customer[] customers = new customer[3];
customers[0] = new customer("Иванов", "322223322", "Бобруйск", 1.1, 2);
customers[1] = new customer("Петров", "123456789", "Урюпинск", 2.2, 5);
customers[2] = new customer("Сидоров", "987654321", "Крыжополь", 3.3, 10);
double Sum = 0;
foreach(customer Temp in customers)
Console.WriteLine(Temp.PoluchitInfo()+"\n");
Sum += Temp.Stoimost;
Console.WriteLine(Sum.ToString());
Console.ReadLine();
1.
with open("input.txt") as f:
reads=f.read()
with open("output.txt", "w") as f:
if int(reads)<=0:
f.write("A cold, is not it?")
elif int(reads)<10:
f.write("Cool.")
else:
f.write("Nice weather we`re having..")
2.
if reads in ("YES","yes","Yes"):
f.write("Yes")
f.write("No")
3.
if int(reads) in range(1,11):
ones=("I","II","III","IV","V","VI","VII","VIII","IX","X")
f.write(ones[int(reads)-1])
f.write("Out of range.")
Движок не позволяет добавить архив с проектом
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp3
{
class Program
{
public class client
{
public string FIO;
public string phone;
public string adress;
public client()
{
}
public client(string FIO, string phone, string adress)
{
this.FIO = FIO;
this.phone = phone;
this.adress = adress;
}
public client(client NewClient)
{
this.FIO = NewClient.FIO;
this.phone = NewClient.phone;
this.adress = NewClient.adress;
}
public string PoluchitInfo()
{
return "ФИО: " + this.FIO + "\nтелефон: " + this.phone + "\nадрес: " + this.adress;
}
}
public class customer: client
{
public double Trovar;
public int Kolichestvo;
public double Stoimost;
public customer()
{
}
public customer(customer NewCostumer)
{
this.FIO = NewCostumer.FIO;
this.phone = NewCostumer.phone;
this.adress = NewCostumer.adress;
this.Trovar = NewCostumer.Trovar;
this.Kolichestvo = NewCostumer.Kolichestvo;
this.Stoimost = NewCostumer.Stoimost;
}
public customer(string FIO, string phone, string adress, double Trovar, int Kolichestvo)
{
this.FIO = FIO;
this.phone = phone;
this.adress = adress;
this.Trovar = Trovar;
this.Kolichestvo = Kolichestvo;
this.SchitatStoimost();
}
public double SchitatStoimost()
{
return Stoimost = Trovar * Kolichestvo;
}
}
static void Main(string[] args)
{
customer[] customers = new customer[3];
customers[0] = new customer("Иванов", "322223322", "Бобруйск", 1.1, 2);
customers[1] = new customer("Петров", "123456789", "Урюпинск", 2.2, 5);
customers[2] = new customer("Сидоров", "987654321", "Крыжополь", 3.3, 10);
double Sum = 0;
foreach(customer Temp in customers)
{
Console.WriteLine(Temp.PoluchitInfo()+"\n");
Sum += Temp.Stoimost;
}
Console.WriteLine(Sum.ToString());
Console.ReadLine();
}
}
}
1.
with open("input.txt") as f:
reads=f.read()
with open("output.txt", "w") as f:
if int(reads)<=0:
f.write("A cold, is not it?")
elif int(reads)<10:
f.write("Cool.")
else:
f.write("Nice weather we`re having..")
2.
with open("input.txt") as f:
reads=f.read()
with open("output.txt", "w") as f:
if reads in ("YES","yes","Yes"):
f.write("Yes")
else:
f.write("No")
3.
with open("input.txt") as f:
reads=f.read()
with open("output.txt", "w") as f:
if int(reads) in range(1,11):
ones=("I","II","III","IV","V","VI","VII","VIII","IX","X")
f.write(ones[int(reads)-1])
else:
f.write("Out of range.")